public class NodeGraphic extends PlayFieldGraphic
scale| Constructor and Description |
|---|
NodeGraphic(DTNHost node) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(java.awt.Graphics2D g2)
Draws the graphic component to the graphics context g2
|
static void |
setDrawBuffer(boolean draw)
Sets whether node's message buffer is shown
|
static void |
setDrawConnections(boolean draw)
Sets whether node's connections to other nodes should be drawn
|
static void |
setDrawCoverage(boolean draw)
Sets whether radio coverage of nodes should be drawn
|
static void |
setDrawNodeName(boolean draw)
Sets whether node's name should be displayed
|
static void |
setHighlightedNodes(java.util.List<DTNHost> nodes) |
public NodeGraphic(DTNHost node)
public void draw(java.awt.Graphics2D g2)
PlayFieldGraphicdraw in class PlayFieldGraphicg2 - The context to draw the graphics topublic static void setDrawCoverage(boolean draw)
draw - If true, radio coverage is drawnpublic static void setDrawNodeName(boolean draw)
draw - If true, node's name is displayedpublic static void setDrawConnections(boolean draw)
draw - If true, node's connections to other nodes is drawnpublic static void setDrawBuffer(boolean draw)
draw - If true, node's message buffer is drawnpublic static void setHighlightedNodes(java.util.List<DTNHost> nodes)