|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.graphdocument.ModifiedVisualGraphAdapter
An Adapter to track changes of a visualgraph. This methods delegates all
change-relevant events to the modified(Object) method, where
the event is passed as well. To use this class simply extend it and implement
the modified(Object).
| Constructor Summary | |
ModifiedVisualGraphAdapter()
Empty default constructor for ModifiedVisualGraphAdapter. |
|
| Method Summary | |
void |
attributesChanged(AttributableOnSetEvent attributableonsetevent)
Invoked when an attribute in an AttributableOnSet object
has changed. |
void |
compositeChanged(ChangedEvent event)
This method is called whenever a Composite has been changed
but for the change is no specialized callback defined. |
void |
compositeChanged(LineChangedEvent event)
This method is called whenever a CompositeLine has been
changed but for the change is no specialized callback defined. |
void |
compositeManipulating(LineManipulationEvent event)
This method is called while a CompositeLine is being
manipulated.
|
void |
compositeMoving(LineMoveEvent event)
This method is called while a CompositeLine is being moved
around.
|
void |
compositeMoving(MoveEvent event)
This method is called while a Composite is being moved
around. |
void |
compositePostManipulating(LineManipulationEvent event)
This method is called after a CompositeLine has been
manipulated. |
void |
compositePostMoving(LineMoveEvent event)
This method is called after a CompositeLine has been moved. |
void |
compositePostMoving(MoveEvent event)
This method is called after a Composite has been moved. |
void |
compositePostResizing(ResizeEvent event)
This method is called after a Composite has been resized. |
void |
compositePreManipulating(LineManipulationEvent event)
This method is called before the manipulation of a CompositeLine starts. |
void |
compositePreMoving(LineMoveEvent event)
This method is called before a CompositeLine is being moved
around. |
void |
compositePreMoving(MoveEvent event)
This method is called before a Composite is being moved
around. |
void |
compositePreResizing(ResizeEvent event)
This method is called before a Composite is about to be
resized. |
void |
compositeResizing(ResizeEvent event)
This method is called while a Composite is being resized.
|
void |
groupAddedComposite(GroupAddCompositeEvent event)
This method is called whenever a Composite has been added
to a CompositeGroup. |
void |
groupAddedComposites(GroupAddCompositesEvent event)
This method is called whenever a List of
Composites has been added to a CompositeGroup.
|
void |
groupCompositeOrderChanged(GroupCompositeOrderChangeEvent event)
This method is called whenever the internal order of BaseComposite objects changes. |
void |
groupFoldStateChanged(GroupFoldStateChange event)
This method is called whenever the state of folding of a CompositeGroup has been changed.
|
void |
groupFoldStatePreChange(GroupFoldStateChange event)
This method is called whenever the state of folding of a CompositeGroup is up to be changed. |
void |
groupRemovedComposite(GroupRemoveCompositeEvent event)
This method is called whenever a Composite has been removed
from a CompositeGroup.
|
void |
groupRemovedComposites(GroupRemoveCompositesEvent event)
This method is called whenever a List of
Composites has been removed from a
CompositeGroup.
|
void |
groupSelectionChanged(GroupSelectionChangeEvent event)
This method is called whenever the selection within the CompositeGroup has been changed.
|
void |
groupSizeAdjusted(GroupSizeAdjustmentEvent event)
This method is called whenever the size of a CompositeGroup
has been changed by the CompositeGroup itself.
|
void |
isolatedVisualEdgeAdded(VisualGraphEvent visualgraphevent)
An isolated VisualEdge was added to the VisualGraph. |
void |
isolatedVisualEdgeRemoved(VisualGraphEvent visualgraphevent)
An isolated VisualEdge was removed from the
VisualGraph. |
void |
layout(VisualGraphEvent visualgraphevent)
The structure of the VisualGraph has changed by an action
on the graph, so that the current layout of the graph has to be applied.
|
abstract void |
modified(java.lang.Object event)
The drain for all events. |
void |
mouseClick(BCMouseEvent event)
This method is called when a mouse button has been pressed and released upon a BaseComposite. |
void |
mouseDown(BCMouseEvent event)
This methods is called when a mouse button has been pressed upon a BaseComposite. |
void |
mouseEnter(BCMouseEvent event)
This method is called when the mouse enters the BaseComposite. |
void |
mouseExit(BCMouseEvent event)
This method is called when the mouse exits the BaseComposite. |
void |
mouseUp(BCMouseEvent event)
This methods is called when a mouse button has been pressed upon a BaseComposite and it will be released. |
void |
postSelect(BCSelectEvent event)
This method is called whenever a Composite has been
selected. |
void |
preSelect(BCSelectEvent event)
This method is called before a Composite is being selected. |
void |
viewAddedComposite(ViewAddCompositeEvent event)
Called whenever a Composite was added. |
void |
viewAddedComposites(ViewAddCompositesEvent event)
Called whenever multiple Composites are added. |
void |
viewCompositeOrderChanged(ViewCompositeOrderChangeEvent event)
Called whenever the internal order of BaseComposite objects
changes. |
void |
viewModeChanged(ViewModeChangeEvent event)
Called whenever the mode of the CompositeView changed. |
void |
viewParameterChanged(ViewParameterChangeEvent event)
Called whenever a parameter of the view changed. |
void |
viewRemovedComposite(ViewRemoveCompositeEvent event)
Called whenever a Composite was removed. |
void |
viewRemovedComposites(ViewRemoveCompositesEvent event)
Called whenever multiple Composites were remmoved. |
void |
viewScrolled(ViewScrolledEvent event)
Called if the view position is changed during an action. |
void |
viewSelectionChanged(ViewSelectionChangeEvent event)
Called whenever the selection of the view changed. |
void |
visualEdgeAdded(VisualGraphEvent visualgraphevent)
A VisualEdge was added to the VisualGraph. |
void |
visualEdgeAttachRejected(VisualGraphEvent visualgraphevent)
An attachment of a VisualEdge was rejected by the graph.
|
void |
visualEdgeRemoved(VisualGraphEvent visualgraphevent)
A VisualEdge was removed from the VisualGraph. |
void |
visualEdgeSplit(VisualGraphEvent visualgraphevent)
An edge-split was performed. |
void |
visualNodeAdded(VisualGraphEvent visualgraphevent)
A VisualNode was added to the VisualGraph. |
void |
visualNodeDeleteEdgeCascade(VisualGraphEvent visualgraphevent)
An edge-cascade was performed. |
void |
visualNodeRemoved(VisualGraphEvent visualgraphevent)
A VisualNode was added to the VisualGraph. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ModifiedVisualGraphAdapter()
ModifiedVisualGraphAdapter.
| Method Detail |
public abstract void modified(java.lang.Object event)
modified method to enable users to react on all different
events in one single way.
event - the event sent out be the VisualGraph.public void attributesChanged(AttributableOnSetEvent attributableonsetevent)
AttributableOnSetListenerAttributableOnSet object
has changed.
attributesChanged in interface AttributableOnSetListenerattributableonsetevent - the event carrying information.public void preSelect(BCSelectEvent event)
BaseCompositeListenerComposite is being selected.
preSelect in interface BaseCompositeListenerevent - the SelectEventBCSelectEventpublic void postSelect(BCSelectEvent event)
BaseCompositeListenerComposite has been
selected.
postSelect in interface BaseCompositeListenerevent - the SelectEventBCSelectEventpublic void mouseEnter(BCMouseEvent event)
BaseCompositeListenerBaseComposite. Enter means that the hotspot of the mouse
cursor lies within the bounding box of the BaseComposite
mouseEnter in interface BaseCompositeListenerevent - the BCMouseEventpublic void mouseExit(BCMouseEvent event)
BaseCompositeListenerBaseComposite. Exit means that the hotspot of the mouse
cursor lies no longer within the bounding box of the
BaseComposite
mouseExit in interface BaseCompositeListenerevent - the BCMouseEventpublic void mouseDown(BCMouseEvent event)
BaseCompositeListenerBaseComposite.
mouseDown in interface BaseCompositeListenerevent - the BCMouseEventpublic void mouseUp(BCMouseEvent event)
BaseCompositeListenerBaseComposite and it will be released.
mouseUp in interface BaseCompositeListenerevent - the BCMouseEventpublic void mouseClick(BCMouseEvent event)
BaseCompositeListenerBaseComposite.
mouseClick in interface BaseCompositeListenerevent - the BCMouseEventpublic void compositeChanged(LineChangedEvent event)
CompositeLineListenerCompositeLine has been
changed but for the change is no specialized callback defined.
compositeChanged in interface CompositeLineListenerevent - the LineChangedEventLineChangedEventpublic void compositePreManipulating(LineManipulationEvent event)
CompositeLineListenerCompositeLine starts.
compositePreManipulating in interface CompositeLineListenerevent - the LineManipulationEvent event instanceLineManipulationEventpublic void compositeManipulating(LineManipulationEvent event)
CompositeLineListener
This method is called while a CompositeLine is being
manipulated.
Notice that this method is only called while interaction with the
CompositeLine is taking place and not when manipulate it by
the interface methods.
compositeManipulating in interface CompositeLineListenerevent - the LineManipulationEvent event instanceLineManipulationEventpublic void compositePostManipulating(LineManipulationEvent event)
CompositeLineListenerCompositeLine has been
manipulated.
compositePostManipulating in interface CompositeLineListenerevent - the LineManipulationEvent event instanceLineManipulationEventpublic void compositePreMoving(LineMoveEvent event)
CompositeLineListenerCompositeLine is being moved
around.
compositePreMoving in interface CompositeLineListenerevent - the LineMoveEvent event instance- See Also:
LineMoveEventpublic void compositeMoving(LineMoveEvent event)
CompositeLineListener
This method is called while a CompositeLine is being moved
around.
Notice that this method is only called while interaction with the
CompositeLine is taking place and not when moving it by the
interface methods.
compositeMoving in interface CompositeLineListenerevent - the LineMoveEvent event instance- See Also:
LineMoveEventpublic void compositePostMoving(LineMoveEvent event)
CompositeLineListenerCompositeLine has been moved.
compositePostMoving in interface CompositeLineListenerevent - the LineMoveEvent event instance- See Also:
LineMoveEventpublic void compositeChanged(ChangedEvent event)
CompositeListenerComposite has been changed
but for the change is no specialized callback defined.
compositeChanged in interface CompositeListenerevent - the ChangedEventChangedEventpublic void compositePreResizing(ResizeEvent event)
CompositeListenerComposite is about to be
resized. Throwing a CompositeEventVetoException prevents
resizement of the Composite completely.
compositePreResizing in interface CompositeListenerevent - the ResizeEvent- See Also:
ResizeEventpublic void compositeResizing(ResizeEvent event)
CompositeListener
This method is called while a Composite is being resized.
Throwing a CompositeEventVetoException prevents resizement
of the Composite to the actual size.
For instance this can be used to avoid that the Composite is
being resized to a size that is not acceptable.
Notice that this method is only called while interaction with the
Composite is taking place and not when resize it by the
interface methods.
compositeResizing in interface CompositeListenerevent - the ResizeEvent- See Also:
ResizeEventpublic void compositePostResizing(ResizeEvent event)
CompositeListenerComposite has been resized.
compositePostResizing in interface CompositeListenerevent - the ResizeEvent- See Also:
ResizeEventpublic void compositePreMoving(MoveEvent event)
CompositeListenerComposite is being moved
around. Throwing a CompositeEventVetoException prevents
movement of the Composite completely.
compositePreMoving in interface CompositeListenerevent - the LineMoveEvent- See Also:
MoveEventpublic void compositeMoving(MoveEvent event)
CompositeListener
This method is called while a Composite is being moved
around. Throwing a CompositeEventVetoException prevents
movement of the Composite to the actual position.
For instance this can be used to avoid that the Composite is
being moved to a location that is not acceptable.
Notice that this method is only called while interaction with the
Composite is taking place and not when moving it by the
interface methods.
compositeMoving in interface CompositeListenerevent - the MoveEvent- See Also:
MoveEventpublic void compositePostMoving(MoveEvent event)
CompositeListenerComposite has been moved.
compositePostMoving in interface CompositeListenerevent - the MoveEvent- See Also:
MoveEventpublic void groupAddedComposite(GroupAddCompositeEvent event)
CompositeGroupListenerComposite has been added
to a CompositeGroup. The GroupAddCompositeEvent
given by event carries the information a
CompositeGroupListener could be interested in.
groupAddedComposite in interface CompositeGroupListenerevent - the event that carries the informationpublic void groupRemovedComposite(GroupRemoveCompositeEvent event)
CompositeGroupListenerComposite has been removed
from a CompositeGroup.
The GroupRemoveCompositeEvent given by event
carries the information a CompositeGroupListener could be
interested in.
groupRemovedComposite in interface CompositeGroupListenerevent - the event that carries the informationpublic void groupAddedComposites(GroupAddCompositesEvent event)
CompositeGroupListenerList of
Composites has been added to a CompositeGroup.
The GroupAddCompositesEvent given by event
carries the information a CompositeGroupListener could be
interested in.
groupAddedComposites in interface CompositeGroupListenerevent - the event that carries the informationpublic void groupRemovedComposites(GroupRemoveCompositesEvent event)
CompositeGroupListenerList of
Composites has been removed from a
CompositeGroup.
The GroupRemoveCompositesEvent given by event
carries the information a CompositeGroupListener could be
interested in.
groupRemovedComposites in interface CompositeGroupListenerevent - the event that carries the informationpublic void groupSelectionChanged(GroupSelectionChangeEvent event)
CompositeGroupListenerCompositeGroup has been changed.
The GroupSelectionChangeEvent given by event
carries the information a CompositeGroupListener could be
interested in.
groupSelectionChanged in interface CompositeGroupListenerevent - the event that carries the informationpublic void groupCompositeOrderChanged(GroupCompositeOrderChangeEvent event)
CompositeGroupListenerBaseComposite objects changes.
groupCompositeOrderChanged in interface CompositeGroupListenerevent - the corresponding
GroupCompositeOrderChangeEvent event.public void groupSizeAdjusted(GroupSizeAdjustmentEvent event)
CompositeGroupListenerCompositeGroup
has been changed by the CompositeGroup itself.
CompositeGroup.
groupSizeAdjusted in interface CompositeGroupListenerevent - the event that carries the information.public void groupFoldStatePreChange(GroupFoldStateChange event)
CompositeGroupListenerCompositeGroup is up to be changed.
groupFoldStatePreChange in interface CompositeGroupListenerevent - the event that carries the information.public void groupFoldStateChanged(GroupFoldStateChange event)
CompositeGroupListenerCompositeGroup has been changed.
The GroupFoldStateChange event given by event
carries the information a CompositeGroupListener could be
interested in.
groupFoldStateChanged in interface CompositeGroupListenerevent - the event that carries the information.public void viewAddedComposite(ViewAddCompositeEvent event)
CompositeViewListenerComposite was added.
viewAddedComposite in interface CompositeViewListenerevent - the corresponding event.public void viewRemovedComposite(ViewRemoveCompositeEvent event)
CompositeViewListenerComposite was removed.
viewRemovedComposite in interface CompositeViewListenerevent - the corresponding event.public void viewAddedComposites(ViewAddCompositesEvent event)
CompositeViewListenerComposites are added.
viewAddedComposites in interface CompositeViewListenerevent - the corresponding event.public void viewRemovedComposites(ViewRemoveCompositesEvent event)
CompositeViewListenerComposites were remmoved.
viewRemovedComposites in interface CompositeViewListenerevent - the corresponding event.public void viewSelectionChanged(ViewSelectionChangeEvent event)
CompositeViewListener
viewSelectionChanged in interface CompositeViewListenerevent - the corresponding ViewSelectionChangeEvent
event.public void viewCompositeOrderChanged(ViewCompositeOrderChangeEvent event)
CompositeViewListenerBaseComposite objects
changes.
viewCompositeOrderChanged in interface CompositeViewListenerevent - the corresponding ViewCompositeOrderChangeEvent
event.public void viewParameterChanged(ViewParameterChangeEvent event)
CompositeViewListener
viewParameterChanged in interface CompositeViewListenerevent - the corresponding ViewParameterChangeEvent
event.public void viewScrolled(ViewScrolledEvent event)
CompositeViewListener
viewScrolled in interface CompositeViewListenerevent - the corresponding ViewScrollingEvent
event.public void viewModeChanged(ViewModeChangeEvent event)
CompositeViewListenerCompositeView changed.
viewModeChanged in interface CompositeViewListenerevent - the corresponding ViewModeChangeEvent
event.public void visualNodeAdded(VisualGraphEvent visualgraphevent)
VisualGraphListenerVisualNode was added to the VisualGraph.
visualNodeAdded in interface VisualGraphListenervisualgraphevent - the VisualGraphEvent
structure that contains the event information.public void visualNodeRemoved(VisualGraphEvent visualgraphevent)
VisualGraphListenerVisualNode was added to the VisualGraph.
visualNodeRemoved in interface VisualGraphListenervisualgraphevent - the VisualGraphEvent
structure that contains the event information.public void visualEdgeAdded(VisualGraphEvent visualgraphevent)
VisualGraphListenerVisualEdge was added to the VisualGraph.
visualEdgeAdded in interface VisualGraphListenervisualgraphevent - the VisualGraphEvent structure
that contains the event information.public void visualEdgeRemoved(VisualGraphEvent visualgraphevent)
VisualGraphListenerVisualEdge was removed from the VisualGraph.
visualEdgeRemoved in interface VisualGraphListenervisualgraphevent - the VisualGraphEvent structure
that contains the event information.public void isolatedVisualEdgeAdded(VisualGraphEvent visualgraphevent)
VisualGraphListenerVisualEdge was added to the VisualGraph.
isolatedVisualEdgeAdded in interface VisualGraphListenervisualgraphevent - the VisualGraphEvent structure
that contains the event information.public void isolatedVisualEdgeRemoved(VisualGraphEvent visualgraphevent)
VisualGraphListenerVisualEdge was removed from the
VisualGraph.
isolatedVisualEdgeRemoved in interface VisualGraphListenervisualgraphevent - the VisualGraphEvent structure
that contains the event information.public void visualEdgeAttachRejected(VisualGraphEvent visualgraphevent)
VisualGraphListenerVisualEdge was rejected by the graph.
This event is thrown to indicate that an edge could not be added
if the library chooses to do so in certain contexts. If it however not
thrown in all cases when a VisualEdge cannot be added.
If for example an already added VisualEdge is added, this
event is not thrown.
visualEdgeAttachRejected in interface VisualGraphListenervisualgraphevent - the VisualGraphEvent structure
that contains the event information.public void visualEdgeSplit(VisualGraphEvent visualgraphevent)
VisualGraphListener
visualEdgeSplit in interface VisualGraphListenervisualgraphevent - the VisualGraphEvent structure that
contains the event information.public void visualNodeDeleteEdgeCascade(VisualGraphEvent visualgraphevent)
VisualGraphListener
visualNodeDeleteEdgeCascade in interface VisualGraphListenervisualgraphevent - the VisualGraphEvent structure that
contains the event information.public void layout(VisualGraphEvent visualgraphevent)
VisualGraphListenerVisualGraph has changed by an action
on the graph, so that the current layout of the graph has to be applied.
Note: programmatically changes like node insertion might not invoke
this callback
layout in interface VisualGraphListenervisualgraphevent - the VisualGraphEvent structure that
contains the event information.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||