tico.board.componentview
Class TRoundRectView

java.lang.Object
  extended by org.jgraph.graph.AbstractCellView
      extended by org.jgraph.graph.VertexView
          extended by tico.board.componentview.TComponentView
              extended by tico.board.componentview.TRoundRectView
All Implemented Interfaces:
java.io.Serializable, org.jgraph.graph.CellView

public class TRoundRectView
extends TComponentView

Implementation of a TCell view.

Version:
1.0 Nov 20, 2006
Author:
Pablo Muñoz
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jgraph.graph.VertexView
org.jgraph.graph.VertexView.SizeHandle
 
Field Summary
static TRoundRectRenderer renderer
          TRoundRectRendered that displays the TRoundRect of this view.
 
Fields inherited from class org.jgraph.graph.VertexView
defaultBounds, defaultCursors, xCursors, yCursors
 
Constructor Summary
TRoundRectView()
          Creates a new TRoundRectView.
TRoundRectView(java.lang.Object roundRect)
          Creates a new TRoundRectView for the specified roundRect.
 
Method Summary
static int getArcSize(int width, int height)
          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 tico.board.componentview.TComponentView
createPopupMenu
 
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, setAttributes, setBounds, setCell
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderer

public static transient TRoundRectRenderer renderer
TRoundRectRendered that displays the TRoundRect of this view.

Constructor Detail

TRoundRectView

public TRoundRectView()
Creates a new TRoundRectView.


TRoundRectView

public TRoundRectView(java.lang.Object roundRect)
Creates a new TRoundRectView for the specified roundRect.

Parameters:
roundRect - The specified roundRect
Method Detail

getArcSize

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

Returns:
The calculated arc size

getRenderer

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