|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface defines a view of a Graph
model as well but adds additional functional specifications. Implementations
of class VisualGraphView represent the top-level containers within
a hierarchy of nested VisualGraphObjectContainer instances and are
responsible for the undo, redo, cut, copy and paste functionalities within a graph
document.
Constructing a VisualGraphView and other visual objects is
done by means of a GraphViewFactory,
which will hide the particular implementation classes from client code.
When new visual edges are introduced via edge-splitting, either manually
or by user interaction, these new edges will be assigned a default style.
This style can be configured for the entire view hierarchy by invoking the
setDefaultEdgeStyle(String) method.
The paste orientation specifies how pasting preserves the relative
order of connected VisualNode objects.
See method setPasteOrientation(int).
VisualEdge update modes determine how connected
VisualEdge objects should behave
when the position of a VisualNode
changes. Update modes can be set with method
setVisualEdgeUpdateMode(int).
A VisualGraphView supports user interaction with the mouse.
To do so it provides the methods listed below:
For both cut() and copy() operations, the currently selected items are copied onto the clipboard, overriding its previous content. The cut() method can be thought of as a copy() operation that is succeeded by a deletion of the selected items. Since it is possible to select both parent containers and their children simultaneously, an internal logic will skip clipboard processing for all selected elements whose parents are selected as well. This is necessary to prevent unexpected results.
Upon invocation of the paste() method, the clipboard contents are copied
again and the resulting copies are inserted into the VisualGraphView
or nested VisualSubgraph objects. This
additional copy is required since it is possible to paste the same clipboard
contents multiple times.
Not including the special paste() methods discussed in the next section,
the following events happen when a normal paste() method is invoked. Please
note that there are two paste() methods, one accepting no parameters
and one of which takes an argument of type Coordinate that
specifies a geometric reference point for the paste() operation.
If reference coordinates are given (typically mouse coordinates),
then the following happens: (This means the version of paste that
takes a Coordinate instance as an argument was invoked.)
VisualSubGraph,
then the clipboard contents are pasted at the mouse position
as children of the particular VisualSubGraph.
VisualSubGraph, then the clipboard contents are pasted at the
mouse position in the top-level VisualGraphView.
If no reference coordinates are given, then the following happens: (This means the no-argument version of paste() was invoked.)
VisualGraphView and this element is not of type
VisualSubGraph, then the bounding box of the clipboard'
contents is positioned at the position of the selected element
plus an additional offset. If all inserted items are invisible,
the visible region of the VisualGraphView is translated so that the
center of the bounding box of the clipboards contents
is positioned at the center of the visible region.
VisualGraphView and this element is of type
VisualSubGraph, then a region R is determined by intersecting
the visible region and the boundary of the selected VisualSubGraph.
If the region R is not empty, then the bounding box of the
clipboards contents is positioned at the center of R.
If R is the empty region, then the contents of the clipboard
are positioned so that the bounding box is centered at the
selected VisualSubGraph. Afterwards, the center of the visible
region is moved so that it is positioned on top of the
bounding box of the clipboards contents.
VisualGraphView instance at the center of the visible region.
For enabling and disabling buttons and menu items in a GUI, it is necessary
to programatically determine if anything is currently available from the
clipboard. The getClipboardSize() method provides exactly this
functionality. If the returned size is larger than zero, you should enable
the paste button and/or menu item.
The methods setSelectPastedElements(boolean) and isSelectPastedElements()
are used for setting and getting that property of the VisualGraphView
which determines whether pasted items are to be selected after the operation or not.
The methods getPasteOrientation() and setPasteOrientation(int) are
used for getting and setting the view orientation. Setting it specifies a
sorting order when multiple nodes are inserted before or behind a reference
node by means of the pasteBefore(com.tensegrity.graph.view.VisualNode) and pasteBehind(com.tensegrity.graph.view.VisualNode) methods.
Also the methods pasteStart() and pasteStop() are dependent on
this sorting order. If only the plain paste methods are used, it is not
required to set this data.
VisualGraphView instances that are dereferenced will be garbage
collected.
VisualGraphView derives from and thus aggregates many interfaces,
including VisualGraph, CompositeView and the
VisualGraphObjectContainer interfaces, allowing
clients to treat a VisualGraphView as one of many specific roles.
Also, it is important to note that a new VisualGraphView instance
requires a reference to a GraphController, which must be advised
to manage the newly created view after instantiation.
VisualGraphObjectContainer,
VisualGraph,
VisualSubgraph,
CompositeView,
InteractionControl,
GraphController| Field Summary | |
static int |
APPLICATION_CLIPBOARD_MODE
Modes for clipboard usage |
static int |
CURSOR_COPY_ON_MOVE
Cursor constant definition |
static java.lang.Object |
CURSOR_KEY_COPY_ON_MOVE
Cursor key definitions |
static int |
DEFAULT_UNDOREDOLIMIT
The default value for the undo redo limit |
static int |
DRAGREPRESENTAION_COPY_MULTI
Constant definition |
static int |
DRAGREPRESENTAION_COPY_SINGLE
Constant definition |
static java.lang.Object |
DRAGREPRESENTAION_KEY_COPY_MULTI
Key definition |
static java.lang.Object |
DRAGREPRESENTAION_KEY_COPY_SINGLE
Key definition |
static int |
DRAW_EDGES_FIRST
Constant that tells about a drawing order of the graph |
static int |
DRAW_FREE
Constant that tells about a drawing order of the graph |
static int |
DRAW_NODES_FIRST
Constant that tells about a drawing order of the graph |
static int |
GROUP_HIGHLIGHTMODE_CONSTRAINED
Constants that that influence the interaction behavior when dealing with large VisualSubgraphs. |
static int |
GROUP_HIGHLIGHTMODE_PLAIN
Constants that that influence the interaction behavior when dealing with large VisualSubgraphs. |
static int |
HIGHLIGHT_COPY
constant definition |
static java.lang.Object |
HIGHLIGHT_KEY_COPY
key definitions |
static int |
MODE_MASK_AUTOLAYOUT
Constants that specify the different modes a VisualGraphView can be in. |
static int |
MODE_MASK_COPY_ON_MOVE
Constants that specify the different modes a VisualGraphView can be in. |
static int |
MODE_MASK_EDGE_CREATION
Constants that specify the different modes a VisualGraphView can be in. |
static int |
MODE_MASK_ZOOM_RECTANGLE
Constants that specify the different modes a VisualGraphView can be in. |
static int |
PASTE_ORIENTATION_LEFT_TO_RIGHT
Modes for pasting orientation. |
static int |
PASTE_ORIENTATION_NONE
Modes for pasting orientation. |
static int |
PASTE_ORIENTATION_TOP_TO_BOTTOM
Modes for pasting orientation. |
static int |
SYSTEM_CLIPBOARD_MODE
Modes for clipboard usage |
static int |
UPDATEMODE_ORTHOGONAL
Constants that define the available update modes. |
static int |
UPDATEMODE_PLAIN
Constants that define the available update modes. |
static int |
UPDATEMODE_SIMPLE
Constants that define the available update modes. |
| Fields inherited from interface com.tensegrity.composite.CompositeNavigatorProvider |
VIEW_SCALE_X, VIEW_SCALE_Y, VIEW_TRANSLATION_X, VIEW_TRANSLATION_Y, VIEWPORT_SCALE_X, VIEWPORT_SCALE_Y, VIEWPORT_TRANSLATION_X, VIEWPORT_TRANSLATION_Y |
| Method Summary | |
void |
addClipboardListener(ClipboardListener clipboardListener)
Add a ClipboardListener to this instance. |
void |
addVisualGraphViewListener(VisualGraphViewListener listener)
Adds an instance of a VisualGraphViewListener to the
VisualGraphView. |
void |
beginHighlighting()
Begins a highlighting sequence, must be called before highlighting methods are called. |
void |
clearClipboard()
Clears the clipboard. |
void |
clearHighlights()
Removes all currently visible highlights from the list of composites to draw. |
void |
clearUndoRedoHistory()
Clears the history of this VisualGraphView so that
no further undo is possible from the current position on. |
void |
copy()
Copies the selection into the internal clipboard. |
VisualEdge |
createCrossVisualEdge(VisualEdge visualedge,
VisualNode sourcenode,
VisualNode targetnode)
|
VisualEdge |
createCrossVisualEdge(VisualNode sourcenode,
VisualNode targetnode)
Adds a cross edge between two given VisualNodes.
|
void |
cut()
Cuts the selection into the internal clipboard. |
VisualGraphView |
deepCopy(GraphController controller)
Makes a deep copy of the VisualGraph and registers the
copy with the given GraphController. |
VisualGraphView |
deepCopyWithoutNodesAndEdges(GraphController controller)
Makes a deep copy of the VisualGraph and registers the copy with the
given controller. |
void |
deleteSelection()
Deletes all currently selected VisualGraphObjects. |
void |
destroy()
Destroys all resources and registered listener references. |
void |
disableUndoRedo()
Disable the undo/redo facility. |
void |
disableVerify()
Disables internal invariant verifications. |
void |
dumpUndoRedoHistory()
Dumps internal info about the undo-journal contents to stderr. |
void |
enableUndoRedo()
Enable the undo/redo facility. |
void |
enableUndoRedoLayoutController()
Enables the undo/redo facility for attribute changes of the associated LayoutController. |
void |
enableVerify()
Enables internal invariant verifications. |
void |
enableVetosFromStack()
This method is API internal and should not be invoked by clients. |
void |
enableVetosWithStack(boolean enable)
This method is API internal and should not be invoked by clients. |
void |
endHighlighting()
Ends a highlighting sequence, must be called after highlighting methods are called. |
void |
foldSelection()
Folds all of the currently selected VisualGraphObjects of the
top-level view into a VisualSubgraph. |
ActionLog |
getActionLog()
Gets the ActionLog instance that is currently used.
|
int |
getClipboardMode()
|
int |
getClipboardSize()
Returns the size of the clipboard. |
java.lang.String |
getDefaultEdgeGeometry()
Gets the geometry to use for VisualEdges that originate from
the edge-creation mode facility. |
java.lang.String |
getDefaultEdgeStyle()
Gets the style to use for VisualEdges that originate from
the edge-creation mode facility. |
java.lang.String |
getDefaultEmptySubgraphGeometry()
Returns the name of the default geometry for empty subgraphs that has been assigned by a former call to setDefaultEmptySubgraphGeometry. |
java.lang.String |
getDefaultEmptySubgraphStyle()
Returns the name of the default style for empty subgraphs that has been assigned by a former call to setDefaultEmptySubgraphStyle. |
java.lang.String |
getDefaultFoldedSubgraphGeometry()
Returns the name of the currently assigned default-geometry for folded subgraphs. |
java.lang.String |
getDefaultFoldedSubgraphRule()
Returns the name of the rule for folded subgraphs. |
Size |
getDefaultFoldedSubgraphSize()
Returns the default-size for folded subgraphs. |
java.lang.String |
getDefaultFoldedSubgraphStyle()
Returns the name of the currently assigned default-style for folded subgraphs. |
int |
getDrawingOrder()
Returns a constant that represents the current drawing order of the VisualGraphView. |
GraphController |
getGraphController()
Returns the primary GraphController of this visualgraphview. |
int |
getGroupHighlightMode()
This method returns the highlighting behavior during interaction. |
InteractionHighlightConfiguration |
getInteractionHighlightConfiguration()
Returns the InteractionHighlightConfiguration instance that is
used within this VisualGraphView to identify the geometries
and styles for highlighting interactions like edge-splitting etc. |
InteractionSettings |
getInteractionSettings()
Returns the current interaction settings class from this VisualGraphView. |
LayoutController |
getLayoutController()
Gets the LayoutController
that is associated with this instance. |
int |
getPasteOrientation()
Returns the current mode for pasting orientation. |
java.lang.String |
getRecentLayoutContext()
Deprecated. |
RuleConfiguration |
getRuleConfiguration()
Returns the RuleConfiguration associated with this
VisualGraphView. |
int |
getUndoRedoLimit()
Returns the maximum amount of steps that are available for undo/redo |
int |
getVisualEdgeUpdateMode()
Returns the update-mode for VisualEdges that are embedded
within the hierarchy of this instance.
|
VisualNodeDropHandlerRegistry |
getVisualNodeDropHandlerRegistry()
Returns the VisualNodeDropHandlerRegistry
instance associated with this object. |
VisualNodeMovedInSubgraphHandlerRegistry |
getVisualNodeMovedInSubgraphHandlerRegistry()
Returns the VisualNodeMovedInSubgraphHandlerRegistry
instance associated with this object. |
VisualNodeOverlayIndicationHandlerRegistry |
getVisualNodeOverlayIndicationHandlerRegistry()
Returns the VisualNodeOverlayIndicationHandlerRegistry
instance associated with this object. |
VisualSubgraphRemoveHandlerRegistry |
getVisualSubgraphRemoveHandlerRegistry()
Returns the VisualSubgraphRemoveHandlerRegistry
instance associated with this object. |
KeyStroke |
getZoomToRectangleKey()
Deprecated. Use (@link com.tensegrity.generic.util.ModifierConfig#getModifier(OperationKey))! |
void |
highlightCrossGroupMoves(VisualNode visualnode)
Highlights any potential cross-graph moves (That means moving nodes/subgraphs into and out of other subgraphs). |
void |
highlightEdgeInsertsAndVisualNodeOverlays(VisualNode visualnode,
int x,
int y)
Highlight any potential edge insertation points for the given visualnode (must be a 0-0-visualnode for any highlighting to occur). |
void |
highlightPorts(CompositeLine compositeline,
int snapToPortDistance)
Highlight any potential ports at the start and endpoint-locations of the given CompositeLine. |
void |
highlightPorts(int[] x,
int[] y,
int[] snapToPortDistance)
Highlight any potential ports at the given locations. |
boolean |
internalAddVisualNodeWithInteractionExecution(InteractionInfo info,
VisualNode visualnode,
boolean doEvent,
boolean doRules)
For internal use only. |
void |
internalCheckpointRollbackState()
For internal use only. |
boolean |
isDropping()
Returns true if a drop operation is currently active. |
boolean |
isPasteToCenter()
Returns true, if pasted elements will be centered in the subgraphs they are pasted into. |
boolean |
isRedoing()
Returns true if redo is currently processed. |
boolean |
isRegionUpdateMode()
Returns the region update-mode. |
boolean |
isRollbackActive()
Returns true if a rollback operation is currently
being processed. |
boolean |
isSaveLayoutConfiguration()
Flag that indicates that layout configuration should be saved along when saving this instance. |
boolean |
isSelectPastedElements()
Gets the flag that determines whether to select pasted elements. |
boolean |
isUndoing()
Returns true if undo is currently processed. |
boolean |
isUndoRedoEnabled()
Returns the state of the undo/redo facility. |
void |
journalPostAction()
For internal use only. |
void |
journalPostAction(java.util.Collection selection)
For internal use only. |
void |
journalPostDrop()
For internal use only. |
void |
journalPostGenericTag()
For internal use only. |
void |
journalPostIgnoreCompositeChanges_C()
For internal use only. |
void |
journalPostIgnoreCompositeChanges_CG()
For internal use only. |
void |
journalPostIgnoreCompositeChanges_CL()
For internal use only. |
void |
journalPostIgnoreCompositeChanges()
For internal use only. |
void |
journalPostIgnoreLayoutChanges()
For internal use only. |
void |
journalPostIgnorePortChanges()
For internal use only. |
void |
journalPostIgnoreRuleChanges()
For internal use only. |
void |
journalPostJoinWithPrevious()
|
void |
journalPostLayout(java.util.Collection basecomposites)
For internal use only. |
void |
journalPreAction()
For internal use only. |
void |
journalPreAction(java.util.Collection selection)
For internal use only. |
void |
journalPreDrop()
For internal use only. |
void |
journalPreGenericTag()
For internal use only. |
void |
journalPreIgnoreCompositeChanges_C()
For internal use only. |
void |
journalPreIgnoreCompositeChanges_CG()
For internal use only. |
void |
journalPreIgnoreCompositeChanges_CL()
For internal use only. |
void |
journalPreIgnoreCompositeChanges()
For internal use only. |
void |
journalPreIgnoreLayoutChanges()
For internal use only. |
void |
journalPreIgnorePortChanges()
For internal use only. |
void |
journalPreIgnoreRuleChanges()
For internal use only. |
void |
journalPreJoinWithPrevious()
|
void |
journalPreLayout(java.util.Collection basecomposites)
For internal use only. |
void |
killRecentUndoInfo()
Kills the most recent undo info (if any exists and if undo is enabled, otherwise nothing will happen and the method returns silently). |
void |
logCustomUndoRedo(CustomUndoRedo customUndoRedo)
Adds a custom user-defined undo/redo step into the internal undo-redo log. |
void |
paste()
Pastes the contents of the internal clipboard into the VisualGraphView. |
void |
paste(Coordinate mousecoordinate)
Pastes the contents of the internal clipboard into the VisualGraphView at the specified mouse position, which
is given in platform pixel coordinates and automatically converted
to view-coordinates internally. |
void |
paste(Coordinate mousecoordinate,
ViewBuilderFilter filter)
Same as paste(Coordinate) except the pasted objects can be modified
through the given ViewBuilderFilter.
|
void |
paste(ViewBuilderFilter filter)
Same as paste() except the pasted objects can be modified through
the given ViewBuilderFilter.
|
void |
pasteBefore(VisualNode visualnode)
This method pastes the contents of the clipboard before the specified VisualNode argument. |
void |
pasteBefore(VisualNode visualnode,
ViewBuilderFilter filter)
Same as pasteBefore(VisualNode) but the pasted objects can
be modified through the given ViewBuilderFilter.
|
void |
pasteBehind(VisualNode visualnode)
This method pastes the contents of the clipboard behind the specified VisualNode argument. |
void |
pasteBehind(VisualNode visualnode,
ViewBuilderFilter filter)
Same as pasteBehind(VisualNode) but the pasted objects can
be modified through the given ViewBuilderFilter.
|
void |
pasteStart()
This method pastes the contents of the clipboard at the beginning of the the VisualSubgraph, which means that the contents of the
clipboard are inserted on the first edge of the container. |
void |
pasteStart(ViewBuilderFilter filter)
Same as pasteStart() but the pasted objects can be modified
through the given ViewBuilderFilter.
|
void |
pasteStart(VisualSubgraph visualsubgraph)
Paste the contents of the internal clipboard into the VisualGraphView.
|
void |
pasteStart(VisualSubgraph visualsubgraph,
ViewBuilderFilter filter)
Same as pasteStart(VisualSubgraph) but the pasted objects can
be modified through the given ViewBuilderFilter.
|
void |
pasteStop()
This method pastes the contents of the clipboard at the end of the VisualSubgraph, which means that the contents of the
clipboard are inserted on the last edge of the container. |
void |
pasteStop(ViewBuilderFilter filter)
Same as pasteStop() but the pasted objects can be modified
through the given ViewBuilderFilter.
|
void |
pasteStop(VisualSubgraph visualsubgraph)
Paste the contents of the internal clipboard into the VisualGraphView.
|
void |
pasteStop(VisualSubgraph visualsubgraph,
ViewBuilderFilter filter)
Same as pasteStop(VisualSubgraph) but the pasted objects can
be modified through the given ViewBuilderFilter.
|
void |
postDropVisualNode(VisualNode visualnode)
Called by the framework after a VisualNode was dropped on the
VisualGraphView. |
void |
redo()
Redo the last undone change. |
boolean |
redoPossible()
Returns a boolean that indicates whether there is a redo
possible or not. |
void |
registerNestedVisualEdgeCreationController(NestedVisualEdgeCreationController edgecreationcontroller)
Registers a NestedVisualEdgeCreationController.
|
void |
removeClipboardListener(ClipboardListener clipboardListener)
Removes a ClipboardListener from this instance. |
void |
removeVisualGraphViewListener(VisualGraphViewListener listener)
Removes a previously added instance of a VisualGraphViewListener. |
void |
requestRollback()
Adds a rollback-request to this instance of VisualGraphView.
|
VisualNode |
resolveVisualSource(VisualEdge visualedge)
For internal use only. |
VisualPort |
resolveVisualSourcePort(VisualEdge visualedge)
For internal use only. |
VisualNode |
resolveVisualTarget(VisualEdge visualedge)
For internal use only. |
VisualPort |
resolveVisualTargetPort(VisualEdge visualedge)
For internal use only. |
void |
setActionLog(ActionLog actionLog)
Sets the ActionLog instance
to use. |
void |
setClipboardMode(int clipboardMode)
|
void |
setDefaultEdgeGeometry(java.lang.String defaultEdgeGeometry)
Sets the geometry to use for VisualEdges that originate from
the edge-creation mode facility. |
void |
setDefaultEdgeStyle(java.lang.String defaultEdgeStyle)
Sets the style to use for VisualEdges that originate from
the edge-creation mode facility. |
void |
setDefaultEmptySubgraphGeometry(java.lang.String defaultEmptySubgraphGeometry)
Sets the name of the default geometry for empty subgraphs. |
void |
setDefaultEmptySubgraphStyle(java.lang.String defaultEmptySubgraphStyle)
Sets the name of the default style for empty subgraphs. |
void |
setDefaultFoldedSubgraphGeometry(java.lang.String defaultFoldedSubgraphGeometry)
Sets the name of the default-geometry for folded subgraphs. |
void |
setDefaultFoldedSubgraphRule(java.lang.String defaultFoldedSubgraphRule)
Sets the name of the rule for folded subgraphs. |
void |
setDefaultFoldedSubgraphSize(Size defaultFoldedSubgraphSize)
Sets the default-size for folded subgraphs. |
void |
setDefaultFoldedSubgraphStyle(java.lang.String defaultFoldedSubgraphStyle)
Sets the name of the default-style for folded subgraphs. |
void |
setDrawingOrder(int drawingorder)
Sets the drawing order of the graph to the mode given by drawingorder. |
void |
setGroupHighlightMode(int mode)
This method changes the highlighting behavior during interaction. |
void |
setLayoutController(LayoutController layoutController)
Sets the LayoutController
that is associated with this instance. |
void |
setPasteOrientation(int pasteOrientation)
Sets the current mode for pasting orientation. |
void |
setPasteToCenter(boolean pasteToCenter)
Enables/disables the centering of pasted elements inside the subgraph they are pasted into |
void |
setRecentLayoutContext(java.lang.String recentLayoutContext)
Deprecated. use #setRecentLayoutContext(String, String) instead. |
void |
setRegionUpdateMode(boolean dirtyRegionMode)
Sets the region update-mode. |
void |
setSaveLayoutConfiguration(boolean saveLayoutConfiguration)
Sets whether layout configuration should be saved along when saving this instance. |
void |
setSelectPastedElements(boolean selectPastedElements)
Sets the flag that determines whether to select pasted elements. |
void |
setUndoRedoLimit(int steps)
Sets the maximum amount of steps that are available for undo/redo. |
void |
setVisualEdgeUpdateMode(int visualedgeUpdateMode)
Sets the update-mode for VisualEdges. |
void |
setZoomToRectangleKey(KeyStroke zoomToRectangleKey)
Deprecated. Use (@link com.tensegrity.generic.util.ModifierConfig#setModifier(OperationKey, int))! |
VisualEdge[] |
splitEdge(VisualEdge visualedge,
VisualNode visualnode)
Splits the given VisualEdge with the given
VisualNode.
|
void |
undo()
Undo the last undoable change. |
boolean |
undoPossible()
Returns a boolean that indicates whether there is an undo
possible or not. |
void |
unfoldSelection()
Unfolds the currently selected VisualGraphObjects and removes
them from the top-level view. |
NestedVisualEdgeCreationController |
unregisterNestedVisualEdgeCreationController()
Unregisters the current NestedVisualEdgeCreationController.
|
void |
updateView(boolean adjustEdges)
Updates the view, with optional adjustment parameter. |
| Methods inherited from interface com.tensegrity.composite.BaseCompositeContainer |
addComposite, addComposites, getCompositeCount, getCompositeIterator, removeAllComposites, removeComposite, removeComposites, setComposites |
| Methods inherited from interface com.tensegrity.composite.CompositeNavigatorProvider |
getCompositeBoundingBox, getCompositeIterator, getViewportCoordinates, getViewportValues, getViewValues, isActing, setViewportAndViewValues, setViewportValues, setViewValues |
| Methods inherited from interface com.tensegrity.generic.util.Observable |
addObserver, clearChanged, deleteObserver, deleteObservers, getObservers, notifyObservers, notifyObservers, setChanged |
| Methods inherited from interface com.tensegrity.graphics.interaction.InteractionProvider |
actAt, descriptorChanged, dismissFromInteractionCycle, getCurrentInteractionItemFor, getCursorID, getInteractionProviders, getSelection, getSelectionBoundingBox, hasMultiSelection, hasSelection, hasSubSelection, hitsAt, mouseClickAt, mouseDownAt, mouseMoveAt, mouseUpAt, postAction, preAction, select, selectAll, selectAt, selectContaining, selectSubsequent, setSelection, startActionAt, stopActionAt, unselect, unselect, unselectAll, unselectSubsequent |
| Field Detail |
public static final int DEFAULT_UNDOREDOLIMIT
public static final int DRAW_EDGES_FIRST
public static final int DRAW_NODES_FIRST
public static final int DRAW_FREE
public static final int PASTE_ORIENTATION_NONE
public static final int PASTE_ORIENTATION_LEFT_TO_RIGHT
public static final int PASTE_ORIENTATION_TOP_TO_BOTTOM
public static final int APPLICATION_CLIPBOARD_MODE
public static final int SYSTEM_CLIPBOARD_MODE
public static final int CURSOR_COPY_ON_MOVE
public static final java.lang.Object CURSOR_KEY_COPY_ON_MOVE
public static final int DRAGREPRESENTAION_COPY_SINGLE
public static final java.lang.Object DRAGREPRESENTAION_KEY_COPY_SINGLE
public static final int DRAGREPRESENTAION_COPY_MULTI
public static final java.lang.Object DRAGREPRESENTAION_KEY_COPY_MULTI
public static final int HIGHLIGHT_COPY
public static final java.lang.Object HIGHLIGHT_KEY_COPY
public static final int UPDATEMODE_SIMPLE
VisualEdge is needed when at least one end of the
VisualEdge is connected to a
VisualPort and the VisualNode containing the port
is being moved.
public static final int UPDATEMODE_PLAIN
VisualEdge is needed when at least one end of the
VisualEdge is connected to a
VisualPort and the VisualNode containing the port
is being moved.
public static final int UPDATEMODE_ORTHOGONAL
VisualEdge is needed when at least one end of the
VisualEdge is connected to a
VisualPort and the VisualNode containing the port
is being moved.
public static final int MODE_MASK_EDGE_CREATION
VisualGraphView can be in.
public static final int MODE_MASK_ZOOM_RECTANGLE
VisualGraphView can be in.
public static final int MODE_MASK_AUTOLAYOUT
VisualGraphView can be in.
public static final int MODE_MASK_COPY_ON_MOVE
VisualGraphView can be in.
public static final int GROUP_HIGHLIGHTMODE_PLAIN
VisualSubgraphs.
public static final int GROUP_HIGHLIGHTMODE_CONSTRAINED
VisualSubgraphs.
| Method Detail |
public void destroy()
WARNING: After invoking this method the
VisualGraphView is left in an unusable way
Think of this method like a destructor in c++.
public int getDrawingOrder()
VisualGraphView.
DRAW_EDGES_FIRST,
DRAW_NODES_FIRSTpublic void setDrawingOrder(int drawingorder)
drawingorder. Valid modes are defined through constants
in this interface.
drawingorder - the new drawing order of the graphDRAW_EDGES_FIRST,
DRAW_NODES_FIRSTpublic GraphController getGraphController()
GraphController of this visualgraphview.
GraphController of this visualgraphview.public void registerNestedVisualEdgeCreationController(NestedVisualEdgeCreationController edgecreationcontroller)
NestedVisualEdgeCreationController.
This controller instance serves as a callback to customize
nested-visualedge creation (creation of visualedges that refer to
visualnodes that are placed arbitrarily in the hierarchy of a
single visualgraphview and nested visualsubgraphs).
edgecreationcontroller - the
NestedVisualEdgeCreationController to register.public NestedVisualEdgeCreationController unregisterNestedVisualEdgeCreationController()
NestedVisualEdgeCreationController.
If none is currently registered, nothing will happen.
NestedVisualEdgeCreationController
or null if none was registered.public void setVisualEdgeUpdateMode(int visualedgeUpdateMode)
VisualEdges. The update-mode
determines the behavior of VisualEdges when any of the
VisualNodes they are connected to are moved.
UPDATEMODE_SIMPLEVisualEdges. If a
VisualEdge is not fully connected on both ends, then moving
the VisualNode that has one end connected won't change any
of the VisualEdges coordinates.UPDATEMODE_PLAINUPDATEMODE_SIMPLE, but it will
also update objects of type VisualEdge that are connected to
exactly one of the ends of the corresponding VisualNode.
UPDATEMODE_ORTHOGONAL
visualedgeUpdateMode - the update-mode to set for all
VisualEdges embedded in this instance.public int getVisualEdgeUpdateMode()
Returns the update-mode for VisualEdges that are embedded
within the hierarchy of this instance.
The update-mode determines how VisualEdges react
to translations of VisualNodes they are connected to.
Valid arguments are the integer constants that defined in this class
and that are prefixed with the string UPDATEMODE_.
VisualEdges embedded in this instance.setVisualEdgeUpdateMode(int)public void enableVerify()
public void disableVerify()
public void beginHighlighting()
public void endHighlighting()
public void highlightPorts(int[] x,
int[] y,
int[] snapToPortDistance)
VisualGraph is scanned. Warning: this method may be slow when the
graph has a large number of nodes. The highlighting is done
according to the current highlight mode of the
interaction settings.
x - x-coordinates of the points where to highlight ports.y - y-coordiantes of the points where to highlight ports.snapToPortDistance - the distances that are used to look
for a port, may be null to use default
public void highlightPorts(CompositeLine compositeline,
int snapToPortDistance)
CompositeLine.
compositeline - the compositeline whose ports should be highlighted.snapToPortDistance - the distance that is used to look
for a port, pass -1 to use default
public void highlightEdgeInsertsAndVisualNodeOverlays(VisualNode visualnode,
int x,
int y)
VisualNodeOverlayIndicationHandler
s are invoked.
visualnode - the visualnode to scan for potential edge crossings
and overlays.x - the cursor's x positiony - the cursor's y positionpublic void highlightCrossGroupMoves(VisualNode visualnode)
visualnode - the visualnode to scan for potential group crossings.public void clearHighlights()
public void postDropVisualNode(VisualNode visualnode)
VisualNode was dropped on the
VisualGraphView.
visualnode - the VisualNode that was dropped.VisualNodepublic void foldSelection()
VisualGraphObjects of the
top-level view into a VisualSubgraph. The folded objects are
removed from the top-level view and in turn the VisualSubgraph
that represents those removed objects is added.
public void unfoldSelection()
VisualGraphObjects and removes
them from the top-level view. The contents of the unfolded objects are
inserted into the top-level view. Only those VisualGraphObjects
from the current selection are taken into account that are of the type
VisualSubgraph.
public VisualEdge[] splitEdge(VisualEdge visualedge,
VisualNode visualnode)
VisualEdge with the given
VisualNode.
Both the given VisualEdge and the given
VisualNode must be contained in this
VisualGraphView or in an instance of
VisualSubgraph that is nested directly or indirectly within
this VisualGraphView instance.
If the VisualEdge and the VisualNode are not
in the same VisualSubgraph (or respectively
VisualGraphObjectContainer) the VisualNode is
moved across the hierarchy into the VisualGraphObjectContainer
of the VisualEdge to be split. If a veto occurs before the
split, then the cross
VisualGraphObjectContainer-move is undone.
This method takes care of the rule setting of the EdgeRule
associated to the given VisualEdge and the
NodeRule associated to the given VisualNode.
If one of the two rules prohibits the split operation it is not
performed. One can overcome this behaviour by either changing the rule
setting or by using the RuleConfiguration associated to
this VisualGraphView.
visualedge - the VisualEdge to splitvisualnode - the VisualNode to split the
VisualEdge with
null pointers if and only if the edge split
was veto'd by a rule setting or a
VetoableGraphEventMediatorListener or a
VetoableGraphListener.VisualNode,
VisualEdge,
VisualSubgraph,
VisualGraphObjectContainer,
NodeRule,
RuleConfiguration,
VetoableGraphListener,
VetoableGraphEventMediatorListenerpublic java.lang.String getDefaultEdgeGeometry()
VisualEdges that originate from
the edge-creation mode facility.
VisualEdges.public void setDefaultEdgeGeometry(java.lang.String defaultEdgeGeometry)
VisualEdges that originate from
the edge-creation mode facility.
defaultEdgeGeometry - the default edge-geometry to use for
generated VisualEdges.public java.lang.String getDefaultEdgeStyle()
VisualEdges that originate from
the edge-creation mode facility.
VisualEdges.public void setDefaultEdgeStyle(java.lang.String defaultEdgeStyle)
VisualEdges that originate from
the edge-creation mode facility.
defaultEdgeStyle - the default edge-style to use for
generated VisualEdges.public void setDefaultFoldedSubgraphRule(java.lang.String defaultFoldedSubgraphRule)
defaultFoldedSubgraphRule - the name of the rule for
folded subgraphs.public java.lang.String getDefaultFoldedSubgraphRule()
public void setDefaultFoldedSubgraphSize(Size defaultFoldedSubgraphSize)
defaultFoldedSubgraphSize - the default-size for folded subgraphs.public Size getDefaultFoldedSubgraphSize()
public void setDefaultFoldedSubgraphGeometry(java.lang.String defaultFoldedSubgraphGeometry)
defaultFoldedSubgraphGeometry - the name of the default-geometry
for folded subgraphs.public java.lang.String getDefaultFoldedSubgraphGeometry()
public void setDefaultFoldedSubgraphStyle(java.lang.String defaultFoldedSubgraphStyle)
defaultFoldedSubgraphStyle - the name of the default-style for
folded subgraphs.public java.lang.String getDefaultFoldedSubgraphStyle()
public void setDefaultEmptySubgraphGeometry(java.lang.String defaultEmptySubgraphGeometry)
GeometryDescriptor with the passed name will might have no
meaning for the creation of default subgraphs.
defaultEmptySubgraphGeometry - the name of the default-geometry
for empty subgraphs.public java.lang.String getDefaultEmptySubgraphGeometry()
public void setDefaultEmptySubgraphStyle(java.lang.String defaultEmptySubgraphStyle)
StyleDescriptor might be made, because
it will be modified to assign the folded geometry. So changes to the
StyleDescriptor with the passed name might have no meaning
for the creation of default subgraphs.
defaultEmptySubgraphStyle - the name of the default-style for
empty subgraphs.public java.lang.String getDefaultEmptySubgraphStyle()
public void updateView(boolean adjustEdges)
CoordinateSystem so that it fits to the
internal Composites
Observers
adjustEdges - if true the edges are adjusted (which is the default.)
, if false the edges are not adjusted.public void deleteSelection()
VisualGraphObjects.
public VisualGraphView deepCopy(GraphController controller)
VisualGraph and registers the
copy with the given GraphController.
controller - GraphController
to register the copy to.
VisualGraphView.GraphControllerpublic VisualGraphView deepCopyWithoutNodesAndEdges(GraphController controller)
VisualGraph and registers the copy with the
given controller. During the copy nodes and edges are omitted.
controller - GraphController
to register the copy to.
VisualGraphView.GraphControllerpublic void addClipboardListener(ClipboardListener clipboardListener)
ClipboardListener to this instance.
clipboardListener - the ClipboardListener
to add, must not be null.public void removeClipboardListener(ClipboardListener clipboardListener)
ClipboardListener from this instance. If the
listener was not previously added, this method will returned
silently without performing any action.
clipboardListener - the ClipboardListener
to remove, must not be null.public void setActionLog(ActionLog actionLog)
ActionLog instance
to use. This may be null in case the action log should
be removed.
actionLog - the ActionLog
instance to use for recording user actions.public ActionLog getActionLog()
ActionLog instance that is currently used.
This may be null in case no
ActionLog is currently active.
ActionLog instance or
null.public void setRegionUpdateMode(boolean dirtyRegionMode)
dirtyRegionMode - true indicates that dirty
regions should be computed instead of doing a full redraw.public boolean isRegionUpdateMode()
true is returned if
the VisualGraphView computes its dirty regions for optimized
drawing. However, this may not be desired in certain scenarios.
This method returns false if the
VisualGraphView is not computing its dirty region and
will issues calls to redraw entirely.
public void setZoomToRectangleKey(KeyStroke zoomToRectangleKey)
null as the KeyStroke to disable the feature.
zoomToRectangleKey - specifies the key-stroke that must be pressed
during mouse-drag to perform a "zoom-to-rectangle" operation.public KeyStroke getZoomToRectangleKey()
null is returned.public LayoutController getLayoutController()
LayoutController
that is associated with this instance. May be null.
LayoutController that is
associated with this instance.public void setLayoutController(LayoutController layoutController)
LayoutController
that is associated with this instance. May be null.
layoutController - the
LayoutController to
associate with this instance.public void addVisualGraphViewListener(VisualGraphViewListener listener)
VisualGraphViewListener to the
VisualGraphView. This listener will be notified about
changes specific to the VisualGraphView.
listener - the VisualGraphViewListener to addpublic void removeVisualGraphViewListener(VisualGraphViewListener listener)
VisualGraphViewListener. This listener will no longer be
notified about changes specific to the VisualGraphView.
listener - the VisualGraphViewListener to removepublic boolean isUndoRedoEnabled()
public void enableUndoRedo()
public void enableUndoRedoLayoutController()
LayoutController.
public void disableUndoRedo()
public int getUndoRedoLimit()
public void setUndoRedoLimit(int steps)
steps - the maximum amount of steps that should be available for
undo/redopublic boolean undoPossible()
boolean that indicates whether there is an undo
possible or not.
public boolean redoPossible()
boolean that indicates whether there is a redo
possible or not.
public boolean isUndoing()
true if undo is currently processed.
true if undo is currently processed.public boolean isRedoing()
true if redo is currently processed.
true if redo is currently processed.public void undo()
public void redo()
public void logCustomUndoRedo(CustomUndoRedo customUndoRedo)
CustomUndoRedo in a meaningful way.
customUndoRedo - the user-defined CustomUndoRedo
to log.public void killRecentUndoInfo()
public void clearUndoRedoHistory()
VisualGraphView so that
no further undo is possible from the current position on.
public void dumpUndoRedoHistory()
public int getClipboardMode()
public void setClipboardMode(int clipboardMode)
public int getClipboardSize()
public void clearClipboard()
public int getPasteOrientation()
public void setPasteOrientation(int pasteOrientation)
PASTE_ORIENTATION_LEFT_TO_RIGHTPASTE_ORIENTATION_TOP_TO_BOTTOMPASTE_ORIENTATION_NONE
pasteOrientation - the current paste orientation mode.public boolean isSelectPastedElements()
public void setSelectPastedElements(boolean selectPastedElements)
selectPastedElements - whether to select pasted elements.public boolean isPasteToCenter()
public void setPasteToCenter(boolean pasteToCenter)
pasteToCenter - true, if pasted elements should be centered in
the subgraphs they are pasted into.
public void cut()
throws ClipboardOperationException
ClipboardOperationException
public void copy()
throws ClipboardOperationException
ClipboardOperationException
public void paste()
throws ClipboardOperationException
VisualGraphView.
ClipboardOperationException
public void paste(ViewBuilderFilter filter)
throws ClipboardOperationException
paste() except the pasted objects can be modified through
the given ViewBuilderFilter.
ViewBuilderFilter is only taken into account when
the system clipboard is used for the clipboard operations.
ClipboardOperationException
public void paste(Coordinate mousecoordinate)
throws ClipboardOperationException
VisualGraphView at the specified mouse position, which
is given in platform pixel coordinates and automatically converted
to view-coordinates internally. If the coordinates are
null then a regular paste is made.
mousecoordinate - the mouse coordinate, optionally
null.
ClipboardOperationException
public void paste(Coordinate mousecoordinate,
ViewBuilderFilter filter)
throws ClipboardOperationException
paste(Coordinate) except the pasted objects can be modified
through the given ViewBuilderFilter.
ViewBuilderFilter is only taken into account when
the system clipboard is used for the clipboard operations.
ClipboardOperationException
public void pasteStart()
throws ClipboardOperationException
VisualSubgraph, which means that the contents of the
clipboard are inserted on the first edge of the container. This first edge
is obtained by scanning the container for an edge whose source node has
an in degree of zero. VisualEdge instances that may be on the
clipboard are not processed by this special paste operation, however.
ClipboardOperationException
public void pasteStart(ViewBuilderFilter filter)
throws ClipboardOperationException
pasteStart() but the pasted objects can be modified
through the given ViewBuilderFilter.
ViewBuilderFilter is only taken into account when
the system clipboard is used for the clipboard operations.
ClipboardOperationException
public void pasteStart(VisualSubgraph visualsubgraph)
throws ClipboardOperationException
VisualGraphView.
VisualSubgraph.
visualsubgraph - the VisualSubgraph on whose
first edge the paste shall occur.
ClipboardOperationException
public void pasteStart(VisualSubgraph visualsubgraph,
ViewBuilderFilter filter)
throws ClipboardOperationException
pasteStart(VisualSubgraph) but the pasted objects can
be modified through the given ViewBuilderFilter.
ViewBuilderFilter is only taken into account when
the system clipboard is used for the clipboard operations.
ClipboardOperationException
public void pasteStop()
throws ClipboardOperationException
VisualSubgraph, which means that the contents of the
clipboard are inserted on the last edge of the container. This last
edge is obtained by scanning the container for an edge whose target
node has an out degree of zero. VisualEdge instances
that may be on the clipboard are not processed by this special paste
operation, however.
ClipboardOperationException
public void pasteStop(ViewBuilderFilter filter)
throws ClipboardOperationException
pasteStop() but the pasted objects can be modified
through the given ViewBuilderFilter.
ViewBuilderFilter is only taken into account when
the system clipboard is used for the clipboard operations.
ClipboardOperationException
public void pasteStop(VisualSubgraph visualsubgraph)
throws ClipboardOperationException
VisualGraphView.
The paste occurs by splitting the last edge of the specified
VisualSubgraph.
visualsubgraph - the VisualSubgraph on whose
last edge the paste shall occur.
ClipboardOperationException
public void pasteStop(VisualSubgraph visualsubgraph,
ViewBuilderFilter filter)
throws ClipboardOperationException
pasteStop(VisualSubgraph) but the pasted objects can
be modified through the given ViewBuilderFilter.
ViewBuilderFilter is only taken into account when
the system clipboard is used for the clipboard operations.
ClipboardOperationException
public void pasteBefore(VisualNode visualnode)
throws ClipboardOperationException
VisualNode argument. VisualEdge instances
that may be on the clipboard are not processed by this special paste
operation.
visualnode - the VisualNode to paste before.
ClipboardOperationException
public void pasteBefore(VisualNode visualnode,
ViewBuilderFilter filter)
throws ClipboardOperationException
pasteBefore(VisualNode) but the pasted objects can
be modified through the given ViewBuilderFilter.
ViewBuilderFilter is only taken into account when
the system clipboard is used for the clipboard operations.
visualnode - the VisualNode to paste before.
ClipboardOperationException
public void pasteBehind(VisualNode visualnode)
throws ClipboardOperationException
VisualNode argument. VisualEdge instances
that may be on the clipboard are not processed by this special paste
operation.
visualnode - the VisualNode to paste behind.
ClipboardOperationException
public void pasteBehind(VisualNode visualnode,
ViewBuilderFilter filter)
throws ClipboardOperationException
pasteBehind(VisualNode) but the pasted objects can
be modified through the given ViewBuilderFilter.
ViewBuilderFilter is only taken into account when
the system clipboard is used for the clipboard operations.
visualnode - the VisualNode to paste behind.filter -
ClipboardOperationExceptionpublic RuleConfiguration getRuleConfiguration()
RuleConfiguration associated with this
VisualGraphView.
RuleConfigurationRuleConfigurationpublic InteractionSettings getInteractionSettings()
VisualGraphView. Interaction settings have a higher priority
than the results of the callbacks from the active
InteractionControl class.
VisualGraphViewpublic InteractionHighlightConfiguration getInteractionHighlightConfiguration()
InteractionHighlightConfiguration instance that is
used within this VisualGraphView to identify the geometries
and styles for highlighting interactions like edge-splitting etc. The
returned reference can then be manipulated in order to change styles and
geometries.
InteractionHighlightConfiguration instance associated with
this VisualGraphView.public VisualNodeDropHandlerRegistry getVisualNodeDropHandlerRegistry()
VisualNodeDropHandlerRegistry
instance associated with this object.
VisualNodeDropHandlerRegistry
instance associated with this object.public VisualNodeMovedInSubgraphHandlerRegistry getVisualNodeMovedInSubgraphHandlerRegistry()
VisualNodeMovedInSubgraphHandlerRegistry
instance associated with this object.
VisualNodeMovedInSubgraphHandlerRegistry
instance associated with this object.public VisualNodeOverlayIndicationHandlerRegistry getVisualNodeOverlayIndicationHandlerRegistry()
VisualNodeOverlayIndicationHandlerRegistry
instance associated with this object.
VisualNodeOverlayIndicationHandlerRegistry
instance associated with this object.public VisualSubgraphRemoveHandlerRegistry getVisualSubgraphRemoveHandlerRegistry()
VisualSubgraphRemoveHandlerRegistry
instance associated with this object.
VisualSubgraphRemoveHandlerRegistry
instance associated with this object.public void requestRollback()
VisualGraphView.
At a specific point in time (after a user interaction has completed) the rollback-request is automatically processed and discarded afterwards.
The rollback request will roll back
this instance of VisualGraphView to the state
that it had before the most recent user-interaction cycle.
public boolean isRollbackActive()
true if a rollback operation is currently
being processed.
true if a rollback operation is currently
being processed.public void setGroupHighlightMode(int mode)
mode - one of the constants that are prefixed with
GROUP_HIGHLIGHTMODE.public int getGroupHighlightMode()
GROUP_HIGHLIGHTMODE.public boolean isDropping()
true if a drop operation is currently active.
true if a drop operation is currently active.
public VisualEdge createCrossVisualEdge(VisualNode sourcenode,
VisualNode targetnode)
VisualNodes.
The two specified VisualNodes can be in different
VisualGraphObjectContainers across the same hierarchy.
If the two specified VisualNodes are currently in the same
nested hierarchy of VisualGraphObjectContainers or even in
exactly the same VisualGraphObjectContainer, then a
VisualEdge is created between the specified nodes. A model
edge is also created and before. The main benefit compared to adding a
VisualEdge another way, is that the functionality for
finding the correct
VisualGraphObjectContainer for the desired edge. The target
VisualGraphObjectContainer is found by traversing up the
nesting hierarchy of the edge's start and end until a common predecessor
VisualGraphObjectContainer is identified. The newly introduced
VisualEdge is thus not isolated and associated with a
corresponding object within the model scope.
The following invariants must be true for this method:
VisualNode references point to non-null and
currently added
VisualNode instances, which are share a common top level
VisualGraphView in their hierarchy of ancestors.
It is the responsibility of the method's client to make sure these
conditions are met.
VisualEdge
and its start and end, there will be a check whether the new edge
would result in a multi-edge. If that is the case it is checked whether
multe-edges are allowed by the model or not.
There are several reasons why the creation of a nested edge might fail.
One possibility is that the edges are not in the same
VisualGraph
hierarchy. Another reason is that the exact same edge might exist
in the hierarchy already. In either case null is returned.
sourcenode - the source VisualNode for the
VisualEdge that should be created.targetnode - the target VisualNode for the
VisualEdge that should be created.
VisualEdge which was created or null
if none was created.
public VisualEdge createCrossVisualEdge(VisualEdge visualedge,
VisualNode sourcenode,
VisualNode targetnode)
public java.lang.String getRecentLayoutContext()
null.
public void setRecentLayoutContext(java.lang.String recentLayoutContext)
#setRecentLayoutContext(String, String) instead.
recentLayoutContext - string literal that identifiespublic boolean isSaveLayoutConfiguration()
public void setSaveLayoutConfiguration(boolean saveLayoutConfiguration)
saveLayoutConfiguration - if set to true than
layout settings are saved along with this instance.public VisualNode resolveVisualSource(VisualEdge visualedge)
visualedge - the VisualEdge to resolve.
VisualNode.public VisualPort resolveVisualSourcePort(VisualEdge visualedge)
visualedge - the VisualEdge whose port ought to be resolved.
VisualPort.public VisualNode resolveVisualTarget(VisualEdge visualedge)
visualedge - the VisualEdge to resolve.
VisualNode.public VisualPort resolveVisualTargetPort(VisualEdge visualedge)
visualedge - the VisualEdge whose port ought to be resolved.
VisualPort.
public boolean internalAddVisualNodeWithInteractionExecution(InteractionInfo info,
VisualNode visualnode,
boolean doEvent,
boolean doRules)
public void enableVetosWithStack(boolean enable)
Depending on the given boolean this method enables or
disables all vetoable events for this VisualGraphView
object and nested VisualSubgraph objects as well.
Additionally the old state is put onto a stack so that it can be
easily restored afterwards.
Notice:When setting the state through this method one must
call the method enableVetosFromStack() afterwards. Otherwise
the internal stack gets demaged.
enable - flag indicating whether to raise vetoable eventsenableVetosFromStack()public void enableVetosFromStack()
Restores the old state for raising of vetoable events from the internal
stack. In order to do so the method
enableVetosWithStack(boolean) must have been called beforehand.
The state is restored for this VisualGraphView and
nested VisualSubgraph objects as well.
enableVetosWithStack(boolean)public void internalCheckpointRollbackState()
public void journalPreIgnoreCompositeChanges()
public void journalPostIgnoreCompositeChanges()
public void journalPreIgnoreCompositeChanges_CL()
public void journalPostIgnoreCompositeChanges_CL()
public void journalPreIgnoreCompositeChanges_C()
public void journalPostIgnoreCompositeChanges_C()
public void journalPreIgnoreCompositeChanges_CG()
public void journalPostIgnoreCompositeChanges_CG()
public void journalPreIgnorePortChanges()
public void journalPostIgnorePortChanges()
public void journalPreIgnoreRuleChanges()
public void journalPostIgnoreRuleChanges()
public void journalPreIgnoreLayoutChanges()
public void journalPostIgnoreLayoutChanges()
public void journalPreGenericTag()
public void journalPostGenericTag()
public void journalPreAction()
public void journalPostAction()
public void journalPreAction(java.util.Collection selection)
selection - selection collectionpublic void journalPostAction(java.util.Collection selection)
selection - selection collectionpublic void journalPreDrop()
public void journalPostDrop()
public void journalPreLayout(java.util.Collection basecomposites)
basecomposites - collection of
BaseComposites
whose boundaries or coordinate arrays are to be recorded.public void journalPostLayout(java.util.Collection basecomposites)
basecomposites - collection of
BaseComposites
whose boundaries or coordinate arrays are to be recorded.public void journalPreJoinWithPrevious()
public void journalPostJoinWithPrevious()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||