NS3-GUI-HELPER V1.2.0
A code generator for NS-3 Scripts
Loading...
Searching...
No Matches
GuiRenderers.CsmaLinkPainter Class Reference
Inheritance diagram for GuiRenderers.CsmaLinkPainter:
GuiRenderers.CanvasPainter

Public Member Functions

 CsmaLinkPainter (ArrayList< Integer > nodeList, ArrayList< NodePainter > nodes, Color color)
 
 CsmaLinkPainter (ArrayList< Integer > nodeList, ArrayList< NodePainter > nodes)
 
void paint (Graphics g)
 

Public Attributes

Color linkColor
 
ArrayList< Integer > nodeList
 
ArrayList< NodePainternodes
 

Static Public Attributes

static Stroke dashed = new BasicStroke(3, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, new float[]{9}, 0)
 

Detailed Description

to manage, paint and store the CSMA Link

Definition at line 11 of file CsmaLinkPainter.java.

Constructor & Destructor Documentation

◆ CsmaLinkPainter() [1/2]

GuiRenderers.CsmaLinkPainter.CsmaLinkPainter ( ArrayList< Integer > nodeList,
ArrayList< NodePainter > nodes,
Color color )

to create the object of type CSMA Link

Parameters
nodeListthe index of node
nodesthe nodes
colorthe color of the link
See also
CsmaLinkPainter::CsmaLinkPainter(ArrayList, ArrayList)
Since
1.1.0

Definition at line 44 of file CsmaLinkPainter.java.

◆ CsmaLinkPainter() [2/2]

GuiRenderers.CsmaLinkPainter.CsmaLinkPainter ( ArrayList< Integer > nodeList,
ArrayList< NodePainter > nodes )

to create the object of type CSMA Link

Parameters
nodeListthe index of node
nodesthe nodes
See also
CsmaLinkPainter::CsmaLinkPainter(ArrayList, ArrayList, Color)
Since
1.1.0

Definition at line 59 of file CsmaLinkPainter.java.

Member Function Documentation

◆ paint()

void GuiRenderers.CsmaLinkPainter.paint ( Graphics g)

to paint the CSMA link

Parameters
gthe Graphics from the painter
Since
1.1.0

Implements GuiRenderers.CanvasPainter.

Definition at line 70 of file CsmaLinkPainter.java.

Member Data Documentation

◆ dashed

Stroke GuiRenderers.CsmaLinkPainter.dashed = new BasicStroke(3, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, new float[]{9}, 0)
static

dashed line for stroke painting of the CSMA chnnel

Definition at line 28 of file CsmaLinkPainter.java.

◆ linkColor

Color GuiRenderers.CsmaLinkPainter.linkColor

the color of the link

Definition at line 15 of file CsmaLinkPainter.java.

◆ nodeList

ArrayList<Integer> GuiRenderers.CsmaLinkPainter.nodeList

list of index of nodes which are part of CSMA channel

Definition at line 19 of file CsmaLinkPainter.java.

◆ nodes

ArrayList<NodePainter> GuiRenderers.CsmaLinkPainter.nodes

the nodes which are part of CSMA channel

Definition at line 23 of file CsmaLinkPainter.java.


The documentation for this class was generated from the following file: