|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.graphdocument.ElementConflictListener
ElementConflictListener
| Field Summary | |
static int |
LAYOUT_CONFLICT_MASK
Constant to use with setConflictMask(int),
enables layout conflict resolving |
static java.lang.String |
PREFERENCESKEY_LAYOUT_DEFAULT_OPTION
PREFERENCESKEY_DEFAULT_OPTION: Preferences key of the setting of the default option |
static java.lang.String |
PREFERENCESKEY_LAYOUT_SUPPRESS_DIALOG
PREFERENCESKEY_DEFAULT_OPTION: Preferences key of the setting of suppressing of the conflict dialog |
static java.lang.String |
PREFERENCESKEY_RULES_DEFAULT_OPTION
PREFERENCESKEY_DEFAULT_OPTION: Preferences key of the setting of the default option |
static java.lang.String |
PREFERENCESKEY_RULES_SUPPRESS_DIALOG
PREFERENCESKEY_DEFAULT_OPTION: Preferences key of the setting of suppressing of the conflict dialog |
static java.lang.String |
PREFERENCESVALUE_LAYOUT_DISCARD_INSERTED
PREFERENCESVALUE_OVERWRITE_EXISTING: Preferences value for option "discard inserted" |
static java.lang.String |
PREFERENCESVALUE_LAYOUT_OVERWRITE_EXISTING
PREFERENCESVALUE_OVERWRITE_EXISTING: Preferences value for option "overwrite existing" |
static java.lang.String |
PREFERENCESVALUE_LAYOUT_RENAME_INSERTED
PREFERENCESVALUE_OVERWRITE_EXISTING: Preferences value for option "rename inserted" |
static java.lang.String |
PREFERENCESVALUE_RULES_DISCARD_INSERTED
PREFERENCESVALUE_OVERWRITE_EXISTING: Preferences value for option "discard inserted" |
static java.lang.String |
PREFERENCESVALUE_RULES_OVERWRITE_EXISTING
PREFERENCESVALUE_OVERWRITE_EXISTING: Preferences value for option "overwrite existing" |
static java.lang.String |
PREFERENCESVALUE_RULES_RENAME_INSERTED
PREFERENCESVALUE_OVERWRITE_EXISTING: Preferences value for option "rename inserted" |
static int |
RULE_CONFLICT_MASK
Constant to use with setConflictMask(int),
enables rule conflict resolving |
| Constructor Summary | |
ElementConflictListener(RuleRegistry rrApplication)
Constructor |
|
| Method Summary | |
void |
copyBegin(ClipboardEvent clipboardevent)
This method is invoked when a copy operation starts. |
void |
copyEnd(ClipboardEvent clipboardevent)
This method is invoked when a copy operation has ended. |
void |
cutBegin(ClipboardEvent clipboardevent)
This method is invoked when a cut operation starts. |
void |
cutEnd(ClipboardEvent clipboardevent)
This method is invoked when a cut operation has ended. |
void |
dragDrop(GraphPanelDragEvent event)
Called when a VisualGraphObject has been dropped into the
graph panel |
void |
dragEnter(GraphPanelDragEvent event)
Called when a VisualGraphObject has been dragged into the bounds
of a VisualGraphObject in the view or into the bounds of the view
itself (in this case the GraphPanelDragEvent.getTargetGraphObject() will
return null). |
void |
dragExit(GraphPanelDragEvent event)
Called when a VisualGraphObject has been dragged out of the bounds
of a VisualGraphObject in the view or out of the bounds of the view
itself (in this case the GraphPanelDragEvent.getTargetGraphObject() will
return null). |
void |
dragMove(GraphPanelDragEvent event)
Called when a VisualGraphObject has been dragged over the
graph panel |
void |
dragPreDrop(GraphPanelDragEvent event)
Called when a VisualGraphObject will be dropped into the
graph panel |
static VisualGraphObject[] |
getSubVGOs(VisualGraphObject vgo)
Returns an array containing all VisualGraphObjects contained in the given VisualGraphObject if it is a VisualGraphObjectContainer or null if it is not. |
void |
pasteBegin(ClipboardEvent clipboardevent)
This method is invoked when a paste operation starts. |
void |
pasteEnd(ClipboardEvent clipboardevent)
This method is invoked when a paste operation has ended. |
protected abstract void |
resolveConflicts(java.util.List ruleConflicts,
java.util.List layoutConflicts,
LayoutController lcSource,
VisualGraphView vgv,
VisualGraphObject[] vgos)
|
void |
setConflictMask(int mask)
Sets the conflicts that should be resolved by this listener. |
void |
vetoableCopyOnMove(VisualGraphView visualgraphview,
CompositeHierarchy hierarchySelection,
VisualGraphObject originalVisualGraphObject,
VisualGraphObject copiedVisualGraphObject)
This method is invoked once per VisualGraphObject that is
copied-on-move (e.g. copied when the control key is pressed).
|
void |
vetoablePaste(VisualGraphView visualgraphview,
VisualGraphObjectContainer visualgraphobjectcontainer,
VisualGraphObject visualgraphobject,
VisualGraphView origin)
This method is invoked once per VisualGraphObject that is
about to be pasted.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int RULE_CONFLICT_MASK
setConflictMask(int),
enables rule conflict resolving
public static final int LAYOUT_CONFLICT_MASK
setConflictMask(int),
enables layout conflict resolving
public static final java.lang.String PREFERENCESKEY_RULES_DEFAULT_OPTION
PREFERENCESKEY_DEFAULT_OPTION: Preferences key of the setting of the default option
public static final java.lang.String PREFERENCESKEY_RULES_SUPPRESS_DIALOG
PREFERENCESKEY_DEFAULT_OPTION: Preferences key of the setting of suppressing of the conflict dialog
public static final java.lang.String PREFERENCESVALUE_RULES_OVERWRITE_EXISTING
PREFERENCESVALUE_OVERWRITE_EXISTING: Preferences value for option "overwrite existing"
public static final java.lang.String PREFERENCESVALUE_RULES_RENAME_INSERTED
PREFERENCESVALUE_OVERWRITE_EXISTING: Preferences value for option "rename inserted"
public static final java.lang.String PREFERENCESVALUE_RULES_DISCARD_INSERTED
PREFERENCESVALUE_OVERWRITE_EXISTING: Preferences value for option "discard inserted"
public static final java.lang.String PREFERENCESKEY_LAYOUT_DEFAULT_OPTION
PREFERENCESKEY_DEFAULT_OPTION: Preferences key of the setting of the default option
public static final java.lang.String PREFERENCESKEY_LAYOUT_SUPPRESS_DIALOG
PREFERENCESKEY_DEFAULT_OPTION: Preferences key of the setting of suppressing of the conflict dialog
public static final java.lang.String PREFERENCESVALUE_LAYOUT_OVERWRITE_EXISTING
PREFERENCESVALUE_OVERWRITE_EXISTING: Preferences value for option "overwrite existing"
public static final java.lang.String PREFERENCESVALUE_LAYOUT_RENAME_INSERTED
PREFERENCESVALUE_OVERWRITE_EXISTING: Preferences value for option "rename inserted"
public static final java.lang.String PREFERENCESVALUE_LAYOUT_DISCARD_INSERTED
PREFERENCESVALUE_OVERWRITE_EXISTING: Preferences value for option "discard inserted"
| Constructor Detail |
public ElementConflictListener(RuleRegistry rrApplication)
rrApplication - The ruleregistry used as default and for the repository| Method Detail |
public void setConflictMask(int mask)
mask - The conflict mask containing values of the mask constants
defined in this classpublic void dragDrop(GraphPanelDragEvent event)
GraphPanelDragListenerVisualGraphObject has been dropped into the
graph panel
dragDrop in interface GraphPanelDragListenerevent - The GraphPanelDragEvent eventpublic void dragPreDrop(GraphPanelDragEvent event)
GraphPanelDragListenerVisualGraphObject will be dropped into the
graph panel
dragPreDrop in interface GraphPanelDragListenerevent - The GraphPanelDragEvent eventpublic void dragMove(GraphPanelDragEvent event)
GraphPanelDragListenerVisualGraphObject has been dragged over the
graph panel
dragMove in interface GraphPanelDragListenerevent - The GraphPanelDragEvent eventpublic void dragEnter(GraphPanelDragEvent event)
GraphPanelDragListenerVisualGraphObject has been dragged into the bounds
of a VisualGraphObject in the view or into the bounds of the view
itself (in this case the GraphPanelDragEvent.getTargetGraphObject() will
return null).
dragEnter in interface GraphPanelDragListenerevent - The GraphPanelDragEvent eventpublic void dragExit(GraphPanelDragEvent event)
GraphPanelDragListenerVisualGraphObject has been dragged out of the bounds
of a VisualGraphObject in the view or out of the bounds of the view
itself (in this case the GraphPanelDragEvent.getTargetGraphObject() will
return null).
dragExit in interface GraphPanelDragListenerevent - The GraphPanelDragEvent event
public void vetoableCopyOnMove(VisualGraphView visualgraphview,
CompositeHierarchy hierarchySelection,
VisualGraphObject originalVisualGraphObject,
VisualGraphObject copiedVisualGraphObject)
throws VisualGraphEventVetoException
ClipboardListenerVisualGraphObject that is
copied-on-move (e.g. copied when the control key is pressed).
Implementors of this method have the option to veto the
copy-on-move for specific items by throwing a
VisualGraphEventVetoException.
When vetoing the copy-on-move action the node is omitted from the copy-on-move processing and remains at its original place. Also the veto'ed item is unselected.
Notice: changes to the selection state of the original
VisualGraphObject or the copied
VisualGraphObject have no
effect except when the copy-on-move action is vetoed.
vetoableCopyOnMove in interface ClipboardListenervisualgraphview - the
VisualGraphView in which the event
occurs.hierarchySelection - the hierarchy of selected
VisualGraphObjects.
VisualSubgraph} do not appear in the
hierarchy.originalVisualGraphObject - the VisualGraphObject
that has been copied.copiedVisualGraphObject - the copy of the original
VisualGraphObject.
VisualGraphEventVetoException - thrown by the implementor
to indicate that the item should not be copied-on-move.
public void vetoablePaste(VisualGraphView visualgraphview,
VisualGraphObjectContainer visualgraphobjectcontainer,
VisualGraphObject visualgraphobject,
VisualGraphView origin)
throws VisualGraphEventVetoException
ClipboardListenerVisualGraphObject that is
about to be pasted.
Implementors of this method have the option to veto the
copy-on-move for specific items by throwing a
VisualGraphEventVetoException.
vetoablePaste in interface ClipboardListenervisualgraphview - the VisualGraphView on which
the event occurs.visualgraphobjectcontainer - the VisualGraphObjectContainer
that is the target for the pasted VisualGraphObject.visualgraphobject - the VisualGraphObject
that is to be pasted.origin - the VisualGraphView where the
subject VisualGraphObject is originating from.
(may be null)
VisualGraphEventVetoException - thrown by the implementor
to indicate that the item should not be pasted.public void cutBegin(ClipboardEvent clipboardevent)
ClipboardListenerClipboardEvent.
cutBegin in interface ClipboardListenerclipboardevent - the ClipboardEvent instance that
carries the needed informationClipboardEventpublic void cutEnd(ClipboardEvent clipboardevent)
ClipboardListenerClipboardEvent.
cutEnd in interface ClipboardListenerclipboardevent - the ClipboardEvent instance that
carries the needed informationClipboardEventpublic void copyBegin(ClipboardEvent clipboardevent)
ClipboardListenerClipboardEvent.
copyBegin in interface ClipboardListenerclipboardevent - the ClipboardEvent instance that
carries the needed informationClipboardEventpublic void copyEnd(ClipboardEvent clipboardevent)
ClipboardListenerClipboardEvent.
copyEnd in interface ClipboardListenerclipboardevent - the ClipboardEvent instance that
carries the needed informationClipboardEventpublic void pasteBegin(ClipboardEvent clipboardevent)
ClipboardListenerClipboardEvent.
pasteBegin in interface ClipboardListenerclipboardevent - the ClipboardEvent instance that
carries the needed informationClipboardEventpublic void pasteEnd(ClipboardEvent clipboardevent)
ClipboardListenerClipboardEvent.
pasteEnd in interface ClipboardListenerclipboardevent - the ClipboardEvent instance that
carries the needed informationClipboardEvent
protected abstract void resolveConflicts(java.util.List ruleConflicts,
java.util.List layoutConflicts,
LayoutController lcSource,
VisualGraphView vgv,
VisualGraphObject[] vgos)
ruleConflicts - layoutConflicts - lcSource - vgv - vgos - public static VisualGraphObject[] getSubVGOs(VisualGraphObject vgo)
vgo - The VisualGraphObject to check for children
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||