public abstract class AbstractGraph extends org.jgraph.JGraph implements WorkflowElement
org.jgraph.JGraph.EmptySelectionModel, org.jgraph.JGraph.GraphSelectionRedirectorJComponent.AccessibleJComponentContainer.AccessibleAWTContainer| 限定符和类型 | 字段和说明 |
|---|---|
protected List |
basicGraphConformanceErrors
The list of basic graph conformance errors.
|
protected String |
basicGraphConnectionError
The basic connection error that is written at the status bar.
|
protected String |
basicLogicError
The basic logic error that is written at the status bar.
|
protected String |
basicXpdlSchemaValidationError
The basic xpdl schema validation error.
|
protected AbstractEditor |
editor
Reference to editor
|
protected Map |
graphConformanceErrors
Map of activities as a keys and error messages as a values that represent
activities that don't satisfy graph conformance.
|
protected Map |
graphConnectionErrors
Map of activities as a keys and error messages as a values that represent
wrong connected activities.
|
protected Map |
logicErrors
Map of xml objects as keys and error messages as a values that represent
some logic error.
|
protected ProcessEditor |
processEditor |
protected WorkflowManager |
workflowManager
WorkflowManager that controls various things
|
protected XMLComplexElement |
xmlObject |
protected Map |
xpdlSchemaValidationErrors |
antiAliased, 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| 构造器和说明 |
|---|
AbstractGraph(org.jgraph.graph.GraphModel model,
AbstractEditor editor)
Constructs workflow graph based on a given model.
|
AbstractGraph(org.jgraph.graph.GraphModel model,
org.jgraph.graph.GraphLayoutCache view,
AbstractEditor editor) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addSampleData(org.jgraph.graph.GraphModel model)
Overrides super method - don't need to waste a time for this.
|
abstract boolean |
checkConnections(boolean fullCheck)
Checks workflow diagram and returns
true if there are no
wrong-connected or non-connected activities. |
abstract boolean |
checkGraphConformance(boolean fullCheck)
Checks workflow diagram and returns
true if it conforms to
the specified type (fool-blocked, loop-blocked).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. |
abstract boolean |
checkLogic(boolean fullCheck)
Checks xml model and returns
true if there are no logic
errors. |
protected abstract boolean |
checkStartEndEndsConnections(boolean fullCheck) |
abstract void |
createWorkflowGraph(Window pFrame) |
XMLElement |
get(String what)
Gets an userObject property which name is given in parameter what.
|
String |
getBasicConnectionErrorMessage()
Returns the basic connection error for the graph, or null if there are no
errors;
|
List |
getBasicGraphConformanceErrorMessages()
Returns the message to be written in statusbar if graph is not
conformant.
|
String |
getBasicLogicErrorMessage()
Returns the basic logic error, or null if there are no errors.
|
String |
getBasicXPDLSchemaValidationErrorMessage() |
Map |
getConnectionErrorMessages()
Returns Map of activities as a keys and error message strings as a value.
|
AbstractEditor |
getEditor()
Gets an editor object.
|
Map |
getGraphConformanceErrorMessages()
Returns map of activities as a keys and error message strings as a value.
|
Map |
getLogicErrorMessages()
Returns Map of xml objects as keys and error message strings as values.
|
abstract ProcessEditor |
getProcessEditor()
Gets an editor object.
|
XMLElement |
getPropertyObject()
Gets a property object (DTDElement).
|
String |
getTooltip()
Gets a tooltip text for element.
|
abstract 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. |
WorkflowManager |
getWorkflowManager()
Gets the WorkflowManager.
|
abstract Package |
getXMLPackage() |
XMLElement |
getXPDLObject()
Gets an XPDL object (DTDElement).
|
Map |
getXPDLSchemaValidationErrorMessages() |
protected void |
initGraphBehavior() |
void |
refreshGraphConfiguration()
刷新流程的图形配置
|
void |
refreshTransitionGraph()
刷新流程所有路由的颜色配置
|
void |
set(String what,
Object value)
Sets an userObject property which name is given in parameter what to a
value given in a parameter value.
|
void |
setAdditionalKeyboardShortcuts() |
abstract void |
setPropertyObject(XMLComplexElement ce) |
void |
showPropertyDialog(Window parentWindow,
AbstractGraph graph)
To satisfy interface
|
void |
updateUI()
Notification from the
UIManager that the L&F has changed. |
protected abstract void |
updateXMLObjectsBeforeChecking() |
abstract boolean |
validateAgainsXPDLSchema() |
addGraphSelectionListener, addSelectionCell, addSelectionCells, cancelEditing, clearSelection, cloneCells, convertValueToString, createBounds, createDefaultGraphView, createEdgeView, createEdgeView, createPortView, createPortView, createVertexView, 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, waitgetAccessibleContextprotected XMLComplexElement xmlObject
protected transient WorkflowManager workflowManager
protected transient AbstractEditor editor
protected transient ProcessEditor processEditor
protected Map xpdlSchemaValidationErrors
protected String basicXpdlSchemaValidationError
protected Map graphConnectionErrors
protected String basicGraphConnectionError
protected Map graphConformanceErrors
protected List basicGraphConformanceErrors
protected Map logicErrors
protected String basicLogicError
public AbstractGraph(org.jgraph.graph.GraphModel model,
AbstractEditor editor)
public AbstractGraph(org.jgraph.graph.GraphModel model,
org.jgraph.graph.GraphLayoutCache view,
AbstractEditor editor)
public abstract Package getXMLPackage()
public abstract void setPropertyObject(XMLComplexElement ce)
public abstract void createWorkflowGraph(Window pFrame)
public abstract 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 在类中 org.jgraph.JGraphevent - the MouseEvent that initiated the
ToolTip displaynull if
event is nullprotected void initGraphBehavior()
public void refreshGraphConfiguration()
public void refreshTransitionGraph()
public static void addSampleData(org.jgraph.graph.GraphModel model)
public void showPropertyDialog(Window parentWindow, AbstractGraph graph)
showPropertyDialog 在接口中 WorkflowElementpublic XMLElement getPropertyObject()
getPropertyObject 在接口中 WorkflowElementpublic XMLElement getXPDLObject()
public XMLElement get(String what)
get 在接口中 WorkflowElementpublic void set(String what, Object value)
set 在接口中 WorkflowElementpublic String getTooltip()
getTooltip 在接口中 WorkflowElementpublic AbstractEditor getEditor()
public abstract ProcessEditor getProcessEditor()
public WorkflowManager getWorkflowManager()
public Map getXPDLSchemaValidationErrorMessages()
public String getBasicXPDLSchemaValidationErrorMessage()
public Map getConnectionErrorMessages()
public String getBasicConnectionErrorMessage()
public abstract boolean validateAgainsXPDLSchema()
public abstract boolean checkConnections(boolean fullCheck)
true 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(). protected abstract boolean checkStartEndEndsConnections(boolean fullCheck)
protected abstract void updateXMLObjectsBeforeChecking()
public Map getGraphConformanceErrorMessages()
public List getBasicGraphConformanceErrorMessages()
public abstract boolean checkGraphConformance(boolean fullCheck)
true if it conforms to
the specified type (fool-blocked, loop-blocked).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 errors are reported as
a map and consists of improper activities as a keys and String messages
as a values and could be retrieved by a method
getConformanceErrorMessages(). public Map getLogicErrorMessages()
public String getBasicLogicErrorMessage()
public abstract boolean checkLogic(boolean fullCheck)
true if there are no logic
errors.public void updateUI()
UIManager that the L&F has changed.
Replaces the current UI object with the latest version from the
UIManager. Subclassers can override this to support
different GraphUIs.updateUI 在类中 org.jgraph.JGraphJComponent.updateUI()public void setAdditionalKeyboardShortcuts()
Copyright © 2023 onecode. All rights reserved.