com.tensegrity.composite
Class CompositeSelectionUtilities

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

public class CompositeSelectionUtilities
extends java.lang.Object

Provides some static utility methods for dealing with Composite selections.

Version:
$Id: CompositeSelectionUtilities.java,v 1.7 2004/05/03 14:48:52 MichaelKegel Exp $
Author:
MichaelKegel

Method Summary
static boolean checkForSubSelection(BaseComposite basecomposite)
          Returns a boolean that indicates whether the BaseComposite given by basecomposite has a subselection or not.
static boolean checkForSubSelection(CompositeGroup compositegroup)
          Returns a boolean that indicates whether the CompositeGroup given by compositegroup has a subselection or not.
static boolean checkForSubSelection(CompositeView compositeview)
          Returns a boolean that indicates whether the CompositeView given by compositeview has a subselection or not.
static BaseComposite getFirstSelectedBaseComposite(CompositeGroup compositegroup)
          Returns the first selected BaseComposite in the given CompositeGroup.
static BaseComposite getFirstSelectedBaseComposite(CompositeView compositeview)
          Returns the first selected BaseComposite of the given CompositeView.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFirstSelectedBaseComposite

public static final BaseComposite getFirstSelectedBaseComposite(CompositeView compositeview)
Returns the first selected BaseComposite of the given CompositeView.

Parameters:
compositeview - the CompositeView to check for the first selected BaseComposite.
Returns:
the first selected BaseComposite.

getFirstSelectedBaseComposite

public static final BaseComposite getFirstSelectedBaseComposite(CompositeGroup compositegroup)
Returns the first selected BaseComposite in the given CompositeGroup.

Parameters:
compositegroup - the CompositeGroup to check for the first selected BaseComposite.
Returns:
the first selected BaseComposite.

checkForSubSelection

public static final boolean checkForSubSelection(BaseComposite basecomposite)
Returns a boolean that indicates whether the BaseComposite given by basecomposite has a subselection or not.

Parameters:
basecomposite - the BaseComposite to check.
Returns:
true, if the there is a subselection within the given BaseComposite.

checkForSubSelection

public static final boolean checkForSubSelection(CompositeGroup compositegroup)
Returns a boolean that indicates whether the CompositeGroup given by compositegroup has a subselection or not.

Parameters:
compositegroup - the CompositeGroup to check.
Returns:
true, if the there is a subselection within the given CompositeGroup.

checkForSubSelection

public static final boolean checkForSubSelection(CompositeView compositeview)
Returns a boolean that indicates whether the CompositeView given by compositeview has a subselection or not.

Parameters:
compositeview - the CompositeView to check.
Returns:
true, if the there is a subselection within the given CompositeView.


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