|
j3d.org Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.j3d.loaders.c3d.C3DParameter
public abstract class C3DParameter
Base representation of a single parameter.
There are different data types of parameters, and this base class represents all the types, from which individual data types are derived.
| Field Summary | |
|---|---|
static int |
BYTE_TYPE
This parameter type is a byte type |
static int |
CHAR_TYPE
This parameter type is a character (string) type |
protected java.lang.Object |
data
The raw data array/object storage. |
protected java.lang.String |
description
The description string, if set |
protected int[] |
dimensions
The dimensions of this parameter data |
static int |
FLOAT_TYPE
This parameter type is a float type |
protected int |
id
The integer ID value of this parameter |
static int |
INT_TYPE
This parameter type is a integer type |
protected boolean |
locked
Indicating if the parameter is locked |
protected static java.lang.String |
LOCKED_PARAM_MSG
Message when attempting to write to a locked group |
protected java.lang.String |
name
The name of the parameter |
| Constructor Summary | |
|---|---|
protected |
C3DParameter(int type,
java.lang.String name,
boolean locked,
int id)
Construct a new group that represents the given name |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Compare this parameter for equality to the given object. |
java.lang.String |
getDescription()
Get the description used for this group. |
int[] |
getDimensions()
Get the descriptions of the size of the dimensions of the object. |
int |
getId()
Get the assigned ID of this parameter. |
java.lang.String |
getName()
Get the name of the parameter. |
int |
getType()
Get the base data type of this parameter. |
java.lang.Object |
getValue()
Get the data representation object. |
boolean |
isLocked()
Check to see if this parameter is marked as being locked (not editable). |
int |
numDimensions()
Get the number of dimensions that this object has. |
void |
setDescription(java.lang.String desc)
Set the description string. |
void |
setLocked(boolean state)
Changed the locked state of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CHAR_TYPE
public static final int BYTE_TYPE
public static final int INT_TYPE
public static final int FLOAT_TYPE
protected static final java.lang.String LOCKED_PARAM_MSG
protected java.lang.String name
protected boolean locked
protected int id
protected java.lang.String description
protected int[] dimensions
protected java.lang.Object data
| Constructor Detail |
|---|
protected C3DParameter(int type,
java.lang.String name,
boolean locked,
int id)
name - The name this parameter representslocked - true if this is a locked groupid - The ID of this parameter| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The object instance of compare against
public int getType()
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 java.lang.Object getValue()
public int numDimensions()
public int[] getDimensions()
numDimensions(). Each index in the array
contains the number of elements in that dimension. Dimensions are
implicitly set from the parameter data.
|
j3d.org Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||