Id - type used to identify JointsGroupConfig - JointGroupConfig used to create children JointGroupspublic class DefaultJointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>> extends PropertyChangeNotifier implements JointGroupConfig<Id,GroupConfig>
PROP_ADD_JOINT_GROUP, PROP_ADD_JOINT_ID, PROP_ENABLED, PROP_NAME, PROP_REMOVE_JOINT_GROUP, PROP_REMOVE_JOINT_ID| Constructor and Description |
|---|
DefaultJointGroupConfig(String name)
Creates an empty DefaultJointGroupConfig with the given name.
|
DefaultJointGroupConfig(String name,
List<? extends Id> ids,
List<? extends GroupConfig> groups)
Creates a new DefaultJointGroupConfig with the given values
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(GroupConfig group)
Add a child JointGroupConfig.
|
void |
addJointId(Id jointId)
Adds a JointId to the JointGroupConfig
|
boolean |
getEnabled()
Returns the default enabled state
|
int |
getGroupCount()
Return the number of child JointGroupConfigs.
|
int |
getJointCount()
Returns the number of JointIds for this JointGroupConfig.
|
GroupConfig |
getJointGroup(int index)
Returns the child JointGroupConfig at the given index.
|
List<GroupConfig> |
getJointGroups()
Returns a List of the children JointGroupConfigs.
|
Id |
getJointId(int index)
Returns the JointId at the given index.
|
List<Id> |
getJointIds()
Returns a List of JointIds for this JointGroup
|
String |
getName()
Returns the name to use
|
void |
insertGroup(GroupConfig group,
int index)
Add a child JointGroupConfig at the given index.
|
void |
insertJointId(Id jointId,
int index)
Adds a JointId at the given index
|
void |
removeGroup(GroupConfig group)
Removes a child JointGroupConfig.
|
void |
removeGroupAt(int index)
Removes a child JointGroupConfig at the given index.
|
void |
removeJointId(Id jointId)
Removes a JointId
|
void |
removeJointIdAt(int index)
Removes the JointId with the given index.
|
void |
setEnabled(boolean enabled)
Sets the default enabled state of the JointGroup
|
void |
setName(String name)
Sets the name of the JointGroup
|
String |
toString() |
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, clearListeners, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerpublic DefaultJointGroupConfig(String name)
name - name for the JointGrouppublic DefaultJointGroupConfig(String name, List<? extends Id> ids, List<? extends GroupConfig> groups)
name - name for the JointGroupids - initial JointIdsgroups - initial child JointGroupConfigspublic void setName(String name)
JointGroupConfigsetName in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>name - new name to usepublic String getName()
JointGroupConfiggetName in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>public void setEnabled(boolean enabled)
JointGroupConfigsetEnabled in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>enabled - default enabled state to usepublic boolean getEnabled()
JointGroupConfiggetEnabled in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>public void addJointId(Id jointId)
JointGroupConfigaddJointId in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>jointId - id to addpublic void insertJointId(Id jointId, int index)
JointGroupConfiginsertJointId in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>jointId - id to addindex - index for the jointIdpublic void removeJointId(Id jointId)
JointGroupConfigremoveJointId in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>jointId - id to removepublic void removeJointIdAt(int index)
JointGroupConfigremoveJointIdAt in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>index - position of the JointId in this JointGroupConfig's JointIdspublic List<Id> getJointIds()
JointGroupConfiggetJointIds in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>public Id getJointId(int index)
JointGroupConfiggetJointId in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>index - position of the JointId in the JointGroupConfig's JointIdspublic int getJointCount()
JointGroupConfiggetJointCount in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>public void addGroup(GroupConfig group)
JointGroupConfigaddGroup in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>group - child JointGroupConfig to addpublic void insertGroup(GroupConfig group, int index)
JointGroupConfiginsertGroup in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>group - child JointGroupConfig to addindex - position to add the childpublic void removeGroup(GroupConfig group)
JointGroupConfigremoveGroup in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>group - the child to removepublic void removeGroupAt(int index)
JointGroupConfigremoveGroupAt in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>index - position of the child to removepublic List<GroupConfig> getJointGroups()
JointGroupConfiggetJointGroups in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>public GroupConfig getJointGroup(int index)
JointGroupConfiggetJointGroup in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>index - position to the child to removepublic int getGroupCount()
JointGroupConfiggetGroupCount in interface JointGroupConfig<Id,GroupConfig extends JointGroupConfig<Id,? extends GroupConfig>>Copyright © 2011-2014. All Rights Reserved.