|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.loaders.c3d.C3DParameterGroup
public class C3DParameterGroup
The representation of a single group of parameters.
A parameter group is described by a name and contains a set of individual parameter values. The definition of the file format can be found at: http://www.c3d.org/
Constructor Summary | |
---|---|
C3DParameterGroup(java.lang.String name,
boolean locked,
int id,
java.lang.String desc)
Construct a new group that represents the given name |
Method Summary | |
---|---|
void |
addParameter(C3DParameter param)
Add a new parameter to the group. |
java.lang.String |
getDescription()
Get the description used for this group. |
int |
getId()
Get the assigned ID of this parameter. |
java.lang.String |
getName()
Get the name of the group |
C3DParameter |
getParameter(java.lang.String name)
Get a parameter description based on the name string. |
C3DParameter[] |
getParameters()
Get all of the parameters for this group. |
int |
hashCode()
Generate a hashCode for this group. |
boolean |
isLocked()
Check to see if this parameter is marked as being locked (not editable). |
void |
removeParameter(C3DParameter param)
Remove the given parameter from this group. |
void |
setDescription(java.lang.String desc)
Set the description string. |
void |
setLocked(boolean state)
Changed the locked state of the object. |
java.lang.String |
toString()
Generate a string representation of this header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public C3DParameterGroup(java.lang.String name, boolean locked, int id, java.lang.String desc)
name
- The name this group representslocked
- true if this is a locked groupid
- The ID of this groupdesc
- The description used on the group. May be nullMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getName()
public boolean isLocked()
public void setLocked(boolean state)
state
- true to make the object lockedpublic int getId()
public java.lang.String getDescription()
public void setDescription(java.lang.String desc) throws java.lang.IllegalStateException
desc
- The new description string to use
java.lang.IllegalStateException
- The object is locked and cannot be
changedpublic void addParameter(C3DParameter param) throws java.lang.IllegalStateException, java.lang.IllegalArgumentException
param
- The new completely filled out parameter definition
java.lang.IllegalStateException
- The object is locked and cannot be
changed
java.lang.IllegalArgumentException
- The parameter ID indicates that it is
not a child of this group or there is a parameter of this name
already addedpublic void removeParameter(C3DParameter param) throws java.lang.IllegalStateException
param
- The parameter object to remove
java.lang.IllegalStateException
- The object is locked and cannot be
changedpublic C3DParameter getParameter(java.lang.String name)
name
- The name string to go looking for
public C3DParameter[] getParameters()
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |