com.tensegrity.composite.event
Class CompositeAdapter

java.lang.Object
  extended bycom.tensegrity.composite.event.BaseCompositeAdapter
      extended bycom.tensegrity.composite.event.CompositeAdapter
All Implemented Interfaces:
BaseCompositeListener, CompositeListener, EventListenerTag

public class CompositeAdapter
extends BaseCompositeAdapter
implements CompositeListener

The CompositeAdapter class implements the CompositeListener interface and overrides all methods declared there with methods which have no functionality inside. So that, when creating a CompositeListener not all of the methods have to be overridden, only the methods which are from interest.

Version:
$Id: CompositeAdapter.java,v 1.10 2005/08/11 09:27:55 MichaelKegel Exp $
Author:
MichaelKegel
See Also:
CompositeListener

Constructor Summary
CompositeAdapter()
          Constructor for CompositeAdapter.
 
Method Summary
 void compositeChanged(ChangedEvent event)
          This method is called whenever a Composite has been changed but for the change is no specialized callback defined.
 void compositeMoving(MoveEvent event)
           This method is called while a Composite is being moved around.
 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 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.
 
Methods inherited from class com.tensegrity.composite.event.BaseCompositeAdapter
mouseClick, mouseDown, mouseEnter, mouseExit, mouseUp, postSelect, preSelect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.tensegrity.composite.event.BaseCompositeListener
mouseClick, mouseDown, mouseEnter, mouseExit, mouseUp, postSelect, preSelect
 

Constructor Detail

CompositeAdapter

public CompositeAdapter()
Constructor for CompositeAdapter.

Method Detail

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


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