Id - Joint Id Type used by this JointGroupG - JointGroup Type of child JointGroupsJ - Joint Type used by this JointGrouppublic interface JointGroup<Id,G extends JointGroup,J extends Joint> extends PropertyChangeSource
| Modifier and Type | Field and Description |
|---|---|
static String |
PROP_ADD_JOINT_GROUP
Property String for adding a child JointGroup
|
static String |
PROP_ADD_JOINT_ID
Property String for adding a JointId
|
static String |
PROP_ENABLED
Property String for enabled
|
static String |
PROP_JOINT_CHANGED
Property String for changing a joint
|
static String |
PROP_NAME
Property String for name
|
static String |
PROP_REMOVE_JOINT_GROUP
Property String for removing a child JointGroup
|
static String |
PROP_REMOVE_JOINT_ID
Property String for removing a JointId
|
static String |
PROP_STRUCTURE_CHANGED
Property String for changing the structure of this JointGroup
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(G group)
Add a child JointGroup.
|
void |
addJointId(Id jointId)
Adds a JointId to this JointGroup.
|
boolean |
getEnabled()
Returns the enabled state
|
int |
getGroupCount()
Return the number of child JointGroups.
|
J |
getJoint(int index)
Returns the Joint at the given index.
|
int |
getJointCount()
Returns the number of JointIds for this JointGroup.
|
G |
getJointGroup(int index)
Returns the child JointGroup at the given index.
|
List<G> |
getJointGroups()
Returns a List of the children JointGroups.
|
Id |
getJointId(int index)
Returns the JointId at the given index.
|
List<Id> |
getJointIds()
Returns a List of JointIds for this JointGroup
|
List<J> |
getJoints()
Returns the Joints belonging to this JointGroup.
|
String |
getName()
Returns the name to use
|
void |
insertGroup(G group,
int index)
Add a child JointGroup at the given index.
|
void |
insertJointId(Id jointId,
int index)
Adds a JointId to this JointGroup at the given index.
|
void |
removeGroup(G group)
Removes a child JointGroup.
|
void |
removeGroupAt(int index)
Removes a child JointGroup 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 enabled state of the JointGroup
|
void |
setName(String name)
Sets the name of the JointGroup
|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListenerstatic final String PROP_NAME
static final String PROP_ENABLED
static final String PROP_ADD_JOINT_ID
static final String PROP_REMOVE_JOINT_ID
static final String PROP_JOINT_CHANGED
static final String PROP_ADD_JOINT_GROUP
static final String PROP_REMOVE_JOINT_GROUP
static final String PROP_STRUCTURE_CHANGED
void setName(String name)
name - new name to useString getName()
void setEnabled(boolean enabled)
enabled - enabled state to useboolean getEnabled()
void addJointId(Id jointId)
jointId - the id to addvoid insertJointId(Id jointId, int index)
jointId - the id to addindex - index at which to insert the Joint Idvoid removeJointId(Id jointId)
jointId - id to removevoid removeJointIdAt(int index)
index - position of the JointId in this JointGroup's JointIdsList<Id> getJointIds()
Id getJointId(int index)
index - position of the JointId in the JointGroup's JointIdsJ getJoint(int index)
index - index of the desired JointList<J> getJoints()
int getJointCount()
void addGroup(G group)
group - child JointGroup to addvoid insertGroup(G group, int index)
group - child JointGroup to addindex - position to add the childvoid removeGroup(G group)
group - the child to removevoid removeGroupAt(int index)
index - position of the child to removeList<G> getJointGroups()
G getJointGroup(int index)
index - position to the child to removeint getGroupCount()
Copyright © 2011-2014. All Rights Reserved.