public class ProcessGraph extends AbstractGraph
org.jgraph.JGraph.EmptySelectionModel, org.jgraph.JGraph.GraphSelectionRedirectorJComponent.AccessibleJComponentContainer.AccessibleAWTContainerbasicGraphConformanceErrors, basicGraphConnectionError, basicLogicError, basicXpdlSchemaValidationError, editor, graphConformanceErrors, graphConnectionErrors, logicErrors, processEditor, workflowManager, xmlObject, xpdlSchemaValidationErrorsantiAliased, ANTIALIASED_PROPERTY, bendable, cloneable, connectable, CROSS_GRID_MODE, disconnectable, disconnectOnMove, DOT_GRID_MODE, dragEnabled, dropEnabled, editable, EDITABLE_PROPERTY, editClickCount, enabled, GRAPH_LAYOUT_CACHE_PROPERTY, GRAPH_MODEL_PROPERTY, graphLayoutCache, graphModel, GRID_SIZE_PROPERTY, GRID_VISIBLE_PROPERTY, gridColor, gridEnabled, gridMode, gridSize, gridVisible, handleColor, handleSize, highlightColor, INVOKES_STOP_CELL_EDITING_PROPERTY, invokesStopCellEditing, LINE_GRID_MODE, lockedHandleColor, marquee, MARQUEE_HANDLER_PROPERTY, marqueeColor, minimumMove, moveable, moveBelowZero, PORTS_VISIBLE_PROPERTY, portsVisible, scale, SCALE_PROPERTY, SELECTION_MODEL_PROPERTY, selectionModel, selectionRedirector, selectNewCells, sizeable, tolerance, VERSIONlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| 构造器和说明 |
|---|
ProcessGraph(org.jgraph.graph.GraphModel model,
AbstractEditor editor,
ProcessEditor processEditor)
Constructs process graph based on a given model.
|
ProcessGraph(org.jgraph.graph.GraphModel model,
org.jgraph.graph.GraphLayoutCache view,
AbstractEditor editor,
ProcessEditor processEditor) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
checkConnections(boolean fullCheck)
Checks workflow diagram and returns
true if there are no
wrong-connected or non-connected activities. |
boolean |
checkGraphConformance(boolean fullCheck)
Checks if graph conforms to the given conformance class.
|
boolean |
checkLogic(boolean fullCheck)
Checks xml model and returns
true if there are no logic
errors. |
protected boolean |
checkStartEndEndsConnections(boolean fullCheck) |
String |
convertValueToString(Object value)
Overrides Superclass method.
|
protected org.jgraph.graph.EdgeView |
createEdgeView(org.jgraph.JGraph graph,
org.jgraph.graph.CellMapper cm,
Object e)
Override Superclass Method to Return Custom EdgeView.
|
protected org.jgraph.graph.PortView |
createPortView(org.jgraph.graph.Port p,
org.jgraph.graph.CellMapper cm)
Override Superclass Method to Return Custom PortView.
|
protected org.jgraph.graph.VertexView |
createVertexView(org.jgraph.JGraph graph,
org.jgraph.graph.CellMapper cm,
Object cell)
Override Superclass Method to Return Custom vertexView.
|
void |
createWorkflowGraph(Window notInUse) |
void |
createWorkflowListGraph(Window pFrame) |
void |
createWorkflowObject(Window pFrame,
WorkflowProcess wp) |
Object |
getFirstParticipantForLocation(int x,
int y)
Finds the topmost Participant at specified location.
|
Set |
getImproperlyConnectedEnds(boolean fullCheck) |
Set |
getImproperlyConnectedStarts(boolean fullCheck) |
org.jgraph.graph.CellView |
getNextViewAt(org.jgraph.graph.CellView[] cells,
org.jgraph.graph.CellView c,
int x,
int y)
Modified from original to suite our needs.
|
org.jgraph.graph.CellView |
getNextViewAt(org.jgraph.graph.CellView current,
int x,
int y)
Modified from original to support all views
|
ProcessEditor |
getProcessEditor()
Gets an editor object.
|
String |
getToolTipText(MouseEvent event)
Overrides
JComponent's getToolTipText
method in order to allow the graph controller to create a tooltip for the
topmost cell under the mousepointer. |
Package |
getXMLPackage() |
protected void |
initGraphBehavior() |
void |
printOrderedAllSelectables()
Only for debugging purpose.
|
void |
setAdditionalKeyboardShortcuts() |
void |
setPropertyObject(XMLComplexElement wp) |
void |
showWebEditor(Window parentWindow,
AbstractGraph graph) |
protected void |
updateXMLObjectsBeforeChecking() |
boolean |
validateAgainsXPDLSchema() |
void |
xmlElementChanged(XMLElement el)
Reacts upon the XML element change by setting isModified flag of
PackageEditor if needed.
|
addSampleData, get, getBasicConnectionErrorMessage, getBasicGraphConformanceErrorMessages, getBasicLogicErrorMessage, getBasicXPDLSchemaValidationErrorMessage, getConnectionErrorMessages, getEditor, getGraphConformanceErrorMessages, getLogicErrorMessages, getPropertyObject, getTooltip, getWorkflowManager, getXPDLObject, getXPDLSchemaValidationErrorMessages, refreshGraphConfiguration, refreshTransitionGraph, set, showPropertyDialog, updateUIaddGraphSelectionListener, addSelectionCell, addSelectionCells, cancelEditing, clearSelection, cloneCells, createBounds, createDefaultGraphView, createEdgeView, createPortView, createPortView, createView, fireValueChanged, fromScreen, fromScreen, getCellBounds, getCellBounds, getDescendantList, getDescendants, getEditClickCount, getEditingCell, getFirstCellForLocation, getGraphLayoutCache, getGridColor, getGridMode, getGridSize, getHandleColor, getHandleSize, getHighlightColor, getInvokesStopCellEditing, getLockedHandleColor, getMarqueeColor, getMarqueeHandler, getMinimumMove, getModel, getNextCellForLocation, getNextViewAt, getNextViewAt, getPortForLocation, getPortViewAt, getPreferredScrollableViewportSize, getRoots, getRoots, getScale, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectionCell, getSelectionCells, getSelectionCount, getSelectionModel, getTolerance, getUI, getUIClassID, graphDidChange, isAntiAliased, isBendable, isCellEditable, isCellSelected, isCloneable, isConnectable, isDisconnectable, isDisconnectOnMove, isDragEnabled, isDropEnabled, isEditable, isEditing, isGridEnabled, isGridVisible, isMoveable, isMoveBelowZero, isPortsVisible, isSelectionEmpty, isSelectNewCells, isSizeable, main, paramString, removeGraphSelectionListener, removeSelectionCell, scrollCellToVisible, scrollPointToVisible, setAntiAliased, setBendable, setCloneable, setConnectable, setDisconnectable, setDisconnectOnMove, setDragEnabled, setDropEnabled, setEditable, setEditClickCount, setGraphLayoutCache, setGridColor, setGridEnabled, setGridMode, setGridSize, setGridVisible, setHandleColor, setHandleSize, setHighlightColor, setInvokesStopCellEditing, setLockedHandleColor, setMarqueeColor, setMarqueeHandler, setMinimumMove, setModel, setMoveable, setMoveBelowZero, setPortsVisible, setScale, setSelectionCell, setSelectionCells, setSelectionModel, setSelectNewCells, setSizeable, setTolerance, setUI, snap, snap, startEditingAtCell, stopEditing, toScreen, toScreen, updateAutoSizeaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAccessibleContextpublic ProcessGraph(org.jgraph.graph.GraphModel model,
AbstractEditor editor,
ProcessEditor processEditor)
public ProcessGraph(org.jgraph.graph.GraphModel model,
org.jgraph.graph.GraphLayoutCache view,
AbstractEditor editor,
ProcessEditor processEditor)
protected void initGraphBehavior()
initGraphBehavior 在类中 AbstractGraphpublic Package getXMLPackage()
getXMLPackage 在类中 AbstractGraphpublic void setPropertyObject(XMLComplexElement wp)
setPropertyObject 在类中 AbstractGraphpublic void createWorkflowGraph(Window notInUse)
createWorkflowGraph 在类中 AbstractGraphpublic String convertValueToString(Object value)
convertValueToString 在类中 org.jgraph.JGraphprotected org.jgraph.graph.VertexView createVertexView(org.jgraph.JGraph graph,
org.jgraph.graph.CellMapper cm,
Object cell)
createVertexView 在类中 org.jgraph.JGraphprotected org.jgraph.graph.EdgeView createEdgeView(org.jgraph.JGraph graph,
org.jgraph.graph.CellMapper cm,
Object e)
createEdgeView 在类中 org.jgraph.JGraphprotected org.jgraph.graph.PortView createPortView(org.jgraph.graph.Port p,
org.jgraph.graph.CellMapper cm)
public Object getFirstParticipantForLocation(int x, int y)
public org.jgraph.graph.CellView getNextViewAt(org.jgraph.graph.CellView current,
int x,
int y)
public org.jgraph.graph.CellView getNextViewAt(org.jgraph.graph.CellView[] cells,
org.jgraph.graph.CellView c,
int x,
int y)
public void printOrderedAllSelectables()
public String getToolTipText(MouseEvent event)
JComponent's getToolTipText
method in order to allow the graph controller to create a tooltip for the
topmost cell under the mousepointer. This differs from JTree where the
renderers tooltip is used.
NOTE: For JGraph to properly display tooltips of its
renderers, JGraph must be a registered component with the
ToolTipManager. This can be done by invoking
ToolTipManager.sharedInstance().registerComponent(graph).
This is not done automatically!
getToolTipText 在类中 AbstractGraphevent - the MouseEvent that initiated the
ToolTip displaynull if
event is nullpublic void setAdditionalKeyboardShortcuts()
public boolean validateAgainsXPDLSchema()
validateAgainsXPDLSchema 在类中 AbstractGraphpublic boolean checkConnections(boolean fullCheck)
AbstractGraphtrue if there are no
wrong-connected or non-connected activities. When checking on block
activity, there are two type's of check realized internaly by a block
activity - the first is check of it's outer representation, and the
second is check of it's inner representation. The eventual errors are
reported as a Map and consists of wrong connected activities as a keys
and String messages as a values and could be retrieved by a method
getConnectionErrorMessages(). checkConnections 在类中 AbstractGraphprotected boolean checkStartEndEndsConnections(boolean fullCheck)
public Set getImproperlyConnectedStarts(boolean fullCheck)
public Set getImproperlyConnectedEnds(boolean fullCheck)
protected void updateXMLObjectsBeforeChecking()
public boolean checkGraphConformance(boolean fullCheck)
checkGraphConformance 在类中 AbstractGraphpublic boolean checkLogic(boolean fullCheck)
AbstractGraphtrue if there are no logic
errors.checkLogic 在类中 AbstractGraphpublic void xmlElementChanged(XMLElement el)
public ProcessEditor getProcessEditor()
getProcessEditor 在类中 AbstractGraphpublic void createWorkflowListGraph(Window pFrame)
public void createWorkflowObject(Window pFrame, WorkflowProcess wp)
public void showWebEditor(Window parentWindow, AbstractGraph graph)
Copyright © 2023 onecode. All rights reserved.