![]() |
NS3-GUI-HELPER V1.2.0
A code generator for NS-3 Scripts
|
for painting the objects on the canvas this will be centrally responsible entity
Definition at line 14 of file TopologyPainter.java.
| GuiRenderers.TopologyPainter.TopologyPainter | ( | ArrayList< NodePainter > | n, |
| ArrayList< P2pLinkPainter > | l ) |
to create an object of type Topology Painter
| n | list of nodes |
| l | list of links |
Definition at line 69 of file TopologyPainter.java.
| GuiRenderers.TopologyPainter.TopologyPainter | ( | ArrayList< NodePainter > | n, |
| ArrayList< P2pLinkPainter > | l, | ||
| int | w, | ||
| int | h ) |
to create an object of type Topology Painter
| n | list of nodes |
| l | list of links |
| w | the width of the canvas |
| h | the height of the canvas |
Definition at line 83 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.addAndPrintLink | ( | CsmaLinkPainter | link | ) |
to add the link and direct painting
| link | the link to be added |
Definition at line 253 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.addAndPrintLink | ( | P2pLinkPainter | link | ) |
to add the link and direct painting
| link | the link to be added |
Definition at line 265 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.addAndPrintLink | ( | WifiLinkPainter | link | ) |
to add the link and direct painting
| link | the link to be added |
Definition at line 277 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.addAndPrintNode | ( | NodePainter | node | ) |
to add the node and direct painting
| node | the node to be added |
Definition at line 241 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.addAndPrintRefNode | ( | NodePainter | node | ) |
to add the reference node and directly painting
| node | the node to be added |
Definition at line 229 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.addLink | ( | CsmaLinkPainter | link | ) |
to add the CSMA link for painting
| link | the link to be added |
Definition at line 194 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.addLink | ( | P2pLinkPainter | link | ) |
to add the P2P link for painting
| link | the link to be added |
Definition at line 181 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.addLink | ( | WifiLinkPainter | link | ) |
to add the Wi-Fi link for painting
| link | the link to be added |
Definition at line 206 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.addNode | ( | NodePainter | node | ) |
to add nodes for painting
| node | the node to be added |
Definition at line 169 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.addRefNode | ( | NodePainter | node | ) |
to add the reference node
| node | the node to be added |
Definition at line 218 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.enableView | ( | int | s, |
| int | c ) |
to enabling highlighting of the server and client node
| s | server index |
| c | client index |
Definition at line 313 of file TopologyPainter.java.
| ArrayList< P2pLinkPainter > GuiRenderers.TopologyPainter.getLinks | ( | ) |
Definition at line 351 of file TopologyPainter.java.
| ArrayList< CsmaLinkPainter > GuiRenderers.TopologyPainter.getLinks_csma | ( | ) |
Definition at line 371 of file TopologyPainter.java.
| ArrayList< NodePainter > GuiRenderers.TopologyPainter.getNodes | ( | ) |
Definition at line 341 of file TopologyPainter.java.
| Dimension GuiRenderers.TopologyPainter.getPreferredSize | ( | ) |
Definition at line 158 of file TopologyPainter.java.
| ArrayList< NodePainter > GuiRenderers.TopologyPainter.getReferenceNodes | ( | ) |
Definition at line 361 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.paint | ( | Graphics | g | ) |
to paint the objects on the canvas
| g | the graphics in the CANVAS |
Definition at line 104 of file TopologyPainter.java.
| int GuiRenderers.TopologyPainter.pointCollideWithAny | ( | int | x, |
| int | y ) |
to get the index of node, with which the mouse is collided
| x | x-position of the mouse |
| y | y-position of the mouse |
Definition at line 292 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.setLinks | ( | ArrayList< P2pLinkPainter > | links | ) |
Definition at line 356 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.setLinks_csma | ( | ArrayList< CsmaLinkPainter > | links_csma | ) |
Definition at line 376 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.setNodes | ( | ArrayList< NodePainter > | nodes | ) |
Definition at line 346 of file TopologyPainter.java.
| void GuiRenderers.TopologyPainter.setReferenceNodes | ( | ArrayList< NodePainter > | referenceNodes | ) |
Definition at line 366 of file TopologyPainter.java.