com.jgraph.example.mycellview
Class JGraphRoundRectView

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

public class JGraphRoundRectView
extends org.jgraph.graph.VertexView

See Also:
Serialized Form

Nested Class Summary
static class JGraphRoundRectView.ActivityRenderer
           
 
Nested classes/interfaces inherited from class org.jgraph.graph.VertexView
org.jgraph.graph.VertexView.SizeHandle
 
Field Summary
static JGraphRoundRectView.ActivityRenderer renderer
           
 
Fields inherited from class org.jgraph.graph.VertexView
defaultBounds, defaultCursors, xCursors, yCursors
 
Fields inherited from class org.jgraph.graph.AbstractCellView
cellEditor
 
Constructor Summary
JGraphRoundRectView()
           
JGraphRoundRectView(java.lang.Object cell)
           
 
Method Summary
static int getArcSize(int width, int height)
          getArcSize calculates an appropriate arc for the corners of the rectangle for boundary size cases of width and height
 org.jgraph.graph.CellViewRenderer getRenderer()
           
 
Methods inherited from class org.jgraph.graph.VertexView
getBounds, getCachedBounds, getCenterPoint, getHandle, getPerimeterPoint, 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 JGraphRoundRectView.ActivityRenderer renderer
Constructor Detail

JGraphRoundRectView

public JGraphRoundRectView()

JGraphRoundRectView

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

getArcSize

public static int getArcSize(int width,
                             int height)
getArcSize calculates an appropriate arc for the corners of the rectangle for boundary size cases of width and height


getRenderer

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