public class PointNode extends java.lang.Object implements Node
| Constructor and Description | 
|---|
| PointNode()Constructs a point node with coordinates (0, 0) | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Object | clone() | 
| boolean | contains(java.awt.geom.Point2D p)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 other)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. | 
public PointNode()
public void draw(java.awt.Graphics2D g2)
Nodepublic void translate(double dx, double dy)
Nodepublic boolean contains(java.awt.geom.Point2D p)
Nodepublic java.awt.geom.Rectangle2D getBounds()
Nodepublic java.awt.geom.Point2D getConnectionPoint(java.awt.geom.Point2D other)
NodegetConnectionPoint in interface Nodeother - an exterior point that is to be joined
      with this node