com.tensegrity.composite.event.group
Class GroupSizeAdjustmentEvent

java.lang.Object
  extended bycom.tensegrity.composite.event.group.AbstractCompositeGroupEvent
      extended bycom.tensegrity.composite.event.group.GroupSizeAdjustmentEvent
All Implemented Interfaces:
CompositeGroupEvent, CompositeRootEvent

public class GroupSizeAdjustmentEvent
extends AbstractCompositeGroupEvent

A GroupSizeAdjustmentEvent occurs whenever a size adjustment is applied to a CompositeGroup.

Version:
$Id: GroupSizeAdjustmentEvent.java,v 1.6 2006/02/10 16:24:28 MichaelKegel Exp $
Author:
MKegel
See Also:
CompositeGroupEvent, CompositeGroupListener

Field Summary
 
Fields inherited from class com.tensegrity.composite.event.group.AbstractCompositeGroupEvent
composite, compositeGroup, composites
 
Constructor Summary
GroupSizeAdjustmentEvent(CompositeGroup compositegroup, CompositeGroupState stateOld, CompositeGroupState stateCurrent)
          Constructor for GroupSizeAdjustmentEvent.
 
Method Summary
 CompositeGroupState getStateCurrent()
          Returns a CompositeGroupState object that reflects the state of the CompositeGroup after the size adjustment has taken place.
 CompositeGroupState getStateOld()
          Returns a CompositeGroupState object that reflects the state of the CompositeGroup before the size adjustment has taken place.
 java.lang.String toString()
           
 
Methods inherited from class com.tensegrity.composite.event.group.AbstractCompositeGroupEvent
getCompositeGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupSizeAdjustmentEvent

public GroupSizeAdjustmentEvent(CompositeGroup compositegroup,
                                CompositeGroupState stateOld,
                                CompositeGroupState stateCurrent)
Constructor for GroupSizeAdjustmentEvent. The CompositeGroup the size adjustment has been occured on should be given by compositegroup. The CompositeGroupState given by stateOld should reflect the state of the given CompositeGroup instance before the size adjustment has taken place and the CompositeGroupState given by stateCurrent should reflect the state of the CompositeGroup after the size adjustment.

Parameters:
compositegroup - the CompositeGroup which size has been adjustet
stateOld - the state of the CompositeGroup before the size adjustment
stateCurrent - the state of the CompositeGroup after the size adjustment
Method Detail

getStateOld

public CompositeGroupState getStateOld()
Returns a CompositeGroupState object that reflects the state of the CompositeGroup before the size adjustment has taken place.

Returns:
CompositeGroupState the state of the CompositeGroup before the size adjustment

getStateCurrent

public CompositeGroupState getStateCurrent()
Returns a CompositeGroupState object that reflects the state of the CompositeGroup after the size adjustment has taken place.

Returns:
CompositeGroupState the state of the CompositeGroup after the size adjustment

toString

public java.lang.String toString()


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