public class PackageGraph 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| 构造器和说明 |
|---|
PackageGraph(org.jgraph.graph.GraphModel model,
org.jgraph.graph.GraphLayoutCache view,
PackageEditor pe) |
PackageGraph(org.jgraph.graph.GraphModel model,
PackageEditor pe)
Constructs package graph based on a given model.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 the graph for conformance.
|
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.VertexView |
createVertexView(org.jgraph.JGraph graph,
org.jgraph.graph.CellMapper cm,
Object cell)
Override Superclass Method to Return Custom vertexView.
|
void |
createWorkflowGraph(Window pFrame) |
void |
createWorkflowObject(Window pFrame,
WorkflowProcess wp) |
Point |
getNextInsertionPoint()
Returns the point where will be inserted the next process.
|
ProcessEditor |
getProcessEditor()
Gets an editor object.
|
String |
getTooltip()
Gets a tooltip text for element.
|
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() |
void |
setPropertyObject(XMLComplexElement ce) |
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, getWorkflowManager, getXPDLObject, getXPDLSchemaValidationErrorMessages, initGraphBehavior, refreshGraphConfiguration, refreshTransitionGraph, set, setAdditionalKeyboardShortcuts, showPropertyDialog, updateUIaddGraphSelectionListener, addSelectionCell, addSelectionCells, cancelEditing, clearSelection, cloneCells, createBounds, createDefaultGraphView, createEdgeView, 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 PackageGraph(org.jgraph.graph.GraphModel model,
PackageEditor pe)
public PackageGraph(org.jgraph.graph.GraphModel model,
org.jgraph.graph.GraphLayoutCache view,
PackageEditor pe)
public Package getXMLPackage()
getXMLPackage 在类中 AbstractGraphpublic void setPropertyObject(XMLComplexElement ce)
setPropertyObject 在类中 AbstractGraphpublic Point getNextInsertionPoint()
public void createWorkflowGraph(Window pFrame)
createWorkflowGraph 在类中 AbstractGraphpublic void createWorkflowObject(Window pFrame, WorkflowProcess wp)
public String getTooltip()
getTooltip 在接口中 WorkflowElementgetTooltip 在类中 AbstractGraphpublic ProcessEditor getProcessEditor()
AbstractGraphgetProcessEditor 在类中 AbstractGraphprotected org.jgraph.graph.VertexView createVertexView(org.jgraph.JGraph graph,
org.jgraph.graph.CellMapper cm,
Object cell)
createVertexView 在类中 org.jgraph.JGraphpublic String convertValueToString(Object value)
convertValueToString 在类中 org.jgraph.JGraphpublic 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 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)
protected void updateXMLObjectsBeforeChecking()
public boolean checkGraphConformance(boolean fullCheck)
checkGraphConformance 在类中 AbstractGraphfullCheck - true if the full check should be performed, and false if
checking should stop on first conformance errorpublic boolean checkLogic(boolean fullCheck)
AbstractGraphtrue if there are no logic
errors.checkLogic 在类中 AbstractGraphpublic void xmlElementChanged(XMLElement el)
Copyright © 2023 onecode. All rights reserved.