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

Public Member Functions

 NodePainter (int x, int y, String label)
 
 NodePainter (int x, int y, int r, String label)
 
 NodePainter (int x, int y, int r, String label, Color fill)
 
void paint (Graphics g)
 

Public Attributes

int xPos
 
int yPos
 
int radius
 
String label
 
Color color
 

Detailed Description

to manage, paint and store the node

Definition at line 10 of file NodePainter.java.

Constructor & Destructor Documentation

◆ NodePainter() [1/3]

GuiRenderers.NodePainter.NodePainter ( int x,
int y,
String label )

to create the object if type NodePainter

Parameters
xx-position
yy-position
labellabel for the node
See also
NodePainter::NodePainter(int, int, int, String, Color)
NodePainter::NodePainter(int, int, int, String)
Since
0.3.0

Definition at line 52 of file NodePainter.java.

◆ NodePainter() [2/3]

GuiRenderers.NodePainter.NodePainter ( int x,
int y,
int r,
String label )

to create the object if type NodePainter

Parameters
xx-position
yy-position
rradius value
labellabel for the node
See also
NodePainter::NodePainter(int, int, int, String, Color)
NodePainter::NodePainter(int, int, String)
Since
0.3.0

Definition at line 67 of file NodePainter.java.

◆ NodePainter() [3/3]

GuiRenderers.NodePainter.NodePainter ( int x,
int y,
int r,
String label,
Color fill )

to create the object if type NodePainter

Parameters
xx-position
yy-position
rradius value
labellabel for the node
fillthe color for the node
See also
NodePainter::NodePainter(int, int, int, String)
NodePainter::NodePainter(int, int, String)
Since
0.3.0

Definition at line 83 of file NodePainter.java.

Member Function Documentation

◆ paint()

void GuiRenderers.NodePainter.paint ( Graphics g)

to paint the node on the canvas

Parameters
gthe Graphics from the painter
Since
0.3.0

Implements GuiRenderers.CanvasPainter.

Definition at line 99 of file NodePainter.java.

Member Data Documentation

◆ color

Color GuiRenderers.NodePainter.color

color for the node

Definition at line 31 of file NodePainter.java.

◆ label

String GuiRenderers.NodePainter.label

label for the node

Definition at line 27 of file NodePainter.java.

◆ radius

int GuiRenderers.NodePainter.radius

radius value for the node

Definition at line 23 of file NodePainter.java.

◆ xPos

int GuiRenderers.NodePainter.xPos

x-value for the node

Definition at line 15 of file NodePainter.java.

◆ yPos

int GuiRenderers.NodePainter.yPos

y-value for the node

Definition at line 19 of file NodePainter.java.


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