artisynth.core.modelbase
Class ReferenceList

java.lang.Object
  extended by artisynth.core.modelbase.ModelComponentBase
      extended by artisynth.core.modelbase.ComponentList<ReferenceComponent>
          extended by artisynth.core.modelbase.ReferenceList
All Implemented Interfaces:
ComponentChangeListener, ComponentListView<ReferenceComponent>, CompositeComponent, IndexedComponentList, ModelComponent, MutableCompositeComponent<ReferenceComponent>, ParameterizedClass, java.lang.Cloneable, java.lang.Iterable<ReferenceComponent>, java.util.Collection<ReferenceComponent>, HasProperties, HierarchyNode, ListView<ReferenceComponent>, Scannable

public class ReferenceList
extends ComponentList<ReferenceComponent>


Nested Class Summary
 
Nested classes/interfaces inherited from interface artisynth.core.modelbase.CompositeComponent
CompositeComponent.NavpanelDisplay
 
Nested classes/interfaces inherited from interface artisynth.core.modelbase.ModelComponent
ModelComponent.NavpanelVisibility
 
Field Summary
static PropertyList myProps
           
 
Fields inherited from class artisynth.core.modelbase.ComponentList
DEFAULT_NAVPANEL_DISPLAY
 
Fields inherited from class artisynth.core.modelbase.ModelComponentBase
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
 
Constructor Summary
ReferenceList()
           
ReferenceList(java.lang.String name)
           
 
Method Summary
 void addReference(ModelComponent ref)
           
 void addReferences(java.util.Collection<ModelComponent> refs)
           
 boolean containsReference(ModelComponent ref)
           
 PropertyList getAllPropertyInfo()
          Returns a list giving static information about all properties exported by this object.
 ModelComponent getReference(int idx)
           
 void getReferences(java.util.Collection<ModelComponent> col)
           
 boolean hasParameterizedType()
          Returns true if this class explicitly utilizes a parameterized type.
 int indexOfReference(ModelComponent ref)
           
 boolean removeReference(ModelComponent ref)
           
 boolean removeReferences(java.util.Collection<ModelComponent> refs)
           
 
Methods inherited from class artisynth.core.modelbase.ComponentList
add, add, addAll, addComponents, addFixed, addNumbered, clear, clone, componentChanged, contains, contains, containsAll, copy, ensureCapacity, findComponent, get, get, getByNumber, getChildren, getNavpanelDisplay, getNumberLimit, getShortName, getTypeParameter, hasChildren, hierarchyContainsReferences, indexOf, isEmpty, iterator, nextComponentNumber, numComponents, postscan, remove, remove, removeAll, removeAll, removeComponents, retainAll, scan, setNavpanelDisplay, setNumberingStartAtOne, setShortName, size, toArray, toArray, updateNameMap
 
Methods inherited from class artisynth.core.modelbase.ModelComponentBase
checkFlag, checkName, checkNameUniqueness, clearFlag, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasState, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface artisynth.core.modelbase.ComponentListView
getName
 
Methods inherited from interface artisynth.core.modelbase.ModelComponent
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences
 
Methods inherited from interface maspack.properties.HasProperties
getProperty
 
Methods inherited from interface maspack.util.Scannable
isWritable, write
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

myProps

public static PropertyList myProps
Constructor Detail

ReferenceList

public ReferenceList()

ReferenceList

public ReferenceList(java.lang.String name)
Method Detail

getAllPropertyInfo

public PropertyList getAllPropertyInfo()
Description copied from interface: HasProperties
Returns a list giving static information about all properties exported by this object.

Specified by:
getAllPropertyInfo in interface HasProperties
Overrides:
getAllPropertyInfo in class ComponentList<ReferenceComponent>
Returns:
static information for all exported properties

hasParameterizedType

public boolean hasParameterizedType()
Description copied from interface: ParameterizedClass
Returns true if this class explicitly utilizes a parameterized type.

Specified by:
hasParameterizedType in interface ParameterizedClass
Overrides:
hasParameterizedType in class ComponentList<ReferenceComponent>

addReference

public void addReference(ModelComponent ref)

addReferences

public void addReferences(java.util.Collection<ModelComponent> refs)

getReference

public ModelComponent getReference(int idx)

containsReference

public boolean containsReference(ModelComponent ref)

indexOfReference

public int indexOfReference(ModelComponent ref)

getReferences

public void getReferences(java.util.Collection<ModelComponent> col)

removeReference

public boolean removeReference(ModelComponent ref)

removeReferences

public boolean removeReferences(java.util.Collection<ModelComponent> refs)