org.graffiti.plugins.views.defaults
Class CircularNodeShape

java.lang.Object
  extended by org.graffiti.plugins.views.defaults.AbstractArrowShape
      extended by org.graffiti.plugins.views.defaults.RectangularNodeShape
          extended by org.graffiti.plugins.views.defaults.CircularNodeShape
All Implemented Interfaces:
Shape, ArrowShape, GraffitiShape, GraphElementShape, NodeShape
Direct Known Subclasses:
CircleNodeShape, EllipseNodeShape

public abstract class CircularNodeShape
extends RectangularNodeShape

Concrete class representing an ellipse.


Constructor Summary
CircularNodeShape()
          The constructor creates an ellipse using default values.
 
Method Summary
 void buildShape(NodeGraphicAttribute nodeAttr)
          This method sets all necessary properties using the values contained within the CollectionAttribute (like size etc.).
 boolean contains(double a, double b)
          DOCUMENT ME!
 boolean contains(double a, double b, double c, double d)
          DOCUMENT ME!
abstract  Point2D getIntersection(Line2D line)
          Calculates the intersection between this shape and a line.
 PathIterator getPathIterator(AffineTransform t)
          DOCUMENT ME!
 PathIterator getPathIterator(AffineTransform t, double d)
          DOCUMENT ME!
 
Methods inherited from class org.graffiti.plugins.views.defaults.RectangularNodeShape
contains, contains, getBounds, getBounds2D, getRealBounds2D, intersects, intersects
 
Methods inherited from class org.graffiti.plugins.views.defaults.AbstractArrowShape
affix, getAnchor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircularNodeShape

public CircularNodeShape()
The constructor creates an ellipse using default values.

Method Detail

getIntersection

public abstract Point2D getIntersection(Line2D line)
Calculates the intersection between this shape and a line.

Specified by:
getIntersection in interface NodeShape
Overrides:
getIntersection in class RectangularNodeShape
Parameters:
line -
Returns:
the intersection point or null if shape and line do not intersect.

getPathIterator

public PathIterator getPathIterator(AffineTransform t,
                                    double d)
DOCUMENT ME!

Specified by:
getPathIterator in interface Shape
Overrides:
getPathIterator in class RectangularNodeShape
Parameters:
t - DOCUMENT ME!
d - DOCUMENT ME!
Returns:
DOCUMENT ME!
See Also:
Shape.getPathIterator(java.awt.geom.AffineTransform, double)

getPathIterator

public PathIterator getPathIterator(AffineTransform t)
DOCUMENT ME!

Specified by:
getPathIterator in interface Shape
Overrides:
getPathIterator in class RectangularNodeShape
Parameters:
t - DOCUMENT ME!
Returns:
DOCUMENT ME!
See Also:
Shape.getPathIterator(java.awt.geom.AffineTransform)

buildShape

public void buildShape(NodeGraphicAttribute nodeAttr)
This method sets all necessary properties using the values contained within the CollectionAttribute (like size etc.).

Parameters:
nodeAttr - The attribute that contains all necessary information to construct an ellipse.

contains

public boolean contains(double a,
                        double b,
                        double c,
                        double d)
DOCUMENT ME!

Specified by:
contains in interface Shape
Overrides:
contains in class RectangularNodeShape
Parameters:
a - DOCUMENT ME!
b - DOCUMENT ME!
c - DOCUMENT ME!
d - DOCUMENT ME!
Returns:
DOCUMENT ME!
See Also:
Shape.contains(double, double, double, double)

contains

public boolean contains(double a,
                        double b)
DOCUMENT ME!

Specified by:
contains in interface Shape
Overrides:
contains in class RectangularNodeShape
Parameters:
a - DOCUMENT ME!
b - DOCUMENT ME!
Returns:
DOCUMENT ME!
See Also:
Shape.contains(double, double)


Generated at 2012-05-30 11:01:25 PM CEST