|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmain.DrawableMapComponent
main.DrawableNode
public class DrawableNode
The DrawableNode
class represents one node between nodes on
the PlanetLab network and specifies how it will be drawn on a map.
DrawableEdge
Field Summary | |
---|---|
private City |
city
|
private java.lang.Integer |
id
|
private java.awt.Point |
point
|
Constructor Summary | |
---|---|
DrawableNode(java.lang.Integer id,
java.awt.Point point,
java.awt.Color color,
int size)
Creates a new DrawableNode with the arguments. |
|
DrawableNode(java.lang.Integer id,
java.awt.Point point,
java.awt.Color color,
int size,
City city)
Creates a new DrawableNode with the arguments. |
Method Summary | |
---|---|
City |
getCity()
Returns the location of the node. |
java.lang.Integer |
getID()
Returns the id of the node. |
java.awt.Point |
getPoint()
Returns the pixel-coordinate point of the node. |
java.lang.String |
toString()
Returns a string representation of this DrawableNode . |
Methods inherited from class main.DrawableMapComponent |
---|
getColor, getSize, setColor, setSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.awt.Point point
private java.lang.Integer id
private City city
Constructor Detail |
---|
public DrawableNode(java.lang.Integer id, java.awt.Point point, java.awt.Color color, int size)
DrawableNode
with the arguments.
id
- an Integer
representing the node's idpoint
- a Point
representing the pixel coordinates of
the nodecolor
- a Color
representing the color of the nodesize
- an int
representing the size of the nodepublic DrawableNode(java.lang.Integer id, java.awt.Point point, java.awt.Color color, int size, City city)
DrawableNode
with the arguments.
id
- an Integer
representing the node's idpoint
- a Point
representing the pixel coordinates of
the nodecolor
- a Color
representing the color of the nodesize
- an int
representing the size of the nodecity
- a City
representing the location of the nodeMethod Detail |
---|
public java.awt.Point getPoint()
public java.lang.Integer getID()
public City getCity()
public java.lang.String toString()
DrawableNode
.
This is for debugging purposes only.
toString
in class java.lang.Object
DrawableNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |