public abstract class RectangularNode extends java.lang.Object implements Node
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.
|
void |
setBounds(java.awt.geom.Rectangle2D newBounds) |
void |
translate(double dx,
double dy)
Translates the node by a given amount.
|
public RectangularNode()
public java.lang.Object clone()
public void translate(double dx, double dy)
Node
public boolean contains(java.awt.geom.Point2D p)
Node
public java.awt.geom.Rectangle2D getBounds()
Node
public void setBounds(java.awt.geom.Rectangle2D newBounds)
public java.awt.geom.Point2D getConnectionPoint(java.awt.geom.Point2D aPoint)
Node
getConnectionPoint
in interface Node
aPoint
- an exterior point that is to be joined
with this node