|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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>
JointGroups give a hierarchical view of a set of Joints. This is especially useful in the user interface for creating a Tree of Joints. A JointGroup provides a name, a list of Joints and a list of child JointGroups.
| Field Summary | |
|---|---|
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 |
| Method Summary | |
|---|---|
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 |
| Methods inherited from interface org.robokind.api.common.property.PropertyChangeSource |
|---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
static 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
| Method Detail |
|---|
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 add
void 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 JointIds
J getJoint(int index)
index - index of the desired Joint
List<J> getJoints()
int getJointCount()
void addGroup(G group)
group - child JointGroup to add
void 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 remove
int getGroupCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||