com.tensegrity.composite
Class CompositeGroupOperations

java.lang.Object
  extended bycom.tensegrity.composite.CompositeGroupOperations

public class CompositeGroupOperations
extends java.lang.Object

The CompositeGroupOperations class provides a set of functionalities when working with CompositeGroup objects.

Version:
$Id$
Author:
MKegel

Method Summary
static java.util.Map recursiveEventDisable_AttributesChanged(CompositeGroup compositegroup)
           
static java.util.Map recursiveEventDisable_SelectionChange(CompositeGroup compositegroup)
           Recursively disables selection-change events and returns a Map that is filled with Lists of the currently selected BaseComposite objects.
static void recursiveEventEnable_AttributesChanged(CompositeGroup compositegroup, java.util.Map mappedStatesOld)
           
static void recursiveEventEnable_SelectionChange(CompositeGroup compositegroup, java.util.Map mappedSelectionOld)
           Recursively enables beforehand disabled selection-change events and raises those events if a corresponding List with the old selected BaseComposite objects can be found in the Map given by mappedSelectionOld.
static void recursiveSelection(CompositeGroup compositegroup, boolean selection)
           Recursively sets all the BaseComposite objects that are contained in the specified CompositeGroup to the desired selection-state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

recursiveEventDisable_SelectionChange

public static final java.util.Map recursiveEventDisable_SelectionChange(CompositeGroup compositegroup)

Recursively disables selection-change events and returns a Map that is filled with Lists of the currently selected BaseComposite objects.
The returned Map is organized such that a certain BaseCompositeContainer instance is the key for its List of former selected BaseComposite objects.
If the selection-change event was disabled beforehand no entry is created in the Map.

Parameters:
compositegroup - the CompositeGroup to process.
Returns:
a Map filled with Lists of the currently selected BaseComposite objects.
See Also:
recursiveEventEnable_SelectionChange(CompositeGroup, Map)

recursiveEventEnable_SelectionChange

public static final void recursiveEventEnable_SelectionChange(CompositeGroup compositegroup,
                                                              java.util.Map mappedSelectionOld)

Recursively enables beforehand disabled selection-change events and raises those events if a corresponding List with the old selected BaseComposite objects can be found in the Map given by mappedSelectionOld.
The Map should be organized such that the BaseCompositeContainer instance is the key for the List of former selected BaseComposite objects.

Parameters:
compositegroup - the CompositeGroup to process.
mappedSelectionOld - used to find the List with the former selected BaseComposite objects of a certain BaseCompositeContainer.
See Also:
CompositeViewOperations.recursiveEventDisable_SelectionChange(CompositeView)

recursiveSelection

public static final void recursiveSelection(CompositeGroup compositegroup,
                                            boolean selection)

Recursively sets all the BaseComposite objects that are contained in the specified CompositeGroup to the desired selection-state.

BaseComposite objects that are nested in embedded BaseCompositeContainer objects are processed as well.

Parameters:
compositegroup - the CompositeGroup to process.
See Also:
recursiveEventDisable_SelectionChange(CompositeGroup), recursiveEventEnable_SelectionChange(CompositeGroup, Map)

recursiveEventDisable_AttributesChanged

public static final java.util.Map recursiveEventDisable_AttributesChanged(CompositeGroup compositegroup)

recursiveEventEnable_AttributesChanged

public static final void recursiveEventEnable_AttributesChanged(CompositeGroup compositegroup,
                                                                java.util.Map mappedStatesOld)


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