Class RectangularNodeShape
java.lang.Object
org.graffiti.plugins.views.defaults.AbstractArrowShape
org.graffiti.plugins.views.defaults.RectangularNodeShape
- All Implemented Interfaces:
Shape
,ArrowShape
,GraffitiShape
,GraphElementShape
,NodeShape
- Direct Known Subclasses:
CircularNodeShape
,PolygonalNodeShape
,RectangleNodeShape
public abstract class RectangularNodeShape extends AbstractArrowShape implements NodeShape
An implementation of
NodeShape
representing rectangular shapes.-
Constructor Summary
Constructors Constructor Description RectangularNodeShape()
-
Method Summary
Modifier and Type Method Description boolean
contains(double x, double y)
DOCUMENT ME!boolean
contains(double x, double y, double w, double h)
DOCUMENT ME!boolean
contains(Point2D p)
DOCUMENT ME!boolean
contains(Rectangle2D r)
DOCUMENT ME!Rectangle
getBounds()
DOCUMENT ME!Rectangle2D
getBounds2D()
DOCUMENT ME!PathIterator
getPathIterator(AffineTransform at)
DOCUMENT ME!PathIterator
getPathIterator(AffineTransform at, double flatness)
DOCUMENT ME!Rectangle2D
getRealBounds2D()
Returns aRectangle2D
that represents the encapsulatedRectangle2D
, but has coordinates transformed relative to the view (instead of relative to theNodeComponent
).double
getXexcess()
double
getYexcess()
boolean
intersects(double x, double y, double w, double h)
DOCUMENT ME!boolean
intersects(Rectangle2D r)
DOCUMENT ME!void
setCoordinateSystem(CoordinateSystem coordinates)
Methods inherited from class org.graffiti.plugins.views.defaults.AbstractArrowShape
addThickness, affix, getAnchor, updateSize
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graffiti.plugin.view.NodeShape
buildShape, getIntersection, shapeHeightCorrection, shapeWidthCorrection
-
Constructor Details
-
RectangularNodeShape
public RectangularNodeShape()
-
-
Method Details
-
getBounds
DOCUMENT ME!- Specified by:
getBounds
in interfaceShape
- Overrides:
getBounds
in classAbstractArrowShape
- Returns:
- DOCUMENT ME!
-
getBounds2D
DOCUMENT ME!- Specified by:
getBounds2D
in interfaceShape
- Overrides:
getBounds2D
in classAbstractArrowShape
- Returns:
- DOCUMENT ME!
-
getPathIterator
Description copied from class:AbstractArrowShape
DOCUMENT ME!- Specified by:
getPathIterator
in interfaceShape
- Overrides:
getPathIterator
in classAbstractArrowShape
- Parameters:
at
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getPathIterator
Description copied from class:AbstractArrowShape
DOCUMENT ME!- Specified by:
getPathIterator
in interfaceShape
- Overrides:
getPathIterator
in classAbstractArrowShape
- Parameters:
at
- DOCUMENT ME!flatness
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getRealBounds2D
Returns aRectangle2D
that represents the encapsulatedRectangle2D
, but has coordinates transformed relative to the view (instead of relative to theNodeComponent
).- Specified by:
getRealBounds2D
in interfaceGraphElementShape
- Returns:
- a copy of the encapsulated rectangle but which has the real coordinates in the view.
-
contains
DOCUMENT ME!- Specified by:
contains
in interfaceShape
- Overrides:
contains
in classAbstractArrowShape
- Parameters:
p
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
contains
DOCUMENT ME!- Specified by:
contains
in interfaceShape
- Overrides:
contains
in classAbstractArrowShape
- Parameters:
r
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
contains
public boolean contains(double x, double y)Description copied from class:AbstractArrowShape
DOCUMENT ME!- Specified by:
contains
in interfaceShape
- Overrides:
contains
in classAbstractArrowShape
- Parameters:
x
- DOCUMENT ME!y
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
contains
public boolean contains(double x, double y, double w, double h)Description copied from class:AbstractArrowShape
DOCUMENT ME!- Specified by:
contains
in interfaceShape
- Overrides:
contains
in classAbstractArrowShape
- Parameters:
x
- DOCUMENT ME!y
- DOCUMENT ME!w
- DOCUMENT ME!h
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
intersects
public boolean intersects(double x, double y, double w, double h)DOCUMENT ME!- Specified by:
intersects
in interfaceShape
- Overrides:
intersects
in classAbstractArrowShape
- Parameters:
x
- DOCUMENT ME!y
- DOCUMENT ME!w
- DOCUMENT ME!h
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
intersects
DOCUMENT ME!- Specified by:
intersects
in interfaceShape
- Overrides:
intersects
in classAbstractArrowShape
- Parameters:
r
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
setCoordinateSystem
- Specified by:
setCoordinateSystem
in interfaceGraphElementShape
-
getXexcess
public double getXexcess()- Specified by:
getXexcess
in interfaceGraphElementShape
-
getYexcess
public double getYexcess()- Specified by:
getYexcess
in interfaceGraphElementShape
-