com.jgraph.example.fastgraph
Class FastCircleView

java.lang.Object
  extended by org.jgraph.graph.AbstractCellView
      extended by org.jgraph.graph.VertexView
          extended by com.jgraph.example.fastgraph.FastVertexView
              extended by com.jgraph.example.fastgraph.FastCircleView
All Implemented Interfaces:
java.io.Serializable, org.jgraph.graph.CellView

public class FastCircleView
extends FastVertexView

Author:
Gaudenz Alder TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments
See Also:
Serialized Form

Nested Class Summary
static class FastCircleView.JGraphEllipseRenderer
          The renderer for this view
 
Nested classes/interfaces inherited from class org.jgraph.graph.VertexView
org.jgraph.graph.VertexView.SizeHandle
 
Field Summary
static FastCircleView.JGraphEllipseRenderer renderer
          The renderer for this view
 
Fields inherited from class org.jgraph.graph.VertexView
defaultBounds, defaultCursors, xCursors, yCursors
 
Fields inherited from class org.jgraph.graph.AbstractCellView
cellEditor
 
Constructor Summary
FastCircleView()
          The default constructor
FastCircleView(java.lang.Object cell)
          Constructs a fast circle view associated this view with the specified cell
 
Method Summary
 java.awt.geom.Point2D getPerimeterPoint(java.awt.geom.Point2D source, java.awt.geom.Point2D p)
          Returns the intersection of the bounding rectangle and the straight line between the source and the specified point p.
 org.jgraph.graph.CellViewRenderer getRenderer()
           
 
Methods inherited from class com.jgraph.example.fastgraph.FastVertexView
changeAttributes, setAttributes
 
Methods inherited from class org.jgraph.graph.VertexView
getBounds, getCachedBounds, getCenterPoint, getHandle, getPerimeterPoint, setCachedBounds, update
 
Methods inherited from class org.jgraph.graph.AbstractCellView
childUpdated, getAllAttributes, getAttributes, getBounds, getCell, getCenterPoint, getChildViews, getDescendantViews, getEditor, getParentView, getRendererComponent, intersects, isLeaf, refresh, removeFromParent, scale, setBounds, setCell, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderer

public static transient FastCircleView.JGraphEllipseRenderer renderer
The renderer for this view

Constructor Detail

FastCircleView

public FastCircleView()
The default constructor


FastCircleView

public FastCircleView(java.lang.Object cell)
Constructs a fast circle view associated this view with the specified cell

Parameters:
cell - the model cell to associated this view with
Method Detail

getPerimeterPoint

public java.awt.geom.Point2D getPerimeterPoint(java.awt.geom.Point2D source,
                                               java.awt.geom.Point2D p)
Returns the intersection of the bounding rectangle and the straight line between the source and the specified point p. The specified point is expected not to intersect the bounds.

Overrides:
getPerimeterPoint in class org.jgraph.graph.VertexView

getRenderer

public org.jgraph.graph.CellViewRenderer getRenderer()
Overrides:
getRenderer in class org.jgraph.graph.VertexView
Returns:
the renderer for this view