|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompositeComponent
ModelComponent which contains sub-components.
Nested Class Summary | |
---|---|
static class |
CompositeComponent.NavpanelDisplay
Specifies how the a composite component should be displayed in a navigation panel. |
Nested classes/interfaces inherited from interface artisynth.core.modelbase.ModelComponent |
---|
ModelComponent.NavpanelVisibility |
Method Summary | |
---|---|
void |
componentChanged(ComponentChangeEvent e)
Notifies this composite component that a change has occured within one or more of its descendants. |
ModelComponent |
findComponent(java.lang.String path)
Recursively searches for a sub-component of this ModelComponent, identified by a path of component names. |
ModelComponent |
get(int idx)
Returns a specific sub-component of this ModelComponent, identified by index. |
ModelComponent |
get(java.lang.String nameOrNumber)
Returns a specific sub-component of this ModelComponent, identified by name or string representation of the sub-component's number |
ModelComponent |
getByNumber(int num)
Returns a specific sub-component of this ModelComponent, identified by number. |
CompositeComponent.NavpanelDisplay |
getNavpanelDisplay()
Returns the DisplayMode for this component. |
int |
getNumberLimit()
Returns the current upper limit for numbers among all sub-components in this composite. |
boolean |
hierarchyContainsReferences()
Returns true if the component hierarchy formed by this component and its descendents is closed with respect to references. |
int |
indexOf(ModelComponent comp)
Returns the index of a specified sub-component, or -1 if that the component is not present. |
int |
numComponents()
Returns the number of components in this CompositeComponent. |
void |
updateNameMap(java.lang.String newName,
java.lang.String oldName,
ModelComponent comp)
|
Methods inherited from interface artisynth.core.modelbase.ModelComponent |
---|
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences |
Methods inherited from interface maspack.properties.HasProperties |
---|
getAllPropertyInfo, getProperty |
Methods inherited from interface maspack.properties.HierarchyNode |
---|
getChildren, hasChildren |
Methods inherited from interface maspack.util.Scannable |
---|
isWritable, write |
Method Detail |
---|
ModelComponent get(java.lang.String nameOrNumber)
nameOrNumber
- name or number of the sub-component
ModelComponent get(int idx)
get
in interface IndexedComponentList
idx
- index of the sub-component
ModelComponent getByNumber(int num)
num
- number of the sub-component
int numComponents()
numComponents
in interface IndexedComponentList
int indexOf(ModelComponent comp)
ModelComponent findComponent(java.lang.String path)
path
- path leading to the sub-component
int getNumberLimit()
CompositeComponent.NavpanelDisplay getNavpanelDisplay()
void componentChanged(ComponentChangeEvent e)
This method should propagate the notification up the component hierarchy
by calling notifyParentOfChange
.
componentChanged
in interface ComponentChangeListener
e
- optional argument giving specific information about the changevoid updateNameMap(java.lang.String newName, java.lang.String oldName, ModelComponent comp)
boolean hierarchyContainsReferences()
In particular, this means that one does not need to search outside the hierarchy when looking for dependencies.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |