public abstract class RectangularNode extends java.lang.Object implements Node
| Modifier and Type | Field and Description | 
|---|---|
| private java.awt.geom.Rectangle2D | bounds | 
| Constructor and Description | 
|---|
| RectangularNode() | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Object | clone() | 
| boolean | contains(java.awt.geom.Point2D p)Tests whether the node contains a point. | 
| 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. | 
| private void | readObject(java.io.ObjectInputStream in) | 
| private static void | readRectangularShape(java.io.ObjectInputStream in,
                    java.awt.geom.RectangularShape s)A helper method to overcome the problem that the 2D shapes
      aren't serializable. | 
| void | setBounds(java.awt.geom.Rectangle2D newBounds) | 
| void | translate(double dx,
         double dy)Translates the node by a given amount. | 
| private void | writeObject(java.io.ObjectOutputStream out) | 
| private static void | writeRectangularShape(java.io.ObjectOutputStream out,
                     java.awt.geom.RectangularShape s)A helper method to overcome the problem that the 2D shapes
      aren't serializable. | 
private transient java.awt.geom.Rectangle2D bounds
public RectangularNode()
public java.lang.Object clone()
public void translate(double dx, double dy)
Nodepublic boolean contains(java.awt.geom.Point2D p)
Nodepublic java.awt.geom.Rectangle2D getBounds()
Nodepublic void setBounds(java.awt.geom.Rectangle2D newBounds)
public java.awt.geom.Point2D getConnectionPoint(java.awt.geom.Point2D aPoint)
NodegetConnectionPoint in interface NodeaPoint - an exterior point that is to be joined
      with this nodeprivate void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOExceptionprivate static void writeRectangularShape(java.io.ObjectOutputStream out, java.awt.geom.RectangularShape s) throws java.io.IOException
out - the streams - the shapejava.io.IOExceptionprivate void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionprivate static void readRectangularShape(java.io.ObjectInputStream in, java.awt.geom.RectangularShape s) throws java.io.IOException
in - the streams - the shape whose frame is set from the stream valuesjava.io.IOException