com.jgraph.example.mycellview
Class JGraphEllipseView

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

public class JGraphEllipseView
extends org.jgraph.graph.VertexView

Author:
Gaudenz Alder
See Also:
Serialized Form

Nested Class Summary
static class JGraphEllipseView.JGraphEllipseRenderer
           
 
Nested classes/interfaces inherited from class org.jgraph.graph.VertexView
org.jgraph.graph.VertexView.SizeHandle
 
Field Summary
static JGraphEllipseView.JGraphEllipseRenderer renderer
           
 
Fields inherited from class org.jgraph.graph.VertexView
defaultBounds, defaultCursors, xCursors, yCursors
 
Fields inherited from class org.jgraph.graph.AbstractCellView
cellEditor
 
Constructor Summary
JGraphEllipseView()
           
JGraphEllipseView(java.lang.Object cell)
           
 
Method Summary
 java.awt.geom.Point2D getPerimeterPoint(org.jgraph.graph.EdgeView edge, 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 org.jgraph.graph.VertexView
getBounds, getCachedBounds, getCenterPoint, getHandle, getPerimeterPoint, setCachedBounds, update
 
Methods inherited from class org.jgraph.graph.AbstractCellView
changeAttributes, childUpdated, getAllAttributes, getAttributes, getBounds, getCell, getCenterPoint, getChildViews, getDescendantViews, getEditor, getParentView, getRendererComponent, intersects, isLeaf, refresh, removeFromParent, scale, setAttributes, 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 JGraphEllipseView.JGraphEllipseRenderer renderer
Constructor Detail

JGraphEllipseView

public JGraphEllipseView()

JGraphEllipseView

public JGraphEllipseView(java.lang.Object cell)
Method Detail

getPerimeterPoint

public java.awt.geom.Point2D getPerimeterPoint(org.jgraph.graph.EdgeView edge,
                                               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.

Specified by:
getPerimeterPoint in interface org.jgraph.graph.CellView
Overrides:
getPerimeterPoint in class org.jgraph.graph.VertexView

getRenderer

public org.jgraph.graph.CellViewRenderer getRenderer()
Overrides:
getRenderer in class org.jgraph.graph.VertexView