TWE 2.4-1 API

org.enhydra.jawe.components.graph
Class DefaultGraphParticipantView

java.lang.Object
  extended byorg.jgraph.graph.AbstractCellView
      extended byorg.jgraph.graph.VertexView
          extended byorg.enhydra.jawe.components.graph.DefaultGraphParticipantView
All Implemented Interfaces:
org.jgraph.graph.CellView, GraphParticipantViewInterface, java.io.Serializable

public class DefaultGraphParticipantView
extends org.jgraph.graph.VertexView
implements GraphParticipantViewInterface

Represents a view for a model's Participant object.

Author:
Sasa Bojanic
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.jgraph.graph.VertexView
org.jgraph.graph.VertexView.SizeHandle
 
Field Summary
protected static java.util.Map renderers
           
 
Fields inherited from class org.jgraph.graph.VertexView
bounds, defaultBounds, defaultCursors, renderer, xCursors, yCursors
 
Fields inherited from class org.jgraph.graph.AbstractCellView
allAttributes, attributes, cell, cellEditor, childViews, groupBounds, parent
 
Constructor Summary
DefaultGraphParticipantView(java.lang.Object cell)
          Constructs a participant view for the specified model object.
 
Method Summary
 void addChildView(org.jgraph.graph.CellView childView)
          Adds participants child view to it.
protected  GraphParticipantRendererInterface createRenderer(org.enhydra.shark.xpdl.elements.Participant par)
           
 java.awt.geom.Rectangle2D getBounds()
          Returns the bounding rectangle for this view.
 org.jgraph.graph.CellViewRenderer getRenderer()
          Returns a renderer for the class.
 boolean intersects(org.jgraph.JGraph graph, java.awt.geom.Rectangle2D rect)
          Returns true if name portion of ParticipantView intersects the given rectangle.
 void refreshChildViews(org.jgraph.graph.GraphModel model, org.jgraph.graph.CellMapper mapper)
          Clears childView's and then refreshes it.
 
Methods inherited from class org.jgraph.graph.VertexView
getCachedBounds, getCenterPoint, getHandle, getPerimeterPoint, getPerimeterPoint, setCachedBounds, update
 
Methods inherited from class org.jgraph.graph.AbstractCellView
changeAttributes, childUpdated, createAttributeMap, getAllAttributes, getAttributes, getBounds, getCell, getCellAttributes, getCenterPoint, getChildViews, getDescendantViews, getEditor, getParentView, getRendererComponent, includeInGroupBounds, isLeaf, mergeAttributes, refresh, removeFromParent, scale, setAttributes, setBounds, setCell, translate, updateGroupBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jgraph.graph.CellView
changeAttributes, childUpdated, getAllAttributes, getAttributes, getCell, getChildViews, getEditor, getHandle, getParentView, getPerimeterPoint, getRendererComponent, isLeaf, refresh, removeFromParent, update
 

Field Detail

renderers

protected static java.util.Map renderers
Constructor Detail

DefaultGraphParticipantView

public DefaultGraphParticipantView(java.lang.Object cell)
Constructs a participant view for the specified model object.

Parameters:
cell - reference to the model object
Method Detail

getRenderer

public org.jgraph.graph.CellViewRenderer getRenderer()
Returns a renderer for the class.


intersects

public boolean intersects(org.jgraph.JGraph graph,
                          java.awt.geom.Rectangle2D rect)
Returns true if name portion of ParticipantView intersects the given rectangle.

Specified by:
intersects in interface org.jgraph.graph.CellView

refreshChildViews

public void refreshChildViews(org.jgraph.graph.GraphModel model,
                              org.jgraph.graph.CellMapper mapper)
Clears childView's and then refreshes it.

Specified by:
refreshChildViews in interface GraphParticipantViewInterface

getBounds

public java.awt.geom.Rectangle2D getBounds()
Returns the bounding rectangle for this view.

Specified by:
getBounds in interface org.jgraph.graph.CellView

addChildView

public void addChildView(org.jgraph.graph.CellView childView)
Adds participants child view to it.


createRenderer

protected GraphParticipantRendererInterface createRenderer(org.enhydra.shark.xpdl.elements.Participant par)

TWE 2.4-1 API