com.tensegrity.composite.event
Interface CompositeListener

All Superinterfaces:
BaseCompositeListener, EventListenerTag
All Known Subinterfaces:
EventMediator, EventMediatorListener, ModifiedVisualGraphListener
All Known Implementing Classes:
CompositeAdapter, CompositeEventMultiplexer, EventMediatorAdapter, ModifiedVisualGraphAdapter, TreeOutliner

public interface CompositeListener
extends BaseCompositeListener

The CompositeListener interface defines an object that can be notified about events that are generated by a Composite.

Version:
$Id: CompositeListener.java,v 1.11 2003/05/21 11:25:54 MichaelKegel Exp $
Author:
MichaelKegel
See Also:
EventListenerTag, Composite, 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 interface com.tensegrity.composite.event.BaseCompositeListener
mouseClick, mouseDown, mouseEnter, mouseExit, mouseUp, postSelect, preSelect
 

Method Detail

compositeChanged

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

Parameters:
event - the ChangedEvent
See Also:
ChangedEvent

compositePreMoving

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

Parameters:
event - the LineMoveEvent
See Also:
MoveEvent

compositeMoving

public void compositeMoving(MoveEvent event)

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.

Parameters:
event - the MoveEvent
See Also:
MoveEvent

compositePostMoving

public void compositePostMoving(MoveEvent event)
This method is called after a Composite has been moved.

Parameters:
event - the MoveEvent
See Also:
MoveEvent

compositePreResizing

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

Parameters:
event - the ResizeEvent
See Also:
ResizeEvent

compositeResizing

public void compositeResizing(ResizeEvent event)

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.

Parameters:
event - the ResizeEvent
See Also:
ResizeEvent

compositePostResizing

public void compositePostResizing(ResizeEvent event)
This method is called after a Composite has been resized.

Parameters:
event - the ResizeEvent
See Also:
ResizeEvent


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