org.graffiti.plugins.views.defaults
Class CircleNodeShape

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
              extended by org.graffiti.plugins.views.defaults.CircleNodeShape
All Implemented Interfaces:
Shape, ArrowShape, GraffitiShape, GraphElementShape, NodeShape

public class CircleNodeShape
extends CircularNodeShape

Class representing a circle.


Constructor Summary
CircleNodeShape()
          The constructor creates a circle 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.).
 Point2D getIntersection(Line2D line)
          Calculates the intersection between this shape and a line.
 
Methods inherited from class org.graffiti.plugins.views.defaults.CircularNodeShape
contains, contains, getPathIterator, getPathIterator
 
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

CircleNodeShape

public CircleNodeShape()
The constructor creates a circle using default values.

Method Detail

getIntersection

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

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

buildShape

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

Specified by:
buildShape in interface NodeShape
Overrides:
buildShape in class CircularNodeShape
Parameters:
nodeAttr - The attribute that contains all necessary information to construct an circle.


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