main
Class DrawableEdge
java.lang.Object
main.DrawableMapComponent
main.DrawableEdge
public class DrawableEdge
- extends DrawableMapComponent
The DrawableEdge
class represents one edge between nodes on
the PlanetLab network and specifies how it will be drawn on a map.
- See Also:
DrawableNode
Field Summary |
private java.awt.Point |
point1
|
private java.awt.Point |
point2
|
Constructor Summary |
DrawableEdge(java.awt.Point point1,
java.awt.Point point2,
java.awt.Color color,
int size)
Creates a new Edge with the arguments. |
Method Summary |
java.awt.Point |
getPoint1()
Returns the pixel-coordinate point of one end of the edge. |
java.awt.Point |
getPoint2()
Returns the pixel-coordinate point of the other end of the edge. |
java.lang.String |
toString()
Returns a string representation of this DrawableEdge . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
point1
private java.awt.Point point1
point2
private java.awt.Point point2
DrawableEdge
public DrawableEdge(java.awt.Point point1,
java.awt.Point point2,
java.awt.Color color,
int size)
- Creates a new
Edge
with the arguments.
- Parameters:
point1
- a Point
representing the pixel coordinates of
the first nodepoint2
- a Point
representing the pixel coordinates of
the second node
getPoint1
public java.awt.Point getPoint1()
- Returns the pixel-coordinate point of one end of the edge.
- Returns:
- the point
getPoint2
public java.awt.Point getPoint2()
- Returns the pixel-coordinate point of the other end of the edge.
- Returns:
- the point
toString
public java.lang.String toString()
- Returns a string representation of this
DrawableEdge
.
This is for debugging purposes only.
- Overrides:
toString
in class java.lang.Object
- Returns:
- a string representation of this
DrawableEdge