|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvrml.eai.field.BaseField
public abstract class BaseField
Abstract ancestor of all VRML fields. This class simply defines the
getType()
method and symbolic constants for all values
returned by that method. This is an abstract class, i.e. you cannot
create instances of this class. The only way to retrieve instances
of this class are the Node.getEventIn(java.lang.String)
and
Node.getEventOut(java.lang.String)
methods.
Field Summary | |
---|---|
static int |
MFColor
Symbolic name for the MFColor field type. |
static int |
MFFloat
Symbolic name for the MFFloat field type. |
static int |
MFInt32
Symbolic name for the MFInt32 field type. |
static int |
MFNode
Symbolic name for the MFNode field type. |
static int |
MFRotation
Symbolic name for the MFRotation field type. |
static int |
MFString
Symbolic name for the MFString field type. |
static int |
MFTime
Symbolic name for the MFTime field type. |
static int |
MFVec2f
Symbolic name for the MFVec2f field type. |
static int |
MFVec3f
Symbolic name for the MFVec3f field type. |
static int |
SFBool
Symbolic name for the SFBool field type. |
static int |
SFColor
Symbolic name for the SFColor field type. |
static int |
SFFloat
Symbolic name for the SFFloat field type. |
static int |
SFImage
Symbolic name for the SFImage field type. |
static int |
SFInt32
Symbolic name for the SFInt32 field type. |
static int |
SFNode
Symbolic name for the SFNode field type. |
static int |
SFRotation
Symbolic name for the SFRotation field type. |
static int |
SFString
Symbolic name for the SFString field type. |
static int |
SFTime
Symbolic name for the SFTime field type. |
static int |
SFVec2f
Symbolic name for the SFVec2f field type. |
static int |
SFVec3f
Symbolic name for the SFVec3f field type. |
Method Summary | |
---|---|
int |
getType()
Returns the type of field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SFBool
getType()
method for SFBool fields.
The following example demonstrates how to check if a field is a SFBool field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.SFBool) { ... }
public static final int SFColor
getType()
method for SFColor fields.
The following example demonstrates how to check if a field is a SFColor field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.SFColor) { ... }
public static final int SFFloat
getType()
method for SFFloat fields.
The following example demonstrates how to check if a field is a SFFloat field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.SFFloat) { ... }
public static final int SFImage
getType()
method for SFImage fields.
The following example demonstrates how to check if a field is a SFImage field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.SFImage) { ... }
public static final int SFInt32
getType()
method for SFInt32 fields.
The following example demonstrates how to check if a field is a SFInt32 field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.SFInt32) { ... }
public static final int SFNode
getType()
method for SFNode fields.
The following example demonstrates how to check if a field is a SFNode field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.SFNode) { ... }
public static final int SFRotation
getType()
method for SFRotation fields.
The following example demonstrates how to check if a field is a SFRotation field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.SFRotation) { ... }
public static final int SFString
getType()
method for SFString fields.
The following example demonstrates how to check if a field is a SFString field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.SFString) { ... }
public static final int SFTime
getType()
method for SFTime fields.
The following example demonstrates how to check if a field is a SFTime field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.SFTime) { ... }
public static final int SFVec2f
getType()
method for SFVec2f fields.
The following example demonstrates how to check if a field is a SFVec2f field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.SFVec2f) { ... }
public static final int SFVec3f
getType()
method for SFVec3f fields.
The following example demonstrates how to check if a field is a SFVec3f field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.SFVec3f) { ... }
public static final int MFColor
getType()
method for MFColor fields.
The following example demonstrates how to check if a field is a MFColor field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.MFColor) { ... }
public static final int MFFloat
getType()
method for MFFloat fields.
The following example demonstrates how to check if a field is a MFFloat field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.MFFloat) { ... }
public static final int MFInt32
getType()
method for MFInt32 fields.
The following example demonstrates how to check if a field is a MFInt32 field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.MFInt32) { ... }
public static final int MFNode
getType()
method for MFNode fields.
The following example demonstrates how to check if a field is a MFNode field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.MFNode) { ... }
public static final int MFRotation
getType()
method for MFRotation fields.
The following example demonstrates how to check if a field is a MFRotation field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.MFRotation) { ... }
public static final int MFString
getType()
method for MFString fields.
The following example demonstrates how to check if a field is a MFString field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.MFString) { ... }
public static final int MFTime
getType()
method for MFTime fields.
The following example demonstrates how to check if a field is a MFTime field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.MFTime) { ... }
public static final int MFVec2f
getType()
method for MFVec2f fields.
The following example demonstrates how to check if a field is a MFVec2f field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.MFVec2f) { ... }
public static final int MFVec3f
getType()
method for MFVec3f fields.
The following example demonstrates how to check if a field is a MFVec3f field:
vrml.eai.field.BaseField field = ...; if (field.getType() == vrml.eai.field.BaseField.MFVec3f) { ... }
Method Detail |
---|
public int getType()
The following example demonstrates how to print the type of a field to the console:
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |