Together Workflow Editor 3.0-1 API

org.enhydra.jawe.components.graph
Class DefaultGraphTransitionView

java.lang.Object
  extended byorg.jgraph.graph.AbstractCellView
      extended byorg.jgraph.graph.EdgeView
          extended byorg.enhydra.jawe.components.graph.GraphTransitionViewInterface
              extended byorg.enhydra.jawe.components.graph.DefaultGraphTransitionView
All Implemented Interfaces:
org.jgraph.graph.CellView, java.io.Serializable

public class DefaultGraphTransitionView
extends GraphTransitionViewInterface

Represents a view for a model's Transition object.

Author:
Sasa Bojanic
See Also:
Serialized Form

Nested Class Summary
static class DefaultGraphTransitionView.TransitionHandle
           
 
Nested classes inherited from class org.jgraph.graph.EdgeView
org.jgraph.graph.EdgeView.EdgeHandle
 
Field Summary
protected static java.util.Map renderers
           
 
Fields inherited from class org.jgraph.graph.EdgeView
beginShape, cachedBounds, cachedExtraLabelBounds, cachedLabelBounds, endShape, extraLabelPositions, labelPosition, labelVector, lineShape, points, renderer, sharedPath, source, sourceParentView, target, targetParentView
 
Fields inherited from class org.jgraph.graph.AbstractCellView
allAttributes, attributes, cell, cellEditor, childViews, groupBounds, parent
 
Constructor Summary
DefaultGraphTransitionView(java.lang.Object cell)
          Constructs an edge view for the specified model object.
 
Method Summary
 void addPoint(Graph graph, java.awt.Point popupPoint)
          Inserts a "break point" at transition object at the point where popup menu appeared.
protected  GraphTransitionRendererInterface createRenderer(org.enhydra.shark.xpdl.elements.Transition tra)
           
 org.jgraph.graph.CellHandle getHandle(org.jgraph.graph.GraphContext context)
          Returns a cell handle for the view.
 org.jgraph.graph.CellViewRenderer getRenderer()
           
 void removePoint(Graph graph, java.awt.Point popupPoint)
          Removes a "break point" from transition at the point where popup menu appeared.
 
Methods inherited from class org.jgraph.graph.EdgeView
addPoint, checkDefaultLabelPosition, getBounds, getExtraLabelBounds, getExtraLabelPosition, getLabelBounds, getLabelPosition, getLabelVector, getLength, getNearestPoint, getPerimeterPoint, getPoint, getPointCount, getPointLocation, getPoints, getShape, getSource, getSourceParentView, getTarget, getTargetParentView, getVisibleParent, intersects, refresh, removePoint, setExtraLabelPosition, setLabelPosition, setPoint, setSource, setTarget, 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, 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
 

Field Detail

renderers

protected static java.util.Map renderers
Constructor Detail

DefaultGraphTransitionView

public DefaultGraphTransitionView(java.lang.Object cell)
Constructs an edge view for the specified model object.

Parameters:
cell - reference to the model object
Method Detail

getRenderer

public org.jgraph.graph.CellViewRenderer getRenderer()

getHandle

public org.jgraph.graph.CellHandle getHandle(org.jgraph.graph.GraphContext context)
Returns a cell handle for the view.


addPoint

public void addPoint(Graph graph,
                     java.awt.Point popupPoint)
Inserts a "break point" at transition object at the point where popup menu appeared.

Specified by:
addPoint in class GraphTransitionViewInterface

removePoint

public void removePoint(Graph graph,
                        java.awt.Point popupPoint)
Removes a "break point" from transition at the point where popup menu appeared.

Specified by:
removePoint in class GraphTransitionViewInterface

createRenderer

protected GraphTransitionRendererInterface createRenderer(org.enhydra.shark.xpdl.elements.Transition tra)

Together Workflow Editor 3.0-1 API