NS3-GUI-HELPER V1.2.0
A code generator for NS-3 Scripts
|
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< NodePainter > | nodes |
Static Public Attributes | |
static Stroke | dashed = new BasicStroke(3, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, new float[]{9}, 0) |
to manage, paint and store the CSMA Link
Definition at line 11 of file CsmaLinkPainter.java.
GuiRenderers.CsmaLinkPainter.CsmaLinkPainter | ( | ArrayList< Integer > | nodeList, |
ArrayList< NodePainter > | nodes, | ||
Color | color ) |
to create the object of type CSMA Link
nodeList | the index of node |
nodes | the nodes |
color | the color of the link |
Definition at line 44 of file CsmaLinkPainter.java.
GuiRenderers.CsmaLinkPainter.CsmaLinkPainter | ( | ArrayList< Integer > | nodeList, |
ArrayList< NodePainter > | nodes ) |
to create the object of type CSMA Link
nodeList | the index of node |
nodes | the nodes |
Definition at line 59 of file CsmaLinkPainter.java.
void GuiRenderers.CsmaLinkPainter.paint | ( | Graphics | g | ) |
to paint the CSMA link
g | the Graphics from the painter |
Implements GuiRenderers.CanvasPainter.
Definition at line 70 of file CsmaLinkPainter.java.
|
static |
dashed line for stroke painting of the CSMA chnnel
Definition at line 28 of file CsmaLinkPainter.java.
Color GuiRenderers.CsmaLinkPainter.linkColor |
the color of the link
Definition at line 15 of file CsmaLinkPainter.java.
ArrayList<Integer> GuiRenderers.CsmaLinkPainter.nodeList |
list of index of nodes which are part of CSMA channel
Definition at line 19 of file CsmaLinkPainter.java.
ArrayList<NodePainter> GuiRenderers.CsmaLinkPainter.nodes |
the nodes which are part of CSMA channel
Definition at line 23 of file CsmaLinkPainter.java.