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

Public Member Functions

 P2pLinkPainter (NodePainter a, NodePainter b)
 
 P2pLinkPainter (NodePainter a, NodePainter b, Color color)
 
void paint (Graphics g)
 

Public Attributes

NodePainter nodeA
 
NodePainter nodeB
 
Color linkColor
 

Detailed Description

to manage, paint and store the P2P Links

Definition at line 10 of file P2pLinkPainter.java.

Constructor & Destructor Documentation

◆ P2pLinkPainter() [1/2]

GuiRenderers.P2pLinkPainter.P2pLinkPainter ( NodePainter a,
NodePainter b )

to create the object of type P2pLinkPainter

Parameters
athe first node
bthe second node
See also
P2pLinkPainter::P2pLinkPainter(NodePainter, NodePainter, Color)
Since
0.3.0

Definition at line 34 of file P2pLinkPainter.java.

◆ P2pLinkPainter() [2/2]

GuiRenderers.P2pLinkPainter.P2pLinkPainter ( NodePainter a,
NodePainter b,
Color color )

to create the object of type P2pLinkPainter

Parameters
athe first node
bthe second node
colorthe color of the link
See also
P2pLinkPainter::P2pLinkPainter(NodePainter, NodePainter)
Since
0.3.0

Definition at line 47 of file P2pLinkPainter.java.

Member Function Documentation

◆ paint()

void GuiRenderers.P2pLinkPainter.paint ( Graphics g)

to paint the P2P Link on the canvas

Parameters
gGraphics for painting, from painter
Since
0.3.0

Implements GuiRenderers.CanvasPainter.

Definition at line 61 of file P2pLinkPainter.java.

Member Data Documentation

◆ linkColor

Color GuiRenderers.P2pLinkPainter.linkColor

for color of the link

Definition at line 19 of file P2pLinkPainter.java.

◆ nodeA

NodePainter GuiRenderers.P2pLinkPainter.nodeA

to mark nodes who are part of point to point link

Definition at line 15 of file P2pLinkPainter.java.

◆ nodeB

NodePainter GuiRenderers.P2pLinkPainter.nodeB

Definition at line 15 of file P2pLinkPainter.java.


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