com.tensegrity.composite.event
Class CompositeEventMultiplexer

java.lang.Object
  extended bycom.tensegrity.generic.event.EventMultiplexer
      extended bycom.tensegrity.composite.event.CompositeEventMultiplexer
All Implemented Interfaces:
BaseCompositeListener, CompositeGroupListener, CompositeLineListener, CompositeListener, CompositeViewListener, EventListenerTag, VetoableBaseCompositeListener, VetoableCompositeGroupListener, VetoableCompositeLineListener, VetoableCompositeListener, VetoableCompositeViewListener

public class CompositeEventMultiplexer
extends EventMultiplexer
implements CompositeLineListener, VetoableCompositeLineListener, CompositeListener, VetoableCompositeListener, CompositeGroupListener, VetoableCompositeGroupListener, CompositeViewListener, VetoableCompositeViewListener

The listener interface for receiving events that are related to a Composite, CompositeGroup or CompositeView instances.

Version:
$Id: CompositeEventMultiplexer.java,v 1.28 2006/03/23 11:09:53 MichaelKegel Exp $
Author:
Michael Kegel

Constructor Summary
CompositeEventMultiplexer(EventListenerTag a, EventListenerTag b)
          Constructor specifying a left and right listener child.
 
Method Summary
static CompositeGroupListener combine(CompositeGroupListener a, CompositeGroupListener b)
          Combines two given CompositeGroupListeners to a new CompositeGroupListener.
static CompositeLineListener combine(CompositeLineListener a, CompositeLineListener b)
          Combines two given CompositeLineListener to a new CompositeLineListener.
static CompositeListener combine(CompositeListener a, CompositeListener b)
          Combines two given CompositeListeners to a new CompositeListener.
static CompositeViewListener combine(CompositeViewListener a, CompositeViewListener b)
          Combines two given CompositeViewListeners to a new CompositeViewListener.
static VetoableCompositeGroupListener combine(VetoableCompositeGroupListener a, VetoableCompositeGroupListener b)
          Combines two given VetoableCompositeGroupListener to a new VetoableCompositeGroupListener.
static VetoableCompositeLineListener combine(VetoableCompositeLineListener a, VetoableCompositeLineListener b)
          Combines two given VetoableCompositeLineListener to a new VetoableCompositeLineListener.
static VetoableCompositeListener combine(VetoableCompositeListener a, VetoableCompositeListener b)
          Combines two given VetoableCompositeListener to a new VetoableCompositeListener.
static VetoableCompositeViewListener combine(VetoableCompositeViewListener a, VetoableCompositeViewListener b)
          Combines two given VetoableCompositeViewListener to a new VetoableCompositeViewListener.
 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 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.
static CompositeGroupListener multiplex(CompositeGroupListener a, CompositeGroupListener b)
          Combines the two given CompositeGroupListeners to a CompositeGroupListener.
static CompositeLineListener multiplex(CompositeLineListener a, CompositeLineListener b)
          Combines the two given CompositeLineListeners to a new CompositeLineListener.
static CompositeListener multiplex(CompositeListener a, CompositeListener b)
          Combines the two given CompositeListeners to a CompositeListener.
static CompositeViewListener multiplex(CompositeViewListener a, CompositeViewListener b)
          Combines the two given CompositeViewListeners to a CompositeViewListener.
static VetoableCompositeGroupListener multiplex(VetoableCompositeGroupListener a, VetoableCompositeGroupListener b)
          Combines the two given VetoableCompositeGroupListeners to a VetoableCompositeGroupListener.
static VetoableCompositeLineListener multiplex(VetoableCompositeLineListener a, VetoableCompositeLineListener b)
          Combines the two given VetoableCompositeLineListeners to a new CompositeLineListener.
static VetoableCompositeListener multiplex(VetoableCompositeListener a, VetoableCompositeListener b)
          Combines the two given VetoableCompositeListeners to a VetoableCompositeListener.
static VetoableCompositeViewListener multiplex(VetoableCompositeViewListener a, VetoableCompositeViewListener b)
          Combines the two given VetoableCompositeViewListeners to a VetoableCompositeViewListener.
 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.
static CompositeGroupListener separate(CompositeGroupListener a, CompositeGroupListener b)
          Separates the CompositeGroupListener b from the CompositeGroupListener a and returns the remaining CompositeGroupListener structure.
static CompositeLineListener separate(CompositeLineListener a, CompositeLineListener b)
          Separates the CompositeLineListener b from the CompositeLineListener a and returns the remaining CompositeLineListener structure.
static CompositeListener separate(CompositeListener a, CompositeListener b)
          Separates the CompositeListener b from the CompositeListener a and returns the remaining CompositeListener structure.
static CompositeViewListener separate(CompositeViewListener a, CompositeViewListener b)
          Separates the CompositeViewListener b from the CompositeViewListener a and returns the remaining CompositeViewListener structure.
static VetoableCompositeGroupListener separate(VetoableCompositeGroupListener a, VetoableCompositeGroupListener b)
          Separates the VetoableCompositeGroupListener b from the VetoableCompositeGroupListener a and returns the remaining VetoableCompositeGroupListener structure.
static VetoableCompositeLineListener separate(VetoableCompositeLineListener a, VetoableCompositeLineListener b)
          Separates the VetoableCompositeLineListener b from the VetoableCompositeLineListener a and returns the remaining VetoableCompositeLineListener structure.
static VetoableCompositeListener separate(VetoableCompositeListener a, VetoableCompositeListener b)
          Separates the VetoableCompositeListener b from the VetoableCompositeListener a and returns the remaining VetoableCompositeListener structure.
static VetoableCompositeViewListener separate(VetoableCompositeViewListener a, VetoableCompositeViewListener b)
          Separates the VetoableCompositeViewListener b from the VetoableCompositeViewListener a and returns the remaining VetoableCompositeViewListener structure.
static CompositeGroupListener unmultiplex(CompositeGroupListener a, CompositeGroupListener b)
          Returns the remaining CompositeGroupListener structure after separating the given CompositeGroupListeners.
static CompositeLineListener unmultiplex(CompositeLineListener a, CompositeLineListener b)
          Returns the remaining CompositeLineListener structure after separating the given CompositeLineListeners.
static CompositeListener unmultiplex(CompositeListener a, CompositeListener b)
          Returns the remaining CompositeListener structure after separating the given CompositeListeners.
static CompositeViewListener unmultiplex(CompositeViewListener a, CompositeViewListener b)
          Returns the remaining CompositeViewListener structure after separating the given CompositeViewListeners.
static VetoableCompositeGroupListener unmultiplex(VetoableCompositeGroupListener a, VetoableCompositeGroupListener b)
          Returns the remaining VetoableCompositeGroupListener structure after separating the given CompositeGroupListeners.
static VetoableCompositeLineListener unmultiplex(VetoableCompositeLineListener a, VetoableCompositeLineListener b)
          Returns the remaining VetoableCompositeLineListener structure after separating the given VetoableCompositeLineListeners.
static VetoableCompositeListener unmultiplex(VetoableCompositeListener a, VetoableCompositeListener b)
          Returns the remaining VetoableCompositeListener structure after separating the given CompositeListeners.
static VetoableCompositeViewListener unmultiplex(VetoableCompositeViewListener a, VetoableCompositeViewListener b)
          Returns the remaining VetoableCompositeViewListener structure after separating the given VetoableCompositeViewListeners.
 void vetoableCompositeManipulating(LineManipulationEvent event)
           This method is called while a CompositeLine is being manipulated.
 void vetoableCompositeMoving(LineMoveEvent event)
           This method is called while a CompositeLine is being moved around.
 void vetoableCompositeMoving(MoveEvent event)
           This method is called while a Composite is being moved around.
 void vetoableCompositePreManipulating(LineManipulationEvent event)
           This method is called before the manipulation of a CompositeLine starts.
 void vetoableCompositePreMoving(LineMoveEvent event)
          This method is called before a CompositeLine is being moved around.
 void vetoableCompositePreMoving(MoveEvent event)
          This method is called before a Composite is being moved around.
 void vetoableCompositePreResizing(ResizeEvent event)
          This method is called before a Composite is about to be resized.
 void vetoableCompositeResizing(ResizeEvent event)
           This method is called while a Composite is being resized.
 void vetoablePreSelect(BCSelectEvent event)
           
 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.
 
Methods inherited from class com.tensegrity.generic.event.EventMultiplexer
a, b, combine, countEventListeners, listenersToArrayList, separate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeEventMultiplexer

public CompositeEventMultiplexer(EventListenerTag a,
                                 EventListenerTag b)
Constructor specifying a left and right listener child. The children themselves can be event multiplexers as well.

Parameters:
a - left subtree of this EventMultiplexer
b - right subtree of this EventMultiplexer
Method Detail

combine

public static CompositeLineListener combine(CompositeLineListener a,
                                            CompositeLineListener b)
Combines two given CompositeLineListener to a new CompositeLineListener.

Parameters:
a - the first CompositeLineListener to combine.
b - the second CompositeLineListener to combine.
Returns:
the new CompositeLineListener that combines the two given CompositeLineListener.

separate

public static CompositeLineListener separate(CompositeLineListener a,
                                             CompositeLineListener b)
Separates the CompositeLineListener b from the CompositeLineListener a and returns the remaining CompositeLineListener structure.

Parameters:
a - the first CompositeLineListener to separate.
b - the second CompositeLineListener to separate.
Returns:
the remaining CompositeLineListener that separates b from a.

combine

public static VetoableCompositeLineListener combine(VetoableCompositeLineListener a,
                                                    VetoableCompositeLineListener b)
Combines two given VetoableCompositeLineListener to a new VetoableCompositeLineListener.

Parameters:
a - the first VetoableCompositeLineListener to combine
b - the second VetoableCompositeLineListener to combine
Returns:
the new VetoableCompositeLineListener that combines the two given VetoableCompositeLineListener.

separate

public static VetoableCompositeLineListener separate(VetoableCompositeLineListener a,
                                                     VetoableCompositeLineListener b)
Separates the VetoableCompositeLineListener b from the VetoableCompositeLineListener a and returns the remaining VetoableCompositeLineListener structure.

Parameters:
a - the first VetoableCompositeLineListener to separate
b - the second VetoableCompositeLineListener to separate
Returns:
the remaining VetoableCompositeLineListener that separates b from a.

combine

public static CompositeListener combine(CompositeListener a,
                                        CompositeListener b)
Combines two given CompositeListeners to a new CompositeListener.

Parameters:
a - the first CompositeListener to combine.
b - the second CompositeListener to combine.
Returns:
the new CompositeListener that combines the two given CompositeListeners.

separate

public static CompositeListener separate(CompositeListener a,
                                         CompositeListener b)
Separates the CompositeListener b from the CompositeListener a and returns the remaining CompositeListener structure.

Parameters:
a - the first CompositeListener to separate
b - the second CompositeListener to separate.
Returns:
the remaining CompositeListener that separates b from a.

combine

public static VetoableCompositeListener combine(VetoableCompositeListener a,
                                                VetoableCompositeListener b)
Combines two given VetoableCompositeListener to a new VetoableCompositeListener.

Parameters:
a - the first VetoableCompositeListener to combine
b - the second VetoableCompositeListener to combine
Returns:
the new VetoableCompositeListener that combines the two given VetoableCompositeListeners.

separate

public static VetoableCompositeListener separate(VetoableCompositeListener a,
                                                 VetoableCompositeListener b)
Separates the VetoableCompositeListener b from the VetoableCompositeListener a and returns the remaining VetoableCompositeListener structure.

Parameters:
a - the first VetoableCompositeListener to separate
b - the second VetoableCompositeListener to separate
Returns:
the remaining VetoableCompositeListener that separates b from a.

combine

public static CompositeGroupListener combine(CompositeGroupListener a,
                                             CompositeGroupListener b)
Combines two given CompositeGroupListeners to a new CompositeGroupListener.

Parameters:
a - the first CompositeGroupListener to combine.
b - the second CompositeGroupListener to combine.
Returns:
the new CompositeGroupListener that combines the two given CompositeGroupListeners.

separate

public static CompositeGroupListener separate(CompositeGroupListener a,
                                              CompositeGroupListener b)
Separates the CompositeGroupListener b from the CompositeGroupListener a and returns the remaining CompositeGroupListener structure.

Parameters:
a - the first CompositeGroupListener to separate
b - the second CompositeGroupListener to separate.
Returns:
the remaining CompositeGroupListener that separates b from a.

combine

public static VetoableCompositeGroupListener combine(VetoableCompositeGroupListener a,
                                                     VetoableCompositeGroupListener b)
Combines two given VetoableCompositeGroupListener to a new VetoableCompositeGroupListener.

Parameters:
a - the first VetoableCompositeGroupListener to combine
b - the second VetoableCompositeGroupListener to combine
Returns:
the new VetoableCompositeGroupListener that combines the two given VetoableCompositeGroupListener.

separate

public static VetoableCompositeGroupListener separate(VetoableCompositeGroupListener a,
                                                      VetoableCompositeGroupListener b)
Separates the VetoableCompositeGroupListener b from the VetoableCompositeGroupListener a and returns the remaining VetoableCompositeGroupListener structure.

Parameters:
a - the first VetoableCompositeGroupListener to separate
b - the second VetoableCompositeGroupListener to separate
Returns:
the remaining VetoableCompositeGroupListener that separates b from a.

combine

public static CompositeViewListener combine(CompositeViewListener a,
                                            CompositeViewListener b)
Combines two given CompositeViewListeners to a new CompositeViewListener.

Parameters:
a - the first CompositeViewListener to combine.
b - the second CompositeViewListener to combine.
Returns:
the new CompositeViewListener that combines the two given CompositeViewListeners.

separate

public static CompositeViewListener separate(CompositeViewListener a,
                                             CompositeViewListener b)
Separates the CompositeViewListener b from the CompositeViewListener a and returns the remaining CompositeViewListener structure.

Parameters:
a - the first CompositeViewListener to separate
b - the second CompositeViewListener to separate.
Returns:
the remaining CompositeViewListener that separates b from a.

combine

public static VetoableCompositeViewListener combine(VetoableCompositeViewListener a,
                                                    VetoableCompositeViewListener b)
Combines two given VetoableCompositeViewListener to a new VetoableCompositeViewListener.

Parameters:
a - the first VetoableCompositeViewListener to combine
b - the second VetoableCompositeViewListener to combine
Returns:
the new VetoableCompositeViewListener that combines the two given VetoableCompositeViewListener.

separate

public static VetoableCompositeViewListener separate(VetoableCompositeViewListener a,
                                                     VetoableCompositeViewListener b)
Separates the VetoableCompositeViewListener b from the VetoableCompositeViewListener a and returns the remaining VetoableCompositeViewListener structure.

Parameters:
a - the first VetoableCompositeViewListener to separate
b - the second VetoableCompositeViewListener to separate
Returns:
the remaining VetoableCompositeViewListener that separates b from a.

multiplex

public static CompositeLineListener multiplex(CompositeLineListener a,
                                              CompositeLineListener b)
Combines the two given CompositeLineListeners to a new CompositeLineListener.

Parameters:
a - the first CompositeLineListener to combine.
b - the second CompositeLineListener to combine.
Returns:
the new CompositeLineListener that combines the two given CompositeLineListeners.

unmultiplex

public static CompositeLineListener unmultiplex(CompositeLineListener a,
                                                CompositeLineListener b)
Returns the remaining CompositeLineListener structure after separating the given CompositeLineListeners.

Parameters:
a - the first CompositeLineListener to separate.
b - the second CompositeLineListener to separate.
Returns:
the remaining CompositeLineListener structure.

multiplex

public static VetoableCompositeLineListener multiplex(VetoableCompositeLineListener a,
                                                      VetoableCompositeLineListener b)
Combines the two given VetoableCompositeLineListeners to a new CompositeLineListener.

Parameters:
a - the first VetoableCompositeLineListener to combine.
b - the second VetoableCompositeLineListener to combine.
Returns:
the new VetoableCompositeLineListener that combines the two given VetoableCompositeLineListeners.

unmultiplex

public static VetoableCompositeLineListener unmultiplex(VetoableCompositeLineListener a,
                                                        VetoableCompositeLineListener b)
Returns the remaining VetoableCompositeLineListener structure after separating the given VetoableCompositeLineListeners.

Parameters:
a - the first VetoableCompositeLineListener to separate.
b - the second VetoableCompositeLineListener to separate.
Returns:
the remaining VetoableCompositeLineListener structure.

multiplex

public static CompositeListener multiplex(CompositeListener a,
                                          CompositeListener b)
Combines the two given CompositeListeners to a CompositeListener.

Parameters:
a - the first CompositeListener to combine.
b - the second CompositeListener to combine.
Returns:
the new CompositeListener that combines the two given CompositeListeners.

unmultiplex

public static CompositeListener unmultiplex(CompositeListener a,
                                            CompositeListener b)
Returns the remaining CompositeListener structure after separating the given CompositeListeners.

Parameters:
a - the first CompositeListener to separate.
b - the second CompositeListener to separate.
Returns:
the remaining CompositeListener structure.

multiplex

public static VetoableCompositeListener multiplex(VetoableCompositeListener a,
                                                  VetoableCompositeListener b)
Combines the two given VetoableCompositeListeners to a VetoableCompositeListener.

Parameters:
a - the first VetoableCompositeListener to combine.
b - the second VetoableCompositeListener to combine.
Returns:
the new VetoableCompositeListener that combines the two given VetoableCompositeListeners.

unmultiplex

public static VetoableCompositeListener unmultiplex(VetoableCompositeListener a,
                                                    VetoableCompositeListener b)
Returns the remaining VetoableCompositeListener structure after separating the given CompositeListeners.

Parameters:
a - the first VetoableCompositeListener to separate.
b - the second VetoableCompositeListener to separate.
Returns:
the remaining VetoableCompositeListener structure.

multiplex

public static CompositeGroupListener multiplex(CompositeGroupListener a,
                                               CompositeGroupListener b)
Combines the two given CompositeGroupListeners to a CompositeGroupListener.

Parameters:
a - the first CompositeGroupListener to combine.
b - the second CompositeGroupListener to combine.
Returns:
the new CompositeGroupListener that combines the two given CompositeGroupListeners.

unmultiplex

public static CompositeGroupListener unmultiplex(CompositeGroupListener a,
                                                 CompositeGroupListener b)
Returns the remaining CompositeGroupListener structure after separating the given CompositeGroupListeners.

Parameters:
a - the first CompositeGroupListener to separate.
b - the second CompositeGroupListener to separate.
Returns:
the remaining CompositeGroupListener structure.

multiplex

public static VetoableCompositeGroupListener multiplex(VetoableCompositeGroupListener a,
                                                       VetoableCompositeGroupListener b)
Combines the two given VetoableCompositeGroupListeners to a VetoableCompositeGroupListener.

Parameters:
a - the first VetoableCompositeGroupListener to combine.
b - the second VetoableCompositeGroupListener to combine.
Returns:
the new VetoableCompositeGroupListener that combines the two given VetoableCompositeGroupListeners.

unmultiplex

public static VetoableCompositeGroupListener unmultiplex(VetoableCompositeGroupListener a,
                                                         VetoableCompositeGroupListener b)
Returns the remaining VetoableCompositeGroupListener structure after separating the given CompositeGroupListeners.

Parameters:
a - the first VetoableCompositeGroupListener to separate.
b - the second VetoableCompositeGroupListener to separate.
Returns:
the remaining VetoableCompositeGroupListener structure.

multiplex

public static CompositeViewListener multiplex(CompositeViewListener a,
                                              CompositeViewListener b)
Combines the two given CompositeViewListeners to a CompositeViewListener.

Parameters:
a - the first CompositeViewListener to combine.
b - the second CompositeViewListener to combine.
Returns:
the new CompositeViewListener that combines the two given CompositeViewListeners.

unmultiplex

public static CompositeViewListener unmultiplex(CompositeViewListener a,
                                                CompositeViewListener b)
Returns the remaining CompositeViewListener structure after separating the given CompositeViewListeners.

Parameters:
a - the first CompositeViewListener to separate.
b - the second CompositeViewListener to separate.
Returns:
the remaining CompositeViewListener structure.

multiplex

public static VetoableCompositeViewListener multiplex(VetoableCompositeViewListener a,
                                                      VetoableCompositeViewListener b)
Combines the two given VetoableCompositeViewListeners to a VetoableCompositeViewListener.

Parameters:
a - the first VetoableCompositeViewListener to combine.
b - the second VetoableCompositeViewListener to combine.
Returns:
the new VetoableCompositeViewListener that combines the two given VetoableCompositeViewListeners.

unmultiplex

public static VetoableCompositeViewListener unmultiplex(VetoableCompositeViewListener a,
                                                        VetoableCompositeViewListener b)
Returns the remaining VetoableCompositeViewListener structure after separating the given VetoableCompositeViewListeners.

Parameters:
a - the first VetoableCompositeViewListener to separate.
b - the second VetoableCompositeViewListener to separate.
Returns:
the remaining VetoableCompositeViewListener structure.

preSelect

public void preSelect(BCSelectEvent event)
Description copied from interface: BaseCompositeListener
This method is called before a Composite is being selected.

Specified by:
preSelect in interface BaseCompositeListener
Parameters:
event - the SelectEvent
See Also:
BCSelectEvent

postSelect

public void postSelect(BCSelectEvent event)
Description copied from interface: BaseCompositeListener
This method is called whenever a Composite has been selected.

Specified by:
postSelect in interface BaseCompositeListener
Parameters:
event - the SelectEvent
See Also:
BCSelectEvent

mouseDown

public void mouseDown(BCMouseEvent event)
Description copied from interface: BaseCompositeListener
This methods is called when a mouse button has been pressed upon a BaseComposite.

Specified by:
mouseDown in interface BaseCompositeListener
Parameters:
event - the BCMouseEvent

mouseUp

public void mouseUp(BCMouseEvent event)
Description copied from interface: BaseCompositeListener
This methods is called when a mouse button has been pressed upon a BaseComposite and it will be released.

Specified by:
mouseUp in interface BaseCompositeListener
Parameters:
event - the BCMouseEvent

mouseEnter

public void mouseEnter(BCMouseEvent event)
Description copied from interface: BaseCompositeListener
This method is called when the mouse enters the BaseComposite. Enter means that the hotspot of the mouse cursor lies within the bounding box of the BaseComposite

Specified by:
mouseEnter in interface BaseCompositeListener
Parameters:
event - the BCMouseEvent

mouseExit

public void mouseExit(BCMouseEvent event)
Description copied from interface: BaseCompositeListener
This method is called when the mouse exits the BaseComposite. Exit means that the hotspot of the mouse cursor lies no longer within the bounding box of the BaseComposite

Specified by:
mouseExit in interface BaseCompositeListener
Parameters:
event - the BCMouseEvent

mouseClick

public void mouseClick(BCMouseEvent event)
Description copied from interface: BaseCompositeListener
This method is called when a mouse button has been pressed and released upon a BaseComposite.

Specified by:
mouseClick in interface BaseCompositeListener
Parameters:
event - the BCMouseEvent

vetoablePreSelect

public void vetoablePreSelect(BCSelectEvent event)
                       throws BaseCompositeEventVetoException
Specified by:
vetoablePreSelect in interface VetoableBaseCompositeListener
Throws:
BaseCompositeEventVetoException

compositeChanged

public void compositeChanged(LineChangedEvent event)
Description copied from interface: CompositeLineListener
This method is called whenever a CompositeLine has been changed but for the change is no specialized callback defined.

Specified by:
compositeChanged in interface CompositeLineListener
Parameters:
event - the LineChangedEvent
See Also:
LineChangedEvent

compositePreManipulating

public void compositePreManipulating(LineManipulationEvent event)
Description copied from interface: CompositeLineListener
This method is called before the manipulation of a CompositeLine starts.

Specified by:
compositePreManipulating in interface CompositeLineListener
Parameters:
event - the LineManipulationEvent event instance
See Also:
LineManipulationEvent

compositeManipulating

public void compositeManipulating(LineManipulationEvent event)
Description copied from interface: 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.

Specified by:
compositeManipulating in interface CompositeLineListener
Parameters:
event - the LineManipulationEvent event instance
See Also:
LineManipulationEvent

compositePostManipulating

public void compositePostManipulating(LineManipulationEvent event)
Description copied from interface: CompositeLineListener
This method is called after a CompositeLine has been manipulated.

Specified by:
compositePostManipulating in interface CompositeLineListener
Parameters:
event - the LineManipulationEvent event instance
See Also:
LineManipulationEvent

compositePreMoving

public void compositePreMoving(LineMoveEvent event)
Description copied from interface: CompositeLineListener
This method is called before a CompositeLine is being moved around.

Specified by:
compositePreMoving in interface CompositeLineListener
Parameters:
event - the LineMoveEvent event instance
See Also:
LineMoveEvent

compositeMoving

public void compositeMoving(LineMoveEvent event)
Description copied from interface: 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.

Specified by:
compositeMoving in interface CompositeLineListener
Parameters:
event - the LineMoveEvent event instance
See Also:
LineMoveEvent

compositePostMoving

public void compositePostMoving(LineMoveEvent event)
Description copied from interface: CompositeLineListener
This method is called after a CompositeLine has been moved.

Specified by:
compositePostMoving in interface CompositeLineListener
Parameters:
event - the LineMoveEvent event instance
See Also:
LineMoveEvent

vetoableCompositePreManipulating

public void vetoableCompositePreManipulating(LineManipulationEvent event)
                                      throws CompositeLineEventVetoException
Description copied from interface: VetoableCompositeLineListener

This method is called before the manipulation of a CompositeLine starts.

Throwing a CompositeLineEventVetoException prevents the CompositeLine against manipulation completely.

Specified by:
vetoableCompositePreManipulating in interface VetoableCompositeLineListener
Parameters:
event - the LineManipulationEvent event instance
Throws:
CompositeLineEventVetoException - is thrown to completely prevent the CompositeLine against manipulation.
See Also:
LineManipulationEvent

vetoableCompositeManipulating

public void vetoableCompositeManipulating(LineManipulationEvent event)
                                   throws CompositeLineEventVetoException
Description copied from interface: VetoableCompositeLineListener

This method is called while a CompositeLine is being manipulated.

Throwing a CompositeLineEventVetoException prevents the CompositeLine against manipulation. For instance this can be used to avoid that a single point of the CompositeLine is being moved to a location that is not acceptable.

Notice that this method is only called while interaction with the CompositeLine is taking place and not when manipulate it by the interface methods.

Specified by:
vetoableCompositeManipulating in interface VetoableCompositeLineListener
Parameters:
event - the LineManipulationEvent event instance
Throws:
CompositeLineEventVetoException
See Also:
LineManipulationEvent

vetoableCompositePreMoving

public void vetoableCompositePreMoving(LineMoveEvent event)
                                throws CompositeLineEventVetoException
Description copied from interface: VetoableCompositeLineListener
This method is called before a CompositeLine is being moved around. Throwing a CompositeLineEventVetoException prevents movement of the CompositeLine completely.

Specified by:
vetoableCompositePreMoving in interface VetoableCompositeLineListener
Parameters:
event - the LineMoveEvent
Throws:
CompositeLineEventVetoException - is thrown to completely prevent the CompositeLine of movement.
See Also:
LineMoveEvent

vetoableCompositeMoving

public void vetoableCompositeMoving(LineMoveEvent event)
                             throws CompositeLineEventVetoException
Description copied from interface: VetoableCompositeLineListener

This method is called while a CompositeLine is being moved around. Throwing a CompositeLineEventVetoException prevents movement of the CompositeLine to the actual position. For instance this can be used to avoid that the CompositeLine is being moved to a location that is not acceptable.

Notice that this method is only called while interaction with the CompositeLine is taking place and not when moving it by the interface methods.

Specified by:
vetoableCompositeMoving in interface VetoableCompositeLineListener
Parameters:
event - the LineMoveEvent
Throws:
CompositeLineEventVetoException - is thrown to prevent the CompositeLine of movement to the current location
See Also:
LineMoveEvent

compositeChanged

public void compositeChanged(ChangedEvent event)
Description copied from interface: CompositeListener
This method is called whenever a Composite has been changed but for the change is no specialized callback defined.

Specified by:
compositeChanged in interface CompositeListener
Parameters:
event - the ChangedEvent
See Also:
ChangedEvent

compositePreMoving

public void compositePreMoving(MoveEvent event)
Description copied from interface: CompositeListener
This method is called before a Composite is being moved around. Throwing a CompositeEventVetoException prevents movement of the Composite completely.

Specified by:
compositePreMoving in interface CompositeListener
Parameters:
event - the LineMoveEvent
See Also:
MoveEvent

compositeMoving

public void compositeMoving(MoveEvent event)
Description copied from interface: 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.

Specified by:
compositeMoving in interface CompositeListener
Parameters:
event - the MoveEvent
See Also:
MoveEvent

compositePostMoving

public void compositePostMoving(MoveEvent event)
Description copied from interface: CompositeListener
This method is called after a Composite has been moved.

Specified by:
compositePostMoving in interface CompositeListener
Parameters:
event - the MoveEvent
See Also:
MoveEvent

compositePreResizing

public void compositePreResizing(ResizeEvent event)
Description copied from interface: CompositeListener
This method is called before a Composite is about to be resized. Throwing a CompositeEventVetoException prevents resizement of the Composite completely.

Specified by:
compositePreResizing in interface CompositeListener
Parameters:
event - the ResizeEvent
See Also:
ResizeEvent

compositeResizing

public void compositeResizing(ResizeEvent event)
Description copied from interface: 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.

Specified by:
compositeResizing in interface CompositeListener
Parameters:
event - the ResizeEvent
See Also:
ResizeEvent

compositePostResizing

public void compositePostResizing(ResizeEvent event)
Description copied from interface: CompositeListener
This method is called after a Composite has been resized.

Specified by:
compositePostResizing in interface CompositeListener
Parameters:
event - the ResizeEvent
See Also:
ResizeEvent

vetoableCompositePreMoving

public void vetoableCompositePreMoving(MoveEvent event)
                                throws CompositeEventVetoException
Description copied from interface: VetoableCompositeListener
This method is called before a Composite is being moved around. Throwing a CompositeEventVetoException prevents movement of the Composite completely.

Specified by:
vetoableCompositePreMoving in interface VetoableCompositeListener
Parameters:
event - the MoveEvent
Throws:
CompositeEventVetoException - is thrown to completely prevent the Composite of movement.
See Also:
MoveEvent

vetoableCompositeMoving

public void vetoableCompositeMoving(MoveEvent event)
                             throws CompositeEventVetoException
Description copied from interface: VetoableCompositeListener

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.

Specified by:
vetoableCompositeMoving in interface VetoableCompositeListener
Parameters:
event - the MoveEvent
Throws:
CompositeEventVetoException - is thrown to prevent the Composite of movement to the current location
See Also:
MoveEvent

vetoableCompositePreResizing

public void vetoableCompositePreResizing(ResizeEvent event)
                                  throws CompositeEventVetoException
Description copied from interface: VetoableCompositeListener
This method is called before a Composite is about to be resized. Throwing a CompositeEventVetoException prevents the Composite against resizement completely.

Specified by:
vetoableCompositePreResizing in interface VetoableCompositeListener
Parameters:
event - the ResizeEvent
Throws:
CompositeEventVetoException - is thrown to completely prevent the Composite of resizement.
See Also:
ResizeEvent

vetoableCompositeResizing

public void vetoableCompositeResizing(ResizeEvent event)
                               throws CompositeEventVetoException
Description copied from interface: VetoableCompositeListener

This method is called while a Composite is being resized. Throwing a CompositeEventVetoException prevents the Composite against resizement 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.

Specified by:
vetoableCompositeResizing in interface VetoableCompositeListener
Parameters:
event - the ResizeEvent
Throws:
CompositeEventVetoException - is thrown to prevent the Composite of resize to the current size
See Also:
ResizeEvent

groupAddedComposite

public void groupAddedComposite(GroupAddCompositeEvent event)
Description copied from interface: CompositeGroupListener
This method is called whenever a Composite has been added to a CompositeGroup. The GroupAddCompositeEvent given by event carries the information a CompositeGroupListener could be interested in.

Specified by:
groupAddedComposite in interface CompositeGroupListener
Parameters:
event - the event that carries the information

groupRemovedComposite

public void groupRemovedComposite(GroupRemoveCompositeEvent event)
Description copied from interface: CompositeGroupListener
This method is called whenever a Composite has been removed from a CompositeGroup. The GroupRemoveCompositeEvent given by event carries the information a CompositeGroupListener could be interested in.

Specified by:
groupRemovedComposite in interface CompositeGroupListener
Parameters:
event - the event that carries the information

groupAddedComposites

public void groupAddedComposites(GroupAddCompositesEvent event)
Description copied from interface: CompositeGroupListener
This method is called whenever a List of Composites has been added to a CompositeGroup. The GroupAddCompositesEvent given by event carries the information a CompositeGroupListener could be interested in.

Specified by:
groupAddedComposites in interface CompositeGroupListener
Parameters:
event - the event that carries the information

groupRemovedComposites

public void groupRemovedComposites(GroupRemoveCompositesEvent event)
Description copied from interface: CompositeGroupListener
This method is called whenever a List of Composites has been removed from a CompositeGroup. The GroupRemoveCompositesEvent given by event carries the information a CompositeGroupListener could be interested in.

Specified by:
groupRemovedComposites in interface CompositeGroupListener
Parameters:
event - the event that carries the information

groupSelectionChanged

public void groupSelectionChanged(GroupSelectionChangeEvent event)
Description copied from interface: CompositeGroupListener
This method is called whenever the selection within the CompositeGroup has been changed. The GroupSelectionChangeEvent given by event carries the information a CompositeGroupListener could be interested in.

Specified by:
groupSelectionChanged in interface CompositeGroupListener
Parameters:
event - the event that carries the information

groupCompositeOrderChanged

public void groupCompositeOrderChanged(GroupCompositeOrderChangeEvent event)
Description copied from interface: CompositeGroupListener
This method is called whenever the internal order of BaseComposite objects changes.

Specified by:
groupCompositeOrderChanged in interface CompositeGroupListener
Parameters:
event - the corresponding GroupCompositeOrderChangeEvent event.

groupFoldStatePreChange

public void groupFoldStatePreChange(GroupFoldStateChange event)
Description copied from interface: CompositeGroupListener
This method is called whenever the state of folding of a CompositeGroup is up to be changed.

Specified by:
groupFoldStatePreChange in interface CompositeGroupListener
Parameters:
event - the event that carries the information.

groupFoldStateChanged

public void groupFoldStateChanged(GroupFoldStateChange event)
Description copied from interface: CompositeGroupListener
This method is called whenever the state of folding of a CompositeGroup has been changed. The GroupFoldStateChange event given by event carries the information a CompositeGroupListener could be interested in.

Specified by:
groupFoldStateChanged in interface CompositeGroupListener
Parameters:
event - the event that carries the information.

groupSizeAdjusted

public void groupSizeAdjusted(GroupSizeAdjustmentEvent event)
Description copied from interface: CompositeGroupListener
This method is called whenever the size of a CompositeGroup has been changed by the CompositeGroup itself.
This event is related to the size-adjustment functionality of the CompositeGroup.

Specified by:
groupSizeAdjusted in interface CompositeGroupListener
Parameters:
event - the event that carries the information.

viewAddedComposite

public void viewAddedComposite(ViewAddCompositeEvent event)
Description copied from interface: CompositeViewListener
Called whenever a Composite was added.

Specified by:
viewAddedComposite in interface CompositeViewListener
Parameters:
event - the corresponding event.

viewAddedComposites

public void viewAddedComposites(ViewAddCompositesEvent event)
Description copied from interface: CompositeViewListener
Called whenever multiple Composites are added.

Specified by:
viewAddedComposites in interface CompositeViewListener
Parameters:
event - the corresponding event.

viewRemovedComposite

public void viewRemovedComposite(ViewRemoveCompositeEvent event)
Description copied from interface: CompositeViewListener
Called whenever a Composite was removed.

Specified by:
viewRemovedComposite in interface CompositeViewListener
Parameters:
event - the corresponding event.

viewRemovedComposites

public void viewRemovedComposites(ViewRemoveCompositesEvent event)
Description copied from interface: CompositeViewListener
Called whenever multiple Composites were remmoved.

Specified by:
viewRemovedComposites in interface CompositeViewListener
Parameters:
event - the corresponding event.

viewSelectionChanged

public void viewSelectionChanged(ViewSelectionChangeEvent event)
Description copied from interface: CompositeViewListener
Called whenever the selection of the view changed.

Specified by:
viewSelectionChanged in interface CompositeViewListener
Parameters:
event - the corresponding ViewSelectionChangeEvent event.

viewCompositeOrderChanged

public void viewCompositeOrderChanged(ViewCompositeOrderChangeEvent event)
Description copied from interface: CompositeViewListener
Called whenever the internal order of BaseComposite objects changes.

Specified by:
viewCompositeOrderChanged in interface CompositeViewListener
Parameters:
event - the corresponding ViewCompositeOrderChangeEvent event.

viewParameterChanged

public void viewParameterChanged(ViewParameterChangeEvent event)
Description copied from interface: CompositeViewListener
Called whenever a parameter of the view changed.

Specified by:
viewParameterChanged in interface CompositeViewListener
Parameters:
event - the corresponding ViewParameterChangeEvent event.

viewModeChanged

public void viewModeChanged(ViewModeChangeEvent event)
Description copied from interface: CompositeViewListener
Called whenever the mode of the CompositeView changed.

Specified by:
viewModeChanged in interface CompositeViewListener
Parameters:
event - the corresponding ViewModeChangeEvent event.

viewScrolled

public void viewScrolled(ViewScrolledEvent event)
Description copied from interface: CompositeViewListener
Called if the view position is changed during an action.

Specified by:
viewScrolled in interface CompositeViewListener
Parameters:
event - the corresponding ViewScrollingEvent event.


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