tico.board.componentview
Class TComponentView

java.lang.Object
  extended by org.jgraph.graph.AbstractCellView
      extended by org.jgraph.graph.VertexView
          extended by tico.board.componentview.TComponentView
All Implemented Interfaces:
java.io.Serializable, org.jgraph.graph.CellView
Direct Known Subclasses:
TCellView, TControllerCellView, TGridCellView, TLabelView, TLineView, TOvalView, TRectangleView, TRoundRectView, TTextAreaView

public class TComponentView
extends org.jgraph.graph.VertexView

Default implementation of a TComponent 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
 
Fields inherited from class org.jgraph.graph.VertexView
defaultBounds, defaultCursors, renderer, xCursors, yCursors
 
Constructor Summary
TComponentView()
          Creates a new TComponentView.
TComponentView(java.lang.Object component)
          Creates a new TComponentView for the specified component.
 
Method Summary
 javax.swing.JPopupMenu createPopupMenu(TEditor editor)
          Creates the popupMenu for the component.
 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, setAttributes, setBounds, setCell
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TComponentView

public TComponentView()
Creates a new TComponentView.


TComponentView

public TComponentView(java.lang.Object component)
Creates a new TComponentView for the specified component.

Parameters:
component - The specified component
Method Detail

getRenderer

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

createPopupMenu

public javax.swing.JPopupMenu createPopupMenu(TEditor editor)
Creates the popupMenu for the component.

Parameters:
editor - editor that is editing the component's board
Returns:
The created popupMenu