TWE 2.3-2 API

org.enhydra.jawe.components.graph
Class DefaultGraphActivityView

java.lang.Object
  extended byorg.jgraph.graph.AbstractCellView
      extended byorg.jgraph.graph.VertexView
          extended byorg.enhydra.jawe.components.graph.DefaultGraphActivityView
All Implemented Interfaces:
org.jgraph.graph.CellView, GraphActivityViewInterface, java.io.Serializable
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 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.


getBounds

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

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

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

TWE 2.3-2 API