public interface Node extends java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Object | clone() | 
| boolean | contains(java.awt.geom.Point2D aPoint)Tests whether the node contains a point. | 
| void | draw(java.awt.Graphics2D g2)Draw the node. | 
| java.awt.geom.Rectangle2D | getBounds()Get the bounding rectangle of the shape of this node | 
| java.awt.geom.Point2D | getConnectionPoint(java.awt.geom.Point2D aPoint)Get the best connection point to connect this node
      with another node. | 
| void | translate(double dx,
         double dy)Translates the node by a given amount. | 
void draw(java.awt.Graphics2D g2)
g2 - the graphics contextvoid translate(double dx, double dy)
dx - the amount to translate in the x-directiondy - the amount to translate in the y-directionboolean contains(java.awt.geom.Point2D aPoint)
aPoint - the point to testjava.awt.geom.Point2D getConnectionPoint(java.awt.geom.Point2D aPoint)
aPoint - an exterior point that is to be joined
      with this nodejava.awt.geom.Rectangle2D getBounds()
java.lang.Object clone()