Together Workflow Editor 3.0-1 API

org.enhydra.jawe.components.graph
Class DefaultGraphActivityView

java.lang.Object
  extended by org.jgraph.graph.AbstractCellView
      extended by org.jgraph.graph.VertexView
          extended by org.enhydra.jawe.components.graph.DefaultGraphActivityView
All Implemented Interfaces:
java.io.Serializable, GraphActivityViewInterface, org.jgraph.graph.CellView
Direct Known Subclasses:
DefaultGraphBubbleActivityView

public class DefaultGraphActivityView
extends org.jgraph.graph.VertexView
implements GraphActivityViewInterface

Represents a view for a model's Activity object.

Author:
Sasa Bojanic
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces 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
DefaultGraphActivityView(java.lang.Object cell)
          Constructs a activity view for the specified model object.
 
Method Summary
protected  GraphActivityRendererInterface createRenderer(org.enhydra.shark.xpdl.elements.Activity act)
           
 java.awt.geom.Rectangle2D getBounds()
          Returns the bounding rectangle for this view.
 java.awt.geom.Point2D getPerimeterPoint(org.jgraph.graph.EdgeView edge, java.awt.geom.Point2D source, java.awt.geom.Point2D p)
           
 org.jgraph.graph.CellViewRenderer getRenderer()
          Returns a renderer for the class.
 
Methods inherited from class org.jgraph.graph.VertexView
getCachedBounds, getCenterPoint, getHandle, 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, intersects, 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, getRendererComponent, intersects, isLeaf, refresh, removeFromParent, update
 

Field Detail

renderers

protected static java.util.Map renderers
Constructor Detail

DefaultGraphActivityView

public DefaultGraphActivityView(java.lang.Object cell)
Constructs a activity 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.

Overrides:
getRenderer in class org.jgraph.graph.VertexView

getBounds

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

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

createRenderer

protected GraphActivityRendererInterface createRenderer(org.enhydra.shark.xpdl.elements.Activity act)

getPerimeterPoint

public java.awt.geom.Point2D getPerimeterPoint(org.jgraph.graph.EdgeView edge,
                                               java.awt.geom.Point2D source,
                                               java.awt.geom.Point2D p)
Specified by:
getPerimeterPoint in interface org.jgraph.graph.CellView
Overrides:
getPerimeterPoint in class org.jgraph.graph.VertexView

Together Workflow Editor 3.0-1 API