|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.utils.universe.ConfigCommand
class ConfigCommand
Contains the elements which compose a configuration file command, including the command name, type, and arguments.
Field Summary | |
---|---|
(package private) static int |
ALIAS
Specifies that this command creates an alias for a ConfigObject of the same base name. |
(package private) int |
argc
The number of arguments in this command, including the command name. |
(package private) java.lang.Object[] |
argv
An array containing all of this command's arguments, including the command name. |
(package private) static int |
ATTRIBUTE
Specifies that this command sets an attribute for a class known to ConfiguredUniverse. |
(package private) java.lang.String |
baseName
The base name of this command, from which the name of the ConfigObject subclass that processes it is derived. |
(package private) static int |
BUILTIN
Specifies that this command is a deferred built-in command that can't be immediately evaluated by the parser. |
(package private) java.lang.String |
commandName
The name of the command being invoked, which is always the first argument of the command. |
(package private) static int |
CREATE
Specifies that this command creates a new ConfigObject. |
(package private) java.lang.String |
fileName
The file from which this command was read. |
(package private) static int |
IGNORE
Specifes that this command is entirely processed by the constructor and should be ignored by subsequent recipients. |
(package private) static int |
INCLUDE
Specifies that this command is an include file directive. |
(package private) java.lang.String |
instanceName
The instance name of the ConfigObject subclass which processes this command. |
(package private) int |
lineNumber
The line number from which this command was read. |
(package private) static int |
PROPERTY
Specifies that this command sets a Java system property or a property for a class unknown to ConfiguredUniverse. |
(package private) int |
type
The type of this command, either CREATE, PROPERTY, ALIAS, BUILTIN, INCLUDE, or IGNORE. |
Constructor Summary | |
---|---|
ConfigCommand(java.util.Collection elements,
java.lang.String fileName,
int lineNumber)
Constructs a ConfigCommand from configuration file command arguments. |
Method Summary | |
---|---|
private java.lang.String |
checkName(java.lang.Object o)
Checks if the given object is an instance of String. |
(package private) static java.lang.String |
evaluateJavaProperty(java.lang.String key)
Evaluates the specified Java property string if allowed by the security manager. |
(package private) static java.lang.String[] |
formatMatrixRows(int rowCount,
int colCount,
double[] m)
Formats a matrix with fixed fractional digits and integer padding to align the decimal points in columns. |
(package private) static java.lang.String[] |
formatMatrixRows(Matrix3d m3)
Calls formatMatrixRows(3, 3, m) , where m is a
an array of doubles retrieved from the given Matrix3d. |
(package private) static java.lang.String[] |
formatMatrixRows(Matrix4d m4)
Calls formatMatrixRows(4, 4, m) , where m is a
an array of doubles retrieved from the given Matrix4d. |
private static void |
processJavaProperty(int argc,
java.lang.Object[] argv)
Sets the Java property specified in the command. |
(package private) static java.lang.String |
setJavaProperty(java.lang.String key,
java.lang.String value)
Sets the given Java system property if allowed by the security manager. |
java.lang.String |
toString()
Returns the String representation of this command. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final int CREATE
static final int ATTRIBUTE
static final int PROPERTY
As of Java 3D 1.3.1, this is handled the same as an attribute. The individual setProperty() method implementations of ConfigObject determine whether the method to set the property can be invoked directly or through introspection. If through introspection, then the evaluation of the property must be delayed until the target object is instantiated.
static final int ALIAS
static final int BUILTIN
static final int INCLUDE
static final int IGNORE
int type
int argc
java.lang.Object[] argv
java.lang.String commandName
java.lang.String baseName
java.lang.String instanceName
java.lang.String fileName
int lineNumber
Constructor Detail |
---|
ConfigCommand(java.util.Collection elements, java.lang.String fileName, int lineNumber)
elements
- arguments to this command, including the command namefileName
- name of the file from where the command was readlineNumber
- line number where the command is found in the fileMethod Detail |
---|
private static void processJavaProperty(int argc, java.lang.Object[] argv)
argc
- the number of arguments in the commandargv
- command arguments as an array of Objects; the 1st is
the command name (ignored), the 2nd is the name of the Java
property, the 3rd is the value to be set or the keyword
"Default", and the 4th is thevalue to be set if the Java
property doesn't already existstatic java.lang.String setJavaProperty(java.lang.String key, java.lang.String value)
key
- property namevalue
- property value
static java.lang.String evaluateJavaProperty(java.lang.String key)
key
- string containing a Java property name
private final java.lang.String checkName(java.lang.Object o)
o
- the object to be checked
java.lang.IllegalArgumentException
- if the object is not a Stringstatic java.lang.String[] formatMatrixRows(Matrix3d m3)
formatMatrixRows(3, 3, m)
, where m
is a
an array of doubles retrieved from the given Matrix3d.
m3
- matrix to be formatted
static java.lang.String[] formatMatrixRows(Matrix4d m4)
formatMatrixRows(4, 4, m)
, where m
is a
an array of doubles retrieved from the given Matrix4d.
m4
- matrix to be formatted
static java.lang.String[] formatMatrixRows(int rowCount, int colCount, double[] m)
rowCount
- number of rows in the matrixcolCount
- number of columns in the matrixm
- matrix to be formatted
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |