biz.hammurapi.web.webdiagram
Class WebDiagramModel

java.lang.Object
  extended byjavax.swing.undo.UndoableEditSupport
      extended byorg.jgraph.graph.DefaultGraphModel
          extended bybiz.hammurapi.diagram.DiagramModel
              extended bybiz.hammurapi.web.webdiagram.WebDiagramModel
All Implemented Interfaces:
biz.hammurapi.diagram.Descriptable, org.jgraph.graph.GraphModel, java.io.Serializable

public class WebDiagramModel
extends biz.hammurapi.diagram.DiagramModel

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class biz.hammurapi.diagram.DiagramModel
biz.hammurapi.diagram.DiagramModel.DiagramEdgeHandle
 
Nested classes inherited from class org.jgraph.graph.DefaultGraphModel
org.jgraph.graph.DefaultGraphModel.EmptyIterator, org.jgraph.graph.DefaultGraphModel.GraphModelEdit, org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit
 
Field Summary
 
Fields inherited from class org.jgraph.graph.DefaultGraphModel
asksAllowsChildren, attributes, emptyIterator, listenerList, removeEmptyGroups, roots
 
Fields inherited from class javax.swing.undo.UndoableEditSupport
compoundEdit, listeners, realSource, updateLevel
 
Constructor Summary
WebDiagramModel(biz.hammurapi.diagram.DiagramApplet applet, boolean isCompositeService)
           
 
Method Summary
 boolean acceptsSource(java.lang.Object edge, java.lang.Object port)
           
 boolean acceptsTarget(java.lang.Object edge, java.lang.Object port)
           
 boolean canDelete(java.lang.Object[] selectionCells)
          Checks if selected cells can be deleted from the model.
 biz.hammurapi.diagram.DiagramEdge createEdge(org.jgraph.graph.DefaultPort source, org.jgraph.graph.DefaultPort target)
           
 Entity createEntity()
           
 Activity createPage()
           
 biz.hammurapi.diagram.DiagramApplet getApplet()
           
 org.jgraph.graph.CellViewFactory getCellViewFactory()
           
 boolean isCompositeService()
          Model mode - Composite Service (true) or Web diagram (false)
 void loadDefault()
          Loads default diagram elements (if any).
 void populatePopupMenu(biz.hammurapi.diagram.DiagramApplet applet, java.awt.Point pt, javax.swing.JPopupMenu menu)
           
 void populateToolbar(biz.hammurapi.diagram.DiagramApplet applet, javax.swing.JToolBar toolbar)
           
 void remove(java.lang.Object[] roots)
          When cell is removed all edges connecting to the cell are also removed.
 
Methods inherited from class biz.hammurapi.diagram.DiagramModel
cloneCell, createElement, getData, getDescription, getDiagramElement, getGraph, getName, load, nextElementId, setDescription, setGraph, setName, storeCell, storeEdge, validate
 
Methods inherited from class org.jgraph.graph.DefaultGraphModel
addGraphModelListener, beginUpdate, cellsChanged, cloneCell, cloneCell, cloneCells, cloneUserObject, connect, contains, containsEdgeBetween, createEdit, createLayerEdit, createRemoveEdit, edges, edit, edit, endUpdate, execute, fireGraphChanged, getAll, getAttributes, getAttributes, getChild, getChildCount, getConnectionSet, getDescendants, getEdges, getEdges, getEdgesBetween, getGraphModelListeners, getIncomingEdges, getIndexOfChild, getIndexOfRoot, getOpposite, getOutgoingEdges, getParent, getRootAt, getRootCount, getRoots, getRoots, getRoots, getRootsAsCollection, getSource, getSourceVertex, getTarget, getTargetVertex, getTopmostCells, getUpdateLevel, getUserObject, getValue, handleAttributes, handleConnection, handleConnectionSet, handleInsert, handleParentMap, handleRemove, hasAncestorIn, insert, isEdge, isGroup, isLeaf, isPort, isRemoveEmptyGroups, isVertex, order, removeGraphModelListener, setParent, setRemoveEmptyGroups, setSourcePort, setTargetPort, toBack, toFront, valueForCellChanged
 
Methods inherited from class javax.swing.undo.UndoableEditSupport
_postEdit, addUndoableEditListener, createCompoundEdit, getUndoableEditListeners, postEdit, removeUndoableEditListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jgraph.graph.GraphModel
addUndoableEditListener, removeUndoableEditListener
 

Constructor Detail

WebDiagramModel

public WebDiagramModel(biz.hammurapi.diagram.DiagramApplet applet,
                       boolean isCompositeService)
Method Detail

isCompositeService

public boolean isCompositeService()
Model mode - Composite Service (true) or Web diagram (false)

Returns:

acceptsSource

public boolean acceptsSource(java.lang.Object edge,
                             java.lang.Object port)

acceptsTarget

public boolean acceptsTarget(java.lang.Object edge,
                             java.lang.Object port)

createPage

public Activity createPage()

createEntity

public Entity createEntity()

createEdge

public biz.hammurapi.diagram.DiagramEdge createEdge(org.jgraph.graph.DefaultPort source,
                                                    org.jgraph.graph.DefaultPort target)

getApplet

public biz.hammurapi.diagram.DiagramApplet getApplet()

populatePopupMenu

public void populatePopupMenu(biz.hammurapi.diagram.DiagramApplet applet,
                              java.awt.Point pt,
                              javax.swing.JPopupMenu menu)

populateToolbar

public void populateToolbar(biz.hammurapi.diagram.DiagramApplet applet,
                            javax.swing.JToolBar toolbar)

getCellViewFactory

public org.jgraph.graph.CellViewFactory getCellViewFactory()

canDelete

public boolean canDelete(java.lang.Object[] selectionCells)
Description copied from class: biz.hammurapi.diagram.DiagramModel
Checks if selected cells can be deleted from the model.

Parameters:
selectionCells -
Returns:

remove

public void remove(java.lang.Object[] roots)
Description copied from class: biz.hammurapi.diagram.DiagramModel
When cell is removed all edges connecting to the cell are also removed.


loadDefault

public void loadDefault()
Description copied from class: biz.hammurapi.diagram.DiagramModel
Loads default diagram elements (if any).



Copyright © 2006 Hammurapi Group. All Rights Reserved.