org.graffiti.plugins.views.defaults
Class RectangleNodeShape

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.RectangleNodeShape
All Implemented Interfaces:
Shape, ArrowShape, GraffitiShape, GraphElementShape, NodeShape

public class RectangleNodeShape
extends RectangularNodeShape

Class representing a rectangle.

Version:
$Revision: 5766 $

Constructor Summary
RectangleNodeShape()
          The constructor creates a rectangle using default values.
 
Method Summary
 void buildShape(NodeGraphicAttribute graphics)
          This method sets all necessary properties using the values contained within the CollectionAttribute.
 boolean contains(double a, double b)
          DOCUMENT ME!
 boolean contains(double a, double b, double c, double d)
          DOCUMENT ME!
 Point2D getIntersection(Line2D line)
          Calculates the intersection point between this node 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

RectangleNodeShape

public RectangleNodeShape()
The constructor creates a rectangle using default values.

Method Detail

getIntersection

public Point2D getIntersection(Line2D line)
Description copied from class: RectangularNodeShape
Calculates the intersection point between this node shape and a line.

Specified by:
getIntersection in interface NodeShape
Overrides:
getIntersection in class RectangularNodeShape
Parameters:
line - the line with which the intersection should be calculated.
Returns:
the intersection point between this node shape and the line.
See Also:
NodeShape.getIntersection(Line2D)

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 graphics)
This method sets all necessary properties using the values contained within the CollectionAttribute. This includes

Parameters:
graphics - The attribute that contains all necessary information to construct a rectangle.

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