Java Doc for ConfigCommand.java in  » 6.0-JDK-Modules » java-3d » com » sun » j3d » utils » universe » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » com.sun.j3d.utils.universe 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j3d.utils.universe.ConfigCommand

ConfigCommand
class ConfigCommand (Code)
Contains the elements which compose a configuration file command, including the command name, type, and arguments.


Field Summary
final static  intALIAS
     Specifies that this command creates an alias for a ConfigObject of the same base name.
final static  intATTRIBUTE
     Specifies that this command sets an attribute for a class known to ConfiguredUniverse.
final static  intBUILTIN
     Specifies that this command is a deferred built-in command that can't be immediately evaluated by the parser.
final static  intCREATE
     Specifies that this command creates a new ConfigObject.
final static  intIGNORE
     Specifes that this command is entirely processed by the constructor and should be ignored by subsequent recipients.
final static  intINCLUDE
     Specifies that this command is an include file directive.
final static  intPROPERTY
     Specifies that this command sets a Java system property or a property for a class unknown to ConfiguredUniverse.
 intargc
     The number of arguments in this command, including the command name.
 Object[]argv
     An array containing all of this command's arguments, including the command name.
 StringbaseName
     The base name of this command, from which the name of the ConfigObject subclass that processes it is derived.
 StringcommandName
     The name of the command being invoked, which is always the first argument of the command.
 StringfileName
     The file from which this command was read.
 StringinstanceName
     The instance name of the ConfigObject subclass which processes this command.
 intlineNumber
     The line number from which this command was read.
 inttype
     The type of this command, either CREATE, PROPERTY, ALIAS, BUILTIN, INCLUDE, or IGNORE.

Constructor Summary
 ConfigCommand(Collection elements, String fileName, int lineNumber)
     Constructs a ConfigCommand from configuration file command arguments.

Method Summary
static  StringevaluateJavaProperty(String key)
     Evaluates the specified Java property string if allowed by the security manager.
static  String[]formatMatrixRows(Matrix3d m3)
     Calls formatMatrixRows(3, 3, m), where m is a an array of doubles retrieved from the given Matrix3d.
static  String[]formatMatrixRows(Matrix4d m4)
     Calls formatMatrixRows(4, 4, m), where m is a an array of doubles retrieved from the given Matrix4d.
static  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.
static  StringsetJavaProperty(String key, String value)
     Sets the given Java system property if allowed by the security manager.
public  StringtoString()
     Returns the String representation of this command.

Field Detail
ALIAS
final static int ALIAS(Code)
Specifies that this command creates an alias for a ConfigObject of the same base name.



ATTRIBUTE
final static int ATTRIBUTE(Code)
Specifies that this command sets an attribute for a class known to ConfiguredUniverse. As of Java 3D 1.3.1, these commands are handled the same as property commands (see PROPERTY below) and this constant is no longer used.



BUILTIN
final static int BUILTIN(Code)
Specifies that this command is a deferred built-in command that can't be immediately evaluated by the parser. Its evaluation is delayed until all config objects are instantiated and their properties can be evaluated.



CREATE
final static int CREATE(Code)
Specifies that this command creates a new ConfigObject.



IGNORE
final static int IGNORE(Code)
Specifes that this command is entirely processed by the constructor and should be ignored by subsequent recipients.



INCLUDE
final static int INCLUDE(Code)
Specifies that this command is an include file directive.



PROPERTY
final static int PROPERTY(Code)
Specifies that this command sets a Java system property or a property for a class unknown to ConfiguredUniverse. Properties for such a class are set by using the reflection API to invoke a method whose name is specified in the command's argument list. Such a method must accept an array of Object as its sole parameter, where that array contains all the command elements which appear after the method name.

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.




argc
int argc(Code)
The number of arguments in this command, including the command name.



argv
Object[] argv(Code)
An array containing all of this command's arguments, including the command name.



baseName
String baseName(Code)
The base name of this command, from which the name of the ConfigObject subclass that processes it is derived. This is constructed by stripping off the leading "New" prefix or the trailing "Attribute", "Property", or "Alias" suffix of the command name. The name of the ConfigObject subclass which handles the command is derived by adding "Config" as a prefix to the base name.



commandName
String commandName(Code)
The name of the command being invoked, which is always the first argument of the command.



fileName
String fileName(Code)
The file from which this command was read.



instanceName
String instanceName(Code)
The instance name of the ConfigObject subclass which processes this command. Together with the base name this provides the handle by which a ConfigObject can be referenced by other commands in the configuration file.



lineNumber
int lineNumber(Code)
The line number from which this command was read.



type
int type(Code)
The type of this command, either CREATE, PROPERTY, ALIAS, BUILTIN, INCLUDE, or IGNORE.




Constructor Detail
ConfigCommand
ConfigCommand(Collection elements, String fileName, int lineNumber)(Code)
Constructs a ConfigCommand from configuration file command arguments.
Parameters:
  elements - arguments to this command, including the command name
Parameters:
  fileName - name of the file from where the command was read
Parameters:
  lineNumber - line number where the command is found in the file




Method Detail
evaluateJavaProperty
static String evaluateJavaProperty(String key)(Code)
Evaluates the specified Java property string if allowed by the security manager.
Parameters:
  key - string containing a Java property name string containing the Java property valaue



formatMatrixRows
static String[] formatMatrixRows(Matrix3d m3)(Code)
Calls formatMatrixRows(3, 3, m), where m is a an array of doubles retrieved from the given Matrix3d.
Parameters:
  m3 - matrix to be formatted matrix rows formatted into strings



formatMatrixRows
static String[] formatMatrixRows(Matrix4d m4)(Code)
Calls formatMatrixRows(4, 4, m), where m is a an array of doubles retrieved from the given Matrix4d.
Parameters:
  m4 - matrix to be formatted matrix rows formatted into strings



formatMatrixRows
static String[] formatMatrixRows(int rowCount, int colCount, double[] m)(Code)
Formats a matrix with fixed fractional digits and integer padding to align the decimal points in columns. Non-negative numbers print up to 7 integer digits, while negative numbers print up to 6 integer digits to account for the negative sign. 6 fractional digits are printed.
Parameters:
  rowCount - number of rows in the matrix
Parameters:
  colCount - number of columns in the matrix
Parameters:
  m - matrix to be formatted matrix rows formatted into strings



setJavaProperty
static String setJavaProperty(String key, String value)(Code)
Sets the given Java system property if allowed by the security manager.
Parameters:
  key - property name
Parameters:
  value - property value previous property value if any



toString
public String toString()(Code)
Returns the String representation of this command. string representing this command



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.