com.tensegrity.graph.view
Interface VisualGraphView

All Superinterfaces:
BaseCompositeContainer, CompositeNavigatorProvider, CompositeView, InteractionProvider, LayoutableGraph, Observable, VisualGraph, VisualGraphObjectContainer

public interface VisualGraphView
extends VisualGraph, CompositeView

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.)

  1. If the mouse is positioned within the region of a VisualSubGraph, then the clipboard contents are pasted at the mouse position as children of the particular VisualSubGraph.
  2. If the mouse is not positioned within the region of a 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.)

  1. If exactly one element is selected in the entire hierarchy of the destination 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.
  2. If exactly one element is selected in the entire hierarchy of the destination 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.
  3. If multiple items are selected or no item is selected at all, the clipboards contents are inserted into the top-level 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.

Version:
$Id: VisualGraphView.java,v 1.150 2006/05/02 14:29:44 MichaelKegel Exp $
Author:
MichaelKegel, Stepan Rutz
See Also:
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.graph.view.VisualGraph
EVENTQUEUEREQUEST_MASK_EDGESPLIT, EVENTQUEUEREQUEST_MASK_ISOLATED_VISUALEDGE_ADDED, EVENTQUEUEREQUEST_MASK_ISOLATED_VISUALEDGE_REMOVED, EVENTQUEUEREQUEST_MASK_VISUALEDGE_ADDED, EVENTQUEUEREQUEST_MASK_VISUALEDGE_REMOVED, EVENTQUEUEREQUEST_MASK_VISUALNODE_ADDED, EVENTQUEUEREQUEST_MASK_VISUALNODE_REMOVED
 
Fields inherited from interface com.tensegrity.graph.view.VisualGraphObjectContainer
EVENT_MASK_EDGESPLIT, EVENT_MASK_ISOLATED_VISUALEDGE_ADDED, EVENT_MASK_ISOLATED_VISUALEDGE_PRE_ADD, EVENT_MASK_ISOLATED_VISUALEDGE_PRE_REMOVE, EVENT_MASK_ISOLATED_VISUALEDGE_REMOVED, EVENT_MASK_LAYOUT, EVENT_MASK_VISUALEDGE_ADDED, EVENT_MASK_VISUALEDGE_PRE_ADD, EVENT_MASK_VISUALEDGE_PRE_REMOVE, EVENT_MASK_VISUALEDGE_REMOVED, EVENT_MASK_VISUALNODE_ADDED, EVENT_MASK_VISUALNODE_DELETE_CASCADE, EVENT_MASK_VISUALNODE_PRE_ADD, EVENT_MASK_VISUALNODE_PRE_REMOVE, EVENT_MASK_VISUALNODE_REMOVED
 
Fields inherited from interface com.tensegrity.composite.CompositeView
CURSOR_KEY_MOVE, CURSOR_MOVE, DELEGATE_INFOVALUE, DRAGREPRESENTAION_KEY_MOVE_MULTI, DRAGREPRESENTAION_KEY_MOVE_SINGLE, DRAGREPRESENTATION_KEY_MOVE_LINE, DRAWFLAG_ALL, DRAWFLAG_COMPOSITES_DRAGGED, DRAWFLAG_CONTENT_EDGES, DRAWFLAG_CONTENT_NODES, DRAWFLAG_CONTENT_PORTS, DRAWFLAG_CONTENT_PRIMITIVES, DRAWFLAG_CONTENT_SELECTED_EDGES, DRAWFLAG_CONTENT_SELECTED_NODES, DRAWFLAG_CONTENT_SELECTED_PRIMITIVES, DRAWFLAG_INDICATORS, DRAWFLAG_INTERACTION_CONTEXT, DRAWFLAG_NOEXPORT, DRAWFLAG_VIEW_BACKGROUND, DRAWFLAG_VIEW_GRID, DRAWFLAG_VIEW_PRIMITIVES, DRAWFLAG_VIEW_RULER, EVENT_MASK_ADD_COMPOSITE, EVENT_MASK_ADD_COMPOSITES, EVENT_MASK_COMPOSITEORDER_CHANGED, EVENT_MASK_MODE_CHANGED, EVENT_MASK_REMOVE_COMPOSITE, EVENT_MASK_REMOVE_COMPOSITES, EVENT_MASK_SELECTION_CHANGED, EVENT_MASK_VIEW_SCROLLED, EVENT_MASK_VIEWPARAMETER_CHANGED, GENERAL_INFOVALUE, HIGHLIGHT_KEY_MOVE, MODE, MODE_MASK, MODE_MASK_ALL, MODE_MASK_CONTEXT_MENU_ALLOWED, MODE_MASK_EDITING_ALLOWED, MODE_MASK_NONE, MODE_MASK_SELECTION_ALLOWED, MODE_MASK_SELECTIONBOX, MODE_PAINT, NON_INFOVALUE, PAINT, SCROLLBAR_EXTEND, SCROLLBAR_MAXIMUM, SCROLLBAR_MINIMUM, SCROLLBAR_VALUE
 
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.graph.view.VisualGraph
addAttributableOnSetListener, addVetoableVisualEventMediatorListener, addVetoableVisualGraphListener, addVisualEventMediatorListener, addVisualGraphListener, deepCopy, deepCopyWithoutNodesAndEdges, disableEventQueueRequests, enableEventQueueRequests, flushQueuedEvents, getGraph, getRuleRegistry, internalAddVisualNodeWithInteractionExecution, isVisualGraphListener, portsReassignment, removeAttributableOnSetListener, removeVetoableVisualEventMediatorListener, removeVetoableVisualGraphListener, removeVisualEventMediatorListener, removeVisualGraphListener, setRuleRegistry, setRuleRegistry, updateEdges
 
Methods inherited from interface com.tensegrity.graph.view.VisualGraphObjectContainer
addIsolatedVisualEdge, addVisualEdge, addVisualNode, disableVisualGraphEvents, enableVisualGraphEvents, getAllVisualEdges, getGraphObjectContainer, getIsolatedVisualEdgeByID, getIsolatedVisualEdgeCount, getIsolatedVisualEdges, getIsolatedVisualEdgesCollection, getParentContainer, getRootContainer, getVisualEdgeByID, getVisualEdgeCount, getVisualEdges, getVisualEdgesCollection, getVisualGraphEventmask, getVisualGraphObjects, getVisualNodeByID, getVisualNodeByName, getVisualNodeCount, getVisualNodes, getVisualNodesCollection, getVisualPortByID, removeIsolatedVisualEdge, removeVisualEdge, removeVisualNode, specificPortReassignmentVisualEdge, specificPortReassignmentVisualEdge, specificPortReassignmentVisualEdgeSource, specificPortReassignmentVisualEdgeTarget, startBulkModify, stopBulkModify, visitSubgraphs
 
Methods inherited from interface com.tensegrity.composite.CompositeView
addCompositeViewListener, addDragComposite, addEventMediatorListener, addIndicator, addIndicators, addKeyCommand, addPressedKey, addPrimitive, addVetoableCompositeViewListener, addVetoableEventMediatorListener, areEventsEnabled, clearPressedKeyCache, computeCompositeBoundingBox, disableEvents, disableMode, disableRepaintManager, dragAt, dragStart, dragStop, draw, draw, dropStart, dropStop, enableClipping, enableEvents, enableFixingCompositesOnInteraction, enableMode, enableRepaintManager, getActiveDrawflags, getAttendPrintingHints, getAutoScrollingSpeed, getAutoScrollingStartDelay, getBoundingBox, getClippingEnabled, getCompleteHierarchy, getCoordinateSystem, getCoordinateSystemMetric, getCursorRegistry, getDragRepresentationRegistry, getEventmask, getGrid, getHighlightRegistry, getHorizontalScrollbarValues, getInfoValue, getInfoValueIdentifier, getInteractionConfiguration, getInteractionHotspot, getModemask, getModePaint, getModePaints, getPaint, getReferenceCoordinateSystem, getRepaintManager, getRuler, getScaleX, getScaleY, getSelectionHierarchy, getVerticalScrollbarValues, getViewTransform, internalClearSelectionBox, internalFireCompositesAddedEvent, internalFireCompositesRemovedEvent, internalFireSelectionChangeEvent, internalGetSelectionBox, internalSetDragRepresentationKey, internalSetHighlightKey, isFixingCompositesOnInteraction, isKeyPressed, isModeEnabled, isPrinting, isRepaintManagerEnabled, moveBackward, moveForward, print, registerAdditionalInteractionHandler, registerInteractionRegionCalculator, removeAllIndicators, removeCompositeViewListener, removeDragComposite, removeEventMediatorListener, removeIndicator, removeIndicators, removeKeyCommand, removePressedKey, removePrimitive, removeVetoableCompositeViewListener, removeVetoableEventMediatorListener, revalidateModePaint, setAttendPrintingHints, setAutoScrollingSpeed, setAutoScrollingStartDelay, setBoundingBox, setInfoValue, setInfoValue, setInteractionHotspot, setModePaint, setModePaint, setModePaints, setPaint, setRepaintManager, setScaleX, setScaleY, toBack, toFront, updateView
 
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

DEFAULT_UNDOREDOLIMIT

public static final int DEFAULT_UNDOREDOLIMIT
The default value for the undo redo limit

See Also:
Constant Field Values

DRAW_EDGES_FIRST

public static final int DRAW_EDGES_FIRST
Constant that tells about a drawing order of the graph

See Also:
Constant Field Values

DRAW_NODES_FIRST

public static final int DRAW_NODES_FIRST
Constant that tells about a drawing order of the graph

See Also:
Constant Field Values

DRAW_FREE

public static final int DRAW_FREE
Constant that tells about a drawing order of the graph

See Also:
Constant Field Values

PASTE_ORIENTATION_NONE

public static final int PASTE_ORIENTATION_NONE
Modes for pasting orientation.

See Also:
Constant Field Values

PASTE_ORIENTATION_LEFT_TO_RIGHT

public static final int PASTE_ORIENTATION_LEFT_TO_RIGHT
Modes for pasting orientation.

See Also:
Constant Field Values

PASTE_ORIENTATION_TOP_TO_BOTTOM

public static final int PASTE_ORIENTATION_TOP_TO_BOTTOM
Modes for pasting orientation.

See Also:
Constant Field Values

APPLICATION_CLIPBOARD_MODE

public static final int APPLICATION_CLIPBOARD_MODE
Modes for clipboard usage

See Also:
Constant Field Values

SYSTEM_CLIPBOARD_MODE

public static final int SYSTEM_CLIPBOARD_MODE
Modes for clipboard usage

See Also:
Constant Field Values

CURSOR_COPY_ON_MOVE

public static final int CURSOR_COPY_ON_MOVE
Cursor constant definition

See Also:
Constant Field Values

CURSOR_KEY_COPY_ON_MOVE

public static final java.lang.Object CURSOR_KEY_COPY_ON_MOVE
Cursor key definitions


DRAGREPRESENTAION_COPY_SINGLE

public static final int DRAGREPRESENTAION_COPY_SINGLE
Constant definition

See Also:
Constant Field Values

DRAGREPRESENTAION_KEY_COPY_SINGLE

public static final java.lang.Object DRAGREPRESENTAION_KEY_COPY_SINGLE
Key definition


DRAGREPRESENTAION_COPY_MULTI

public static final int DRAGREPRESENTAION_COPY_MULTI
Constant definition

See Also:
Constant Field Values

DRAGREPRESENTAION_KEY_COPY_MULTI

public static final java.lang.Object DRAGREPRESENTAION_KEY_COPY_MULTI
Key definition


HIGHLIGHT_COPY

public static final int HIGHLIGHT_COPY
constant definition

See Also:
Constant Field Values

HIGHLIGHT_KEY_COPY

public static final java.lang.Object HIGHLIGHT_KEY_COPY
key definitions


UPDATEMODE_SIMPLE

public static final int UPDATEMODE_SIMPLE
Constants that define the available update modes. Updating of an 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.

See Also:
Constant Field Values

UPDATEMODE_PLAIN

public static final int UPDATEMODE_PLAIN
Constants that define the available update modes. Updating of an 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.

See Also:
Constant Field Values

UPDATEMODE_ORTHOGONAL

public static final int UPDATEMODE_ORTHOGONAL
Constants that define the available update modes. Updating of an 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.

See Also:
Constant Field Values

MODE_MASK_EDGE_CREATION

public static final int MODE_MASK_EDGE_CREATION
Constants that specify the different modes a VisualGraphView can be in.

See Also:
Constant Field Values

MODE_MASK_ZOOM_RECTANGLE

public static final int MODE_MASK_ZOOM_RECTANGLE
Constants that specify the different modes a VisualGraphView can be in.

See Also:
Constant Field Values

MODE_MASK_AUTOLAYOUT

public static final int MODE_MASK_AUTOLAYOUT
Constants that specify the different modes a VisualGraphView can be in.

See Also:
Constant Field Values

MODE_MASK_COPY_ON_MOVE

public static final int MODE_MASK_COPY_ON_MOVE
Constants that specify the different modes a VisualGraphView can be in.

See Also:
Constant Field Values

GROUP_HIGHLIGHTMODE_PLAIN

public static final int GROUP_HIGHLIGHTMODE_PLAIN
Constants that that influence the interaction behavior when dealing with large VisualSubgraphs.

See Also:
Constant Field Values

GROUP_HIGHLIGHTMODE_CONSTRAINED

public static final int GROUP_HIGHLIGHTMODE_CONSTRAINED
Constants that that influence the interaction behavior when dealing with large VisualSubgraphs.

See Also:
Constant Field Values
Method Detail

destroy

public void destroy()
Destroys all resources and registered listener references.

WARNING: After invoking this method the VisualGraphView is left in an unusable way

.

Think of this method like a destructor in c++.


getDrawingOrder

public int getDrawingOrder()
Returns a constant that represents the current drawing order of the VisualGraphView.

Returns:
int the current drawing order
See Also:
DRAW_EDGES_FIRST, DRAW_NODES_FIRST

setDrawingOrder

public void setDrawingOrder(int drawingorder)
Sets the drawing order of the graph to the mode given by drawingorder. Valid modes are defined through constants in this interface.

Parameters:
drawingorder - the new drawing order of the graph
See Also:
DRAW_EDGES_FIRST, DRAW_NODES_FIRST

getGraphController

public GraphController getGraphController()
Returns the primary GraphController of this visualgraphview.

Returns:
the primary GraphController of this visualgraphview.

registerNestedVisualEdgeCreationController

public void registerNestedVisualEdgeCreationController(NestedVisualEdgeCreationController edgecreationcontroller)
Registers a 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).

Parameters:
edgecreationcontroller - the NestedVisualEdgeCreationController to register.

unregisterNestedVisualEdgeCreationController

public NestedVisualEdgeCreationController unregisterNestedVisualEdgeCreationController()
Unregisters the current NestedVisualEdgeCreationController. If none is currently registered, nothing will happen.

Returns:
the previously registered NestedVisualEdgeCreationController or null if none was registered.

setVisualEdgeUpdateMode

public void setVisualEdgeUpdateMode(int visualedgeUpdateMode)
Sets the update-mode for VisualEdges. The update-mode determines the behavior of VisualEdges when any of the VisualNodes they are connected to are moved.
  1. UPDATEMODE_SIMPLE
    Update only fully connected VisualEdges. 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.
  2. UPDATEMODE_PLAIN
    Similar to update mode UPDATEMODE_SIMPLE, but it will also update objects of type VisualEdge that are connected to exactly one of the ends of the corresponding VisualNode.
  3. UPDATEMODE_ORTHOGONAL
    Keep care of orthogonal (parallel to x or y-axis) segments of the edge and distributes the changes horizontally and vertically to those segments, thus preserving orthogonality.

Parameters:
visualedgeUpdateMode - the update-mode to set for all VisualEdges embedded in this instance.

Find more information in the class documentation


getVisualEdgeUpdateMode

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_.

Returns:
the update-mode to set for all VisualEdges embedded in this instance.
See Also:
setVisualEdgeUpdateMode(int)

enableVerify

public void enableVerify()
Enables internal invariant verifications. This method should not be invoked by the client. Please keep in mind that enabling the verify-mode leads to dramatic loss of efficiency.


disableVerify

public void disableVerify()
Disables internal invariant verifications. This method should not be invoked by the client. Please keep in mind that disabling the verify-mode leads to a dramatic gain in efficiency.


beginHighlighting

public void beginHighlighting()
Begins a highlighting sequence, must be called before highlighting methods are called.


endHighlighting

public void endHighlighting()
Ends a highlighting sequence, must be called after highlighting methods are called.


highlightPorts

public void highlightPorts(int[] x,
                           int[] y,
                           int[] snapToPortDistance)
Highlight any potential ports at the given locations. The whole 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.

Parameters:
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

highlightPorts

public void highlightPorts(CompositeLine compositeline,
                           int snapToPortDistance)
Highlight any potential ports at the start and endpoint-locations of the given CompositeLine.

Parameters:
compositeline - the compositeline whose ports should be highlighted.
snapToPortDistance - the distance that is used to look for a port, pass -1 to use default

highlightEdgeInsertsAndVisualNodeOverlays

public 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). VisualNode overlays are also processed and potentially registered VisualNodeOverlayIndicationHandler s are invoked.

Parameters:
visualnode - the visualnode to scan for potential edge crossings and overlays.
x - the cursor's x position
y - the cursor's y position

highlightCrossGroupMoves

public void highlightCrossGroupMoves(VisualNode visualnode)
Highlights any potential cross-graph moves (That means moving nodes/subgraphs into and out of other subgraphs).

Parameters:
visualnode - the visualnode to scan for potential group crossings.

clearHighlights

public void clearHighlights()
Removes all currently visible highlights from the list of composites to draw.


postDropVisualNode

public void postDropVisualNode(VisualNode visualnode)
Called by the framework after a VisualNode was dropped on the VisualGraphView.

Parameters:
visualnode - the VisualNode that was dropped.
See Also:
VisualNode

foldSelection

public void foldSelection()
Folds all of the currently selected 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.


unfoldSelection

public void unfoldSelection()
Unfolds the currently selected 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.


splitEdge

public VisualEdge[] splitEdge(VisualEdge visualedge,
                              VisualNode visualnode)
Splits the given 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.

Parameters:
visualedge - the VisualEdge to split
visualnode - the VisualNode to split the VisualEdge with
Returns:
an array of length two that contains the new edges, that originate from the splitting process. The array may contain two null pointers if and only if the edge split was veto'd by a rule setting or a VetoableGraphEventMediatorListener or a VetoableGraphListener.
See Also:
VisualNode, VisualEdge, VisualSubgraph, VisualGraphObjectContainer, NodeRule, RuleConfiguration, VetoableGraphListener, VetoableGraphEventMediatorListener

getDefaultEdgeGeometry

public java.lang.String getDefaultEdgeGeometry()
Gets the geometry to use for VisualEdges that originate from the edge-creation mode facility.

Returns:
the default edge-geometry to use for generated VisualEdges.

setDefaultEdgeGeometry

public void setDefaultEdgeGeometry(java.lang.String defaultEdgeGeometry)
Sets the geometry to use for VisualEdges that originate from the edge-creation mode facility.

Parameters:
defaultEdgeGeometry - the default edge-geometry to use for generated VisualEdges.

getDefaultEdgeStyle

public java.lang.String getDefaultEdgeStyle()
Gets the style to use for VisualEdges that originate from the edge-creation mode facility.

Returns:
the default edge-style to use for generated VisualEdges.

setDefaultEdgeStyle

public void setDefaultEdgeStyle(java.lang.String defaultEdgeStyle)
Sets the style to use for VisualEdges that originate from the edge-creation mode facility.

Parameters:
defaultEdgeStyle - the default edge-style to use for generated VisualEdges.

setDefaultFoldedSubgraphRule

public void setDefaultFoldedSubgraphRule(java.lang.String defaultFoldedSubgraphRule)
Sets the name of the rule for folded subgraphs.

Parameters:
defaultFoldedSubgraphRule - the name of the rule for folded subgraphs.

getDefaultFoldedSubgraphRule

public java.lang.String getDefaultFoldedSubgraphRule()
Returns the name of the rule for folded subgraphs.

Returns:
the name of the rule for folded subgraphs.

setDefaultFoldedSubgraphSize

public void setDefaultFoldedSubgraphSize(Size defaultFoldedSubgraphSize)
Sets the default-size for folded subgraphs.

Parameters:
defaultFoldedSubgraphSize - the default-size for folded subgraphs.

getDefaultFoldedSubgraphSize

public Size getDefaultFoldedSubgraphSize()
Returns the default-size for folded subgraphs.

Returns:
the default-size for folded subgraphs.

setDefaultFoldedSubgraphGeometry

public void setDefaultFoldedSubgraphGeometry(java.lang.String defaultFoldedSubgraphGeometry)
Sets the name of the default-geometry for folded subgraphs.

Parameters:
defaultFoldedSubgraphGeometry - the name of the default-geometry for folded subgraphs.

getDefaultFoldedSubgraphGeometry

public java.lang.String getDefaultFoldedSubgraphGeometry()
Returns the name of the currently assigned default-geometry for folded subgraphs.

Returns:
the name of the currently assigned default-geometry for folded subgraphs.

setDefaultFoldedSubgraphStyle

public void setDefaultFoldedSubgraphStyle(java.lang.String defaultFoldedSubgraphStyle)
Sets the name of the default-style for folded subgraphs.

Parameters:
defaultFoldedSubgraphStyle - the name of the default-style for folded subgraphs.

getDefaultFoldedSubgraphStyle

public java.lang.String getDefaultFoldedSubgraphStyle()
Returns the name of the currently assigned default-style for folded subgraphs.

Returns:
the name of the currently assigned default-style for folded subgraphs.

setDefaultEmptySubgraphGeometry

public void setDefaultEmptySubgraphGeometry(java.lang.String defaultEmptySubgraphGeometry)
Sets the name of the default geometry for empty subgraphs. Note: A copy of the geometry descriptor might be made, because it will be modified to assign the folded geometry. So changes to the GeometryDescriptor with the passed name will might have no meaning for the creation of default subgraphs.

Parameters:
defaultEmptySubgraphGeometry - the name of the default-geometry for empty subgraphs.

getDefaultEmptySubgraphGeometry

public java.lang.String getDefaultEmptySubgraphGeometry()
Returns the name of the default geometry for empty subgraphs that has been assigned by a former call to setDefaultEmptySubgraphGeometry. Note: This might not the name of the geometry that will be used for creating new default subgraphs, because a copy might be used instead to avoid modifications to the original.

Returns:
the name of the default-geometry for empty subgraphs that has been assigned by a former call to setDefaultEmptySubgraphGeometry.

setDefaultEmptySubgraphStyle

public void setDefaultEmptySubgraphStyle(java.lang.String defaultEmptySubgraphStyle)
Sets the name of the default style for empty subgraphs. Note: A copy of the 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.

Parameters:
defaultEmptySubgraphStyle - the name of the default-style for empty subgraphs.

getDefaultEmptySubgraphStyle

public java.lang.String getDefaultEmptySubgraphStyle()
Returns the name of the default style for empty subgraphs that has been assigned by a former call to setDefaultEmptySubgraphStyle. Note: This might not be the name of the style that will be used for creating new default subgraphs, because a copy might be used instead to avoid modifications to the original.

Returns:
the name of the default style for empty subgraphs that has been assigned by a former call to setDefaultEmptySubgraphGeometry.

updateView

public void updateView(boolean adjustEdges)
Updates the view, with optional adjustment parameter. The update involves the following :
  1. update of the CoordinateSystem so that it fits to the internal Composites
  2. notify all registered Observers

Parameters:
adjustEdges - if true the edges are adjusted (which is the default.) , if false the edges are not adjusted.

deleteSelection

public void deleteSelection()
Deletes all currently selected VisualGraphObjects.


deepCopy

public VisualGraphView deepCopy(GraphController controller)
Makes a deep copy of the VisualGraph and registers the copy with the given GraphController.

Parameters:
controller - GraphController to register the copy to.
Returns:
a deep copy of the VisualGraphView.
See Also:
GraphController

deepCopyWithoutNodesAndEdges

public VisualGraphView deepCopyWithoutNodesAndEdges(GraphController controller)
Makes a deep copy of the VisualGraph and registers the copy with the given controller. During the copy nodes and edges are omitted.

Parameters:
controller - GraphController to register the copy to.
Returns:
a deep copy of the VisualGraphView.
See Also:
GraphController

addClipboardListener

public void addClipboardListener(ClipboardListener clipboardListener)
Add a ClipboardListener to this instance.

Parameters:
clipboardListener - the ClipboardListener to add, must not be null.

removeClipboardListener

public void removeClipboardListener(ClipboardListener clipboardListener)
Removes a ClipboardListener from this instance. If the listener was not previously added, this method will returned silently without performing any action.

Parameters:
clipboardListener - the ClipboardListener to remove, must not be null.

setActionLog

public void setActionLog(ActionLog actionLog)
Sets the ActionLog instance to use. This may be null in case the action log should be removed.

Parameters:
actionLog - the ActionLog instance to use for recording user actions.

getActionLog

public ActionLog getActionLog()
Gets the ActionLog instance that is currently used. This may be null in case no ActionLog is currently active.

Returns:
the currently used ActionLog instance or null.

setRegionUpdateMode

public void setRegionUpdateMode(boolean dirtyRegionMode)
Sets the region update-mode.

Parameters:
dirtyRegionMode - true indicates that dirty regions should be computed instead of doing a full redraw.

isRegionUpdateMode

public boolean isRegionUpdateMode()
Returns the region update-mode. 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.

Returns:
the region update-mode.

setZoomToRectangleKey

public void setZoomToRectangleKey(KeyStroke zoomToRectangleKey)
Deprecated. Use (@link com.tensegrity.generic.util.ModifierConfig#setModifier(OperationKey, int))!

Specifies the key-stroke that must be pressed during mouse-drag to perform a "zoom-to-rectangle" operation. It is allowed to specify null as the KeyStroke to disable the feature.

Parameters:
zoomToRectangleKey - specifies the key-stroke that must be pressed during mouse-drag to perform a "zoom-to-rectangle" operation.

getZoomToRectangleKey

public KeyStroke getZoomToRectangleKey()
Deprecated. Use (@link com.tensegrity.generic.util.ModifierConfig#getModifier(OperationKey))!

Returns the key-stroke that must be pressed during mouse-drag to perform a "zoom-to-rectangle" operation.

Returns:
the key-stroke that must be pressed during mouse-drag to perform a "zoom-to-rectangle" operation, in case no key-stroke is currently specified null is returned.

getLayoutController

public LayoutController getLayoutController()
Gets the LayoutController that is associated with this instance. May be null.

Returns:
the LayoutController that is associated with this instance.

Find more information in the class documentation


setLayoutController

public void setLayoutController(LayoutController layoutController)
Sets the LayoutController that is associated with this instance. May be null.

Parameters:
layoutController - the LayoutController to associate with this instance.

addVisualGraphViewListener

public void addVisualGraphViewListener(VisualGraphViewListener listener)
Adds an instance of a VisualGraphViewListener to the VisualGraphView. This listener will be notified about changes specific to the VisualGraphView.

Parameters:
listener - the VisualGraphViewListener to add

removeVisualGraphViewListener

public void removeVisualGraphViewListener(VisualGraphViewListener listener)
Removes a previously added instance of a VisualGraphViewListener. This listener will no longer be notified about changes specific to the VisualGraphView.

Parameters:
listener - the VisualGraphViewListener to remove

isUndoRedoEnabled

public boolean isUndoRedoEnabled()
Returns the state of the undo/redo facility.

Returns:
true if undo/redo is enabled, otherwise false.

enableUndoRedo

public void enableUndoRedo()
Enable the undo/redo facility.


enableUndoRedoLayoutController

public void enableUndoRedoLayoutController()
Enables the undo/redo facility for attribute changes of the associated LayoutController.


disableUndoRedo

public void disableUndoRedo()
Disable the undo/redo facility.


getUndoRedoLimit

public int getUndoRedoLimit()
Returns the maximum amount of steps that are available for undo/redo

Returns:
the maximum amount of steps that are available for undo/redo

setUndoRedoLimit

public void setUndoRedoLimit(int steps)
Sets the maximum amount of steps that are available for undo/redo.
Superfluous steps are removed.

Parameters:
steps - the maximum amount of steps that should be available for undo/redo

Find more information in the class documentation


undoPossible

public boolean undoPossible()
Returns a boolean that indicates whether there is an undo possible or not.

Returns:
boolean flag that indicates if undo is possible

redoPossible

public boolean redoPossible()
Returns a boolean that indicates whether there is a redo possible or not.

Returns:
boolean flag that indicates if redo is possible

isUndoing

public boolean isUndoing()
Returns true if undo is currently processed.

Returns:
true if undo is currently processed.

isRedoing

public boolean isRedoing()
Returns true if redo is currently processed.

Returns:
true if redo is currently processed.

undo

public void undo()
Undo the last undoable change.


redo

public void redo()
Redo the last undone change.


logCustomUndoRedo

public void logCustomUndoRedo(CustomUndoRedo customUndoRedo)
Adds a custom user-defined undo/redo step into the internal undo-redo log. The step is defined by the user by implementing the interface CustomUndoRedo in a meaningful way.

Parameters:
customUndoRedo - the user-defined CustomUndoRedo to log.

killRecentUndoInfo

public 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).


clearUndoRedoHistory

public void clearUndoRedoHistory()
Clears the history of this VisualGraphView so that no further undo is possible from the current position on.


dumpUndoRedoHistory

public void dumpUndoRedoHistory()
Dumps internal info about the undo-journal contents to stderr. This information is for internal debugging use and subject to change.


getClipboardMode

public int getClipboardMode()

setClipboardMode

public void setClipboardMode(int clipboardMode)

getClipboardSize

public int getClipboardSize()
Returns the size of the clipboard.

Returns:
size of the clipboard.

Find more information in the class documentation


clearClipboard

public void clearClipboard()
Clears the clipboard.

Find more information in the class documentation


getPasteOrientation

public int getPasteOrientation()
Returns the current mode for pasting orientation. This mode determines the order in which objects are pasted if multiple objects are pasted at once.

Returns:
the current paste orientation mode.

Find more information in the class documentation


setPasteOrientation

public void setPasteOrientation(int pasteOrientation)
Sets the current mode for pasting orientation. This mode determines the order in which objects are pasted if multiple objects are pasted at once. Three different modi are defined:
  1. PASTE_ORIENTATION_LEFT_TO_RIGHT
    Preserve horizontal order
  2. PASTE_ORIENTATION_TOP_TO_BOTTOM
    Preserve vertical order
  3. PASTE_ORIENTATION_NONE
    Strictly coordinate based

Parameters:
pasteOrientation - the current paste orientation mode.

Find more information in the class documentation


isSelectPastedElements

public boolean isSelectPastedElements()
Gets the flag that determines whether to select pasted elements.

Returns:
whether to select pasted elements.

setSelectPastedElements

public void setSelectPastedElements(boolean selectPastedElements)
Sets the flag that determines whether to select pasted elements.

Parameters:
selectPastedElements - whether to select pasted elements.

isPasteToCenter

public boolean isPasteToCenter()
Returns true, if pasted elements will be centered in the subgraphs they are pasted into.

Returns:
true, if pasted elements will be centered in the subgraphs they are pasted into.

setPasteToCenter

public void setPasteToCenter(boolean pasteToCenter)
Enables/disables the centering of pasted elements inside the subgraph they are pasted into

Parameters:
pasteToCenter - true, if pasted elements should be centered in the subgraphs they are pasted into.

cut

public void cut()
         throws ClipboardOperationException
Cuts the selection into the internal clipboard.

Throws:
ClipboardOperationException

Find more information in the class documentation


copy

public void copy()
          throws ClipboardOperationException
Copies the selection into the internal clipboard.

Throws:
ClipboardOperationException

Find more information in the class documentation


paste

public void paste()
           throws ClipboardOperationException
Pastes the contents of the internal clipboard into the VisualGraphView.

Throws:
ClipboardOperationException

Find more information in the class documentation


paste

public void paste(ViewBuilderFilter filter)
           throws ClipboardOperationException
Same as paste() except the pasted objects can be modified through the given ViewBuilderFilter.
The ViewBuilderFilter is only taken into account when the system clipboard is used for the clipboard operations.

Throws:
ClipboardOperationException

Find more information in the class documentation


paste

public void paste(Coordinate mousecoordinate)
           throws ClipboardOperationException
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. If the coordinates are null then a regular paste is made.

Parameters:
mousecoordinate - the mouse coordinate, optionally null.
Throws:
ClipboardOperationException

Find more information in the class documentation


paste

public void paste(Coordinate mousecoordinate,
                  ViewBuilderFilter filter)
           throws ClipboardOperationException
Same as paste(Coordinate) except the pasted objects can be modified through the given ViewBuilderFilter.
The ViewBuilderFilter is only taken into account when the system clipboard is used for the clipboard operations.

Throws:
ClipboardOperationException

Find more information in the class documentation


pasteStart

public void pasteStart()
                throws ClipboardOperationException
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. 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.

Throws:
ClipboardOperationException

Find more information in the class documentation


pasteStart

public void pasteStart(ViewBuilderFilter filter)
                throws ClipboardOperationException
Same as pasteStart() but the pasted objects can be modified through the given ViewBuilderFilter.
The ViewBuilderFilter is only taken into account when the system clipboard is used for the clipboard operations.

Throws:
ClipboardOperationException

pasteStart

public void pasteStart(VisualSubgraph visualsubgraph)
                throws ClipboardOperationException
Paste the contents of the internal clipboard into the VisualGraphView.
The paste occurs by splitting the first edge of the specified VisualSubgraph.

Parameters:
visualsubgraph - the VisualSubgraph on whose first edge the paste shall occur.
Throws:
ClipboardOperationException

pasteStart

public void pasteStart(VisualSubgraph visualsubgraph,
                       ViewBuilderFilter filter)
                throws ClipboardOperationException
Same as pasteStart(VisualSubgraph) but the pasted objects can be modified through the given ViewBuilderFilter.
The ViewBuilderFilter is only taken into account when the system clipboard is used for the clipboard operations.

Throws:
ClipboardOperationException

pasteStop

public void pasteStop()
               throws ClipboardOperationException
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. 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.

Throws:
ClipboardOperationException

Find more information in the class documentation


pasteStop

public void pasteStop(ViewBuilderFilter filter)
               throws ClipboardOperationException
Same as pasteStop() but the pasted objects can be modified through the given ViewBuilderFilter.
The ViewBuilderFilter is only taken into account when the system clipboard is used for the clipboard operations.

Throws:
ClipboardOperationException

pasteStop

public void pasteStop(VisualSubgraph visualsubgraph)
               throws ClipboardOperationException
Paste the contents of the internal clipboard into the VisualGraphView.

The paste occurs by splitting the last edge of the specified VisualSubgraph.

Parameters:
visualsubgraph - the VisualSubgraph on whose last edge the paste shall occur.
Throws:
ClipboardOperationException

pasteStop

public void pasteStop(VisualSubgraph visualsubgraph,
                      ViewBuilderFilter filter)
               throws ClipboardOperationException
Same as pasteStop(VisualSubgraph) but the pasted objects can be modified through the given ViewBuilderFilter.
The ViewBuilderFilter is only taken into account when the system clipboard is used for the clipboard operations.

Throws:
ClipboardOperationException

pasteBefore

public void pasteBefore(VisualNode visualnode)
                 throws ClipboardOperationException
This method pastes the contents of the clipboard before the specified VisualNode argument. VisualEdge instances that may be on the clipboard are not processed by this special paste operation.

Parameters:
visualnode - the VisualNode to paste before.
Throws:
ClipboardOperationException

Find more information in the class documentation


pasteBefore

public void pasteBefore(VisualNode visualnode,
                        ViewBuilderFilter filter)
                 throws ClipboardOperationException
Same as pasteBefore(VisualNode) but the pasted objects can be modified through the given ViewBuilderFilter.
The ViewBuilderFilter is only taken into account when the system clipboard is used for the clipboard operations.

Parameters:
visualnode - the VisualNode to paste before.
Throws:
ClipboardOperationException

pasteBehind

public void pasteBehind(VisualNode visualnode)
                 throws ClipboardOperationException
This method pastes the contents of the clipboard behind the specified VisualNode argument. VisualEdge instances that may be on the clipboard are not processed by this special paste operation.

Parameters:
visualnode - the VisualNode to paste behind.
Throws:
ClipboardOperationException

Find more information in the class documentation


pasteBehind

public void pasteBehind(VisualNode visualnode,
                        ViewBuilderFilter filter)
                 throws ClipboardOperationException
Same as pasteBehind(VisualNode) but the pasted objects can be modified through the given ViewBuilderFilter.
The ViewBuilderFilter is only taken into account when the system clipboard is used for the clipboard operations.

Parameters:
visualnode - the VisualNode to paste behind.
filter -
Throws:
ClipboardOperationException

getRuleConfiguration

public RuleConfiguration getRuleConfiguration()
Returns the RuleConfiguration associated with this VisualGraphView.

Returns:
RuleConfiguration the associated RuleConfiguration
See Also:
RuleConfiguration

getInteractionSettings

public InteractionSettings getInteractionSettings()
Returns the current interaction settings class from this VisualGraphView. Interaction settings have a higher priority than the results of the callbacks from the active InteractionControl class.

Returns:
the currently active interaction settings of the VisualGraphView

Find more information in the class documentation


getInteractionHighlightConfiguration

public 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. The returned reference can then be manipulated in order to change styles and geometries.

Returns:
the InteractionHighlightConfiguration instance associated with this VisualGraphView.

Find more information in the class documentation


getVisualNodeDropHandlerRegistry

public VisualNodeDropHandlerRegistry getVisualNodeDropHandlerRegistry()
Returns the VisualNodeDropHandlerRegistry instance associated with this object.

Returns:
the VisualNodeDropHandlerRegistry instance associated with this object.

getVisualNodeMovedInSubgraphHandlerRegistry

public VisualNodeMovedInSubgraphHandlerRegistry getVisualNodeMovedInSubgraphHandlerRegistry()
Returns the VisualNodeMovedInSubgraphHandlerRegistry instance associated with this object.

Returns:
the VisualNodeMovedInSubgraphHandlerRegistry instance associated with this object.

getVisualNodeOverlayIndicationHandlerRegistry

public VisualNodeOverlayIndicationHandlerRegistry getVisualNodeOverlayIndicationHandlerRegistry()
Returns the VisualNodeOverlayIndicationHandlerRegistry instance associated with this object.

Returns:
the VisualNodeOverlayIndicationHandlerRegistry instance associated with this object.

getVisualSubgraphRemoveHandlerRegistry

public VisualSubgraphRemoveHandlerRegistry getVisualSubgraphRemoveHandlerRegistry()
Returns the VisualSubgraphRemoveHandlerRegistry instance associated with this object.

Returns:
the VisualSubgraphRemoveHandlerRegistry instance associated with this object.

requestRollback

public void requestRollback()
Adds a rollback-request to this instance of 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.


isRollbackActive

public boolean isRollbackActive()
Returns true if a rollback operation is currently being processed.

Returns:
true if a rollback operation is currently being processed.

setGroupHighlightMode

public void setGroupHighlightMode(int mode)
This method changes the highlighting behavior during interaction. The highlights that indicate group-drops and group-moves are displayed centered around the subject items or constrained to the actual insertion spots.

Parameters:
mode - one of the constants that are prefixed with GROUP_HIGHLIGHTMODE.

getGroupHighlightMode

public int getGroupHighlightMode()
This method returns the highlighting behavior during interaction. The highlights that indicate group-drops and group-moves are displayed centered around the subject items or constrained to the actual insertion spots.

Returns:
one of the constants that are prefixed with GROUP_HIGHLIGHTMODE.

isDropping

public boolean isDropping()
Returns true if a drop operation is currently active.

Returns:
true if a drop operation is currently active.

createCrossVisualEdge

public VisualEdge createCrossVisualEdge(VisualNode sourcenode,
                                        VisualNode targetnode)
Adds a cross edge between two given 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:

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.

Parameters:
sourcenode - the source VisualNode for the VisualEdge that should be created.
targetnode - the target VisualNode for the VisualEdge that should be created.
Returns:
the VisualEdge which was created or null if none was created.

createCrossVisualEdge

public VisualEdge createCrossVisualEdge(VisualEdge visualedge,
                                        VisualNode sourcenode,
                                        VisualNode targetnode)

getRecentLayoutContext

public java.lang.String getRecentLayoutContext()
Deprecated.  

Returns the recent layout context, which may be null.

Returns:
the recent layout context.

setRecentLayoutContext

public void setRecentLayoutContext(java.lang.String recentLayoutContext)
Deprecated. use #setRecentLayoutContext(String, String) instead.

Stores the given string as the recent layout context. There are no side effects based on invoking this method, which means it does nothing but holding onto the given string for later retrieval with the recent layout-context.

Parameters:
recentLayoutContext - string literal that identifies

isSaveLayoutConfiguration

public boolean isSaveLayoutConfiguration()
Flag that indicates that layout configuration should be saved along when saving this instance.

Returns:
flag that indicates whether layout settings should be saved.

setSaveLayoutConfiguration

public void setSaveLayoutConfiguration(boolean saveLayoutConfiguration)
Sets whether layout configuration should be saved along when saving this instance.

Parameters:
saveLayoutConfiguration - if set to true than layout settings are saved along with this instance.

resolveVisualSource

public VisualNode resolveVisualSource(VisualEdge visualedge)
For internal use only.

Parameters:
visualedge - the VisualEdge to resolve.
Returns:
the resolved VisualNode.

resolveVisualSourcePort

public VisualPort resolveVisualSourcePort(VisualEdge visualedge)
For internal use only.

Parameters:
visualedge - the VisualEdge whose port ought to be resolved.
Returns:
the resolved VisualPort.

resolveVisualTarget

public VisualNode resolveVisualTarget(VisualEdge visualedge)
For internal use only.

Parameters:
visualedge - the VisualEdge to resolve.
Returns:
the resolved VisualNode.

resolveVisualTargetPort

public VisualPort resolveVisualTargetPort(VisualEdge visualedge)
For internal use only.

Parameters:
visualedge - the VisualEdge whose port ought to be resolved.
Returns:
the resolved VisualPort.

internalAddVisualNodeWithInteractionExecution

public boolean internalAddVisualNodeWithInteractionExecution(InteractionInfo info,
                                                             VisualNode visualnode,
                                                             boolean doEvent,
                                                             boolean doRules)
For internal use only.


enableVetosWithStack

public void enableVetosWithStack(boolean enable)
This method is API internal and should not be invoked by clients.

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.

Parameters:
enable - flag indicating whether to raise vetoable events
See Also:
enableVetosFromStack()

enableVetosFromStack

public void enableVetosFromStack()
This method is API internal and should not be invoked by clients.

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.

See Also:
enableVetosWithStack(boolean)

internalCheckpointRollbackState

public void internalCheckpointRollbackState()
For internal use only.


journalPreIgnoreCompositeChanges

public void journalPreIgnoreCompositeChanges()
For internal use only.


journalPostIgnoreCompositeChanges

public void journalPostIgnoreCompositeChanges()
For internal use only.


journalPreIgnoreCompositeChanges_CL

public void journalPreIgnoreCompositeChanges_CL()
For internal use only.


journalPostIgnoreCompositeChanges_CL

public void journalPostIgnoreCompositeChanges_CL()
For internal use only.


journalPreIgnoreCompositeChanges_C

public void journalPreIgnoreCompositeChanges_C()
For internal use only.


journalPostIgnoreCompositeChanges_C

public void journalPostIgnoreCompositeChanges_C()
For internal use only.


journalPreIgnoreCompositeChanges_CG

public void journalPreIgnoreCompositeChanges_CG()
For internal use only.


journalPostIgnoreCompositeChanges_CG

public void journalPostIgnoreCompositeChanges_CG()
For internal use only.


journalPreIgnorePortChanges

public void journalPreIgnorePortChanges()
For internal use only.


journalPostIgnorePortChanges

public void journalPostIgnorePortChanges()
For internal use only.


journalPreIgnoreRuleChanges

public void journalPreIgnoreRuleChanges()
For internal use only.


journalPostIgnoreRuleChanges

public void journalPostIgnoreRuleChanges()
For internal use only.


journalPreIgnoreLayoutChanges

public void journalPreIgnoreLayoutChanges()
For internal use only.


journalPostIgnoreLayoutChanges

public void journalPostIgnoreLayoutChanges()
For internal use only.


journalPreGenericTag

public void journalPreGenericTag()
For internal use only.


journalPostGenericTag

public void journalPostGenericTag()
For internal use only.


journalPreAction

public void journalPreAction()
For internal use only.


journalPostAction

public void journalPostAction()
For internal use only.


journalPreAction

public void journalPreAction(java.util.Collection selection)
For internal use only.

Parameters:
selection - selection collection

journalPostAction

public void journalPostAction(java.util.Collection selection)
For internal use only.

Parameters:
selection - selection collection

journalPreDrop

public void journalPreDrop()
For internal use only.


journalPostDrop

public void journalPostDrop()
For internal use only.


journalPreLayout

public void journalPreLayout(java.util.Collection basecomposites)
For internal use only.

Parameters:
basecomposites - collection of BaseComposites whose boundaries or coordinate arrays are to be recorded.

journalPostLayout

public void journalPostLayout(java.util.Collection basecomposites)
For internal use only.

Parameters:
basecomposites - collection of BaseComposites whose boundaries or coordinate arrays are to be recorded.

journalPreJoinWithPrevious

public void journalPreJoinWithPrevious()

journalPostJoinWithPrevious

public void journalPostJoinWithPrevious()


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.