Interface UnitInfo
public interface UnitInfo
Abstract node interface, defined by X3D Java Scene Access Interface (SAI) Specification to support X3D Java interoperability.
 
 Warning: this is an abstract interface that cannot be instantiated as a concrete object.
 Java programmers typically only need to use concrete objects provided by the 
 
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI). UNIT statements define data conversion factors for a scene that can override default units of measure for angles in radians, length in meters, etc.
org.web3d.x3d.jsail classes.
 Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI). UNIT statements define data conversion factors for a scene that can override default units of measure for angles in radians, length in meters, etc.
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionGet the category (angle | length | force | mass) of this UNIT statement.doubleGet the positive double-precision factor that converts new base unit to default base unit.getName()Get the name of this UNIT statement.Return a formatted string version of this component that conforms to the X3D specification for X3D file encoding.
- 
Method Details- 
getName
- 
getCategoryString getCategory()Get the category (angle | length | force | mass) of this UNIT statement.- Returns:
- The category of the UNIT statement
 
- 
getConversionFactordouble getConversionFactor()Get the positive double-precision factor that converts new base unit to default base unit.- Returns:
- The positive double-precision conversion factor of the UNIT statement
 
- 
toX3DStringString toX3DString()Return a formatted string version of this component that conforms to the X3D specification for X3D file encoding. The string will start with theUNITkeyword, as per specification.- Returns:
- A correctly formatted string
 
 
-