Class FontStyleObject

java.lang.Object
All Implemented Interfaces:
X3DNode, FontStyle, X3DFontStyleNode

public class FontStyleObject
extends X3DConcreteNode
implements FontStyle
FontStyle is an X3DFontStyleNode that defines the size, family, justification, and other styles used by Text nodes.

X3D node tooltip: [X3DFontStyleNode] FontStyle is an X3DFontStyleNode that defines the size, family, justification, and other styles used by Text nodes.
  • Hint: full internationalization (i18n) and localization (l10n) features are available for any written language.
  • Hint: DEF/USE copies of a single node can provide a similar "look + feel" style for related shapes.
  • Hint: relates to Internationalization (i18n) http://www.w3.org/standards/webdesign/i18n
  • Hint: first add a Text node as a parent node for FontStyle.

Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
See Also:
X3D Abstract Specification: FontStyle, X3D Tooltips: FontStyle, X3D Scene Authoring Hints
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String COMPONENT
    String constant COMPONENT defines X3D component for the FontStyle element: Text
    static java.lang.String containerField_DEFAULT_VALUE
    containerField describes typical field relationship of a node to its parent.
    static java.util.ArrayList<java.lang.String> FAMILY_DEFAULT_VALUE
    MFString field named family has default quoted value new String[] {"SERIF"} (Java syntax) or quoted value "SERIF" (XML syntax).
    static java.lang.String FAMILY_SANS
    MFString field named family with X3DUOM baseType fontFamilyValues is an array that can include this quoted enumeration value (and alternate values) "SANS" (Java syntax) or '"SANS"' (XML syntax).
    static java.lang.String FAMILY_SERIF
    MFString field named family with X3DUOM baseType fontFamilyValues is an array that can include this quoted enumeration value (and alternate values) "SERIF" (Java syntax) or '"SERIF"' (XML syntax).
    static java.lang.String FAMILY_TYPEWRITER
    MFString field named family with X3DUOM baseType fontFamilyValues is an array that can include this quoted enumeration value (and alternate values) "TYPEWRITER" (Java syntax) or '"TYPEWRITER"' (XML syntax).
    static java.util.ArrayList<java.lang.String> fontFamilyValues
    List of specification-defined enumeration values, with additional author-defined enumeration values not allowed.
    static java.util.ArrayList<java.lang.String> fontStyleChoices
    List of specification-defined enumeration values, with additional author-defined enumeration values not allowed.
    static java.lang.String fromField_IS
    fromField ROUTE name for SFNode field named IS.
    static java.lang.String fromField_METADATA
    fromField ROUTE name for SFNode field named metadata.
    static boolean HORIZONTAL_DEFAULT_VALUE
    SFBool field named horizontal has default value true (Java syntax) or true (XML syntax).
    static ISObject IS_DEFAULT_VALUE
    SFNode field named IS has default value null (Java syntax) or NULL (XML syntax).
    static java.lang.String JUSTIFY_BEGIN
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "BEGIN" (Java syntax) or '"BEGIN"' (XML syntax).
    static java.lang.String JUSTIFY_BEGIN_BEGIN
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"BEGIN\" \"BEGIN\"" (Java syntax) or '"BEGIN" "BEGIN"' (XML syntax).
    static java.lang.String JUSTIFY_BEGIN_END
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"BEGIN\" \"END\"" (Java syntax) or '"BEGIN" "END"' (XML syntax).
    static java.lang.String JUSTIFY_BEGIN_FIRST
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"BEGIN\" \"FIRST\"" (Java syntax) or '"BEGIN" "FIRST"' (XML syntax).
    static java.lang.String JUSTIFY_BEGIN_MIDDLE
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"BEGIN\" \"MIDDLE\"" (Java syntax) or '"BEGIN" "MIDDLE"' (XML syntax).
    static java.util.ArrayList<java.lang.String> JUSTIFY_DEFAULT_VALUE
    MFString field named justify has default quoted value new String[] {"BEGIN"} (Java syntax) or quoted value "BEGIN" (XML syntax).
    static java.lang.String JUSTIFY_END
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "END" (Java syntax) or '"END"' (XML syntax).
    static java.lang.String JUSTIFY_END_BEGIN
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"END\" \"BEGIN\"" (Java syntax) or '"END" "BEGIN"' (XML syntax).
    static java.lang.String JUSTIFY_END_END
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"END\" \"END\"" (Java syntax) or '"END" "END"' (XML syntax).
    static java.lang.String JUSTIFY_END_FIRST
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"END\" \"FIRST\"" (Java syntax) or '"END" "FIRST"' (XML syntax).
    static java.lang.String JUSTIFY_END_MIDDLE
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"END\" \"MIDDLE\"" (Java syntax) or '"END" "MIDDLE"' (XML syntax).
    static java.lang.String JUSTIFY_FIRST
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "FIRST" (Java syntax) or '"FIRST"' (XML syntax).
    static java.lang.String JUSTIFY_FIRST_BEGIN
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"FIRST\" \"BEGIN\"" (Java syntax) or '"FIRST" "BEGIN"' (XML syntax).
    static java.lang.String JUSTIFY_FIRST_END
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"FIRST\" \"END\"" (Java syntax) or '"FIRST" "END"' (XML syntax).
    static java.lang.String JUSTIFY_FIRST_FIRST
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"FIRST\" \"FIRST\"" (Java syntax) or '"FIRST" "FIRST"' (XML syntax).
    static java.lang.String JUSTIFY_FIRST_MIDDLE
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"FIRST\" \"MIDDLE\"" (Java syntax) or '"FIRST" "MIDDLE"' (XML syntax).
    static java.lang.String JUSTIFY_MIDDLE
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "MIDDLE" (Java syntax) or '"MIDDLE"' (XML syntax).
    static java.lang.String JUSTIFY_MIDDLE_BEGIN
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"MIDDLE\" \"BEGIN\"" (Java syntax) or '"MIDDLE" "BEGIN"' (XML syntax).
    static java.lang.String JUSTIFY_MIDDLE_END
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"MIDDLE\" \"END\"" (Java syntax) or '"MIDDLE" "END"' (XML syntax).
    static java.lang.String JUSTIFY_MIDDLE_FIRST
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"MIDDLE\" \"FIRST\"" (Java syntax) or '"MIDDLE" "FIRST"' (XML syntax).
    static java.lang.String JUSTIFY_MIDDLE_MIDDLE
    MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"MIDDLE\" \"MIDDLE\"" (Java syntax) or '"MIDDLE" "MIDDLE"' (XML syntax).
    static java.util.ArrayList<java.lang.String> justifyChoices
    List of specification-defined enumeration values, with additional author-defined enumeration values not allowed.
    static java.lang.String LANGUAGE_DEFAULT_VALUE
    SFString field named language has default value equal to an empty string.
    static boolean LEFTTORIGHT_DEFAULT_VALUE
    SFBool field named leftToRight has default value true (Java syntax) or true (XML syntax).
    static int LEVEL
    Integer constant LEVEL provides default X3D Text component level for this element: 1
    static X3DMetadataObject METADATA_DEFAULT_VALUE
    SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax).
    static java.lang.String NAME
    String constant NAME provides name of this element: FontStyle.
    static float SIZE_DEFAULT_VALUE
    SFFloat field named size has default value 1.0f (Java syntax) or 1.0 (XML syntax).
    static float SPACING_DEFAULT_VALUE
    SFFloat field named spacing has default value 1.0f (Java syntax) or 1.0 (XML syntax).
    static java.lang.String STYLE_BOLD
    SFString field named style with X3DUOM baseType fontStyleChoices can equal this value "BOLD" (Java syntax) or BOLD (XML syntax).
    static java.lang.String STYLE_BOLDITALIC
    SFString field named style with X3DUOM baseType fontStyleChoices can equal this value "BOLDITALIC" (Java syntax) or BOLDITALIC (XML syntax).
    static java.lang.String STYLE_DEFAULT_VALUE
    SFString field named style has default value "PLAIN" (Java syntax) or PLAIN (XML syntax).
    static java.lang.String STYLE_ITALIC
    SFString field named style with X3DUOM baseType fontStyleChoices can equal this value "ITALIC" (Java syntax) or ITALIC (XML syntax).
    static java.lang.String STYLE_PLAIN
    SFString field named style with X3DUOM baseType fontStyleChoices can equal this value "PLAIN" (Java syntax) or PLAIN (XML syntax).
    static java.lang.String toField_METADATA
    toField ROUTE name for SFNode field named metadata.
    static boolean TOPTOBOTTOM_DEFAULT_VALUE
    SFBool field named topToBottom has default value true (Java syntax) or true (XML syntax).

    Fields inherited from class org.web3d.x3d.jsail.X3DConcreteElement

    validationResult
  • Constructor Summary

    Constructors 
    Constructor Description
    FontStyleObject()
    Constructor for FontStyleObject to initialize member variables with default values.
    FontStyleObject​(java.lang.String DEFlabel)
    Utility constructor that assigns DEF label after initializing member variables with default values.
  • Method Summary

    Modifier and Type Method Description
    FontStyleObject addComments​(java.lang.String newComment)
    Add comment as String to contained commentsList.
    FontStyleObject addComments​(java.lang.String[] newComments)
    Add comments as String[] array to contained commentsList.
    FontStyleObject addComments​(CommentsBlock newCommentsBlock)
    Add CommentsBlock to contained commentsList.
    FontStyleObject addFamily​(java.lang.String newValue)
    Add singleton String value to MFString family field.
    FontStyleObject addFamily​(SFStringObject newValue)
    Add singleton SFStringObject value to MFString family field.
    FontStyleObject addJustify​(java.lang.String newValue)
    Add singleton String value to MFString justify field.
    FontStyleObject addJustify​(SFStringObject newValue)
    Add singleton SFStringObject value to MFString justify field.
    FontStyleObject clearFamily()
    Utility method to clear MFString value of family field.
    FontStyleObject clearIS()
    Utility method to clear SFNode value of IS field.
    FontStyleObject clearJustify()
    Utility method to clear MFString value of justify field.
    FontStyleObject clearMetadata()
    Utility method to clear SFNode value of metadata field.
    X3DConcreteElement findElementByNameValue​(java.lang.String nameValue)
    Recursive method to provide object reference to node or statement by name attribute, if found as part of this element or in a contained element.
    X3DConcreteElement findElementByNameValue​(java.lang.String nameValue, java.lang.String elementName)
    Recursive method to provide object reference to node or statement by name attribute, if found as part of this element or in a contained element.
    X3DConcreteNode findNodeByDEF​(java.lang.String DEFvalue)
    Recursive method to provide object reference to node by DEF, if found as this node or in a contained node.
    java.lang.String getAccessType​(java.lang.String fieldName)
    Indicate accessType corresponding to given fieldName.
    java.lang.String getComponent()
    Defines X3D component for the FontStyle element: Text
    int getComponentLevel()
    Provides default X3D component level for this element: 1
    java.lang.String getContainerFieldDefault()
    containerField describes typical field relationship of a node to its parent.
    java.lang.String getCssClass()
    Provide String value from inputOutput SFString field named class.
    java.lang.String getDEF()
    Provide String value from inputOutput SFString field named DEF.
    java.lang.String getElementName()
    Provides name of this element: FontStyle
    java.lang.String[] getFamily()
    Provide array of String enumeration results ( baseType fontFamilyValues) [""SANS"" | ""SERIF"" | ""TYPEWRITER"" | '"etc."'] from initializeOnly MFString field named family.
    java.util.ArrayList<java.lang.String> getFamilyList()
    Utility method to get ArrayList value of MFString family field, similar to getFamily().
    java.lang.String getFieldType​(java.lang.String fieldName)
    Indicate type corresponding to given fieldName.
    boolean getHorizontal()
    Provide boolean value from initializeOnly SFBool field named horizontal.
    ISObject getIS()
    Provide ISObject instance (using a properly typed node) from inputOutput SFNode field IS.
    java.lang.String[] getJustify()
    Provide array of String enumeration results ( baseType justifyChoices) [""MIDDLE"" | ""MIDDLE" "BEGIN"" | ""MIDDLE" "END"" | ""MIDDLE" "FIRST"" | ""MIDDLE" "MIDDLE"" | ""BEGIN"" | ""BEGIN" "BEGIN"" | ""BEGIN" "END"" | ""BEGIN" "FIRST"" | ""BEGIN" "MIDDLE"" | ""END"" | ""END" "BEGIN"" | ""END" "END"" | ""END" "FIRST"" | ""END" "MIDDLE"" | ""FIRST"" | ""FIRST" "BEGIN"" | ""FIRST" "END"" | ""FIRST" "FIRST"" | ""FIRST" "MIDDLE""] from initializeOnly MFString field named justify.
    java.util.ArrayList<java.lang.String> getJustifyList()
    Utility method to get ArrayList value of MFString justify field, similar to getJustify().
    java.lang.String getLanguage()
    Provide String value from initializeOnly SFString field named language.
    boolean getLeftToRight()
    Provide boolean value from initializeOnly SFBool field named leftToRight.
    X3DMetadataObject getMetadata()
    Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
    float getSize()
    Provide float value within allowed range of (0,infinity) from initializeOnly SFFloat field named size.
    float getSpacing()
    Provide float value within allowed range of [0,infinity) from initializeOnly SFFloat field named spacing.
    java.lang.String getStyle()
    Provide String enumeration value ( baseType fontStyleChoices) ["PLAIN" | "BOLD" | "ITALIC" | "BOLDITALIC"] from initializeOnly SFString field named style.
    boolean getTopToBottom()
    Provide boolean value from initializeOnly SFBool field named topToBottom.
    java.lang.String getUSE()
    Provide String value from inputOutput SFString field named USE.
    boolean hasElementByNameValue​(java.lang.String nameValue, java.lang.String elementName)
    Recursive method to determine whether node or statement with given name attribute is found, meaning both objects are attached to same scene graph.
    boolean hasIS()
    Indicate whether an object is available for inputOutput SFNode field IS.
    boolean hasMetadata()
    Indicate whether an object is available for inputOutput SFNode field metadata.
    boolean hasNodeByDEF​(java.lang.String DEFvalue)
    Recursive method to determine whether node with DEFvalue is found, meaning both objects are attached to same scene graph.
    void initialize()
    Initialize all member variables to default values.
    FontStyleObject setCssClass​(java.lang.String newValue)
    Accessor method to assign String value to inputOutput SFString field named class.
    FontStyleObject setCssClass​(SFStringObject newValue)
    Assign typed object value to SFString cssClass field, similar to setCssClass(String).
    FontStyleObject setDEF​(java.lang.String newValue)
    Accessor method to assign String value to inputOutput SFString field named DEF.
    FontStyleObject setDEF​(SFStringObject newValue)
    Assign typed object value to SFString DEF field, similar to setDEF(String).
    FontStyleObject setFamily​(java.lang.String newValue)
    Assign singleton String value to MFString family field, similar to setFamily(String[]).
    FontStyleObject setFamily​(java.lang.String[] newValue)
    Accessor method to assign String enumeration array (""SANS"" | ""SERIF"" | ""TYPEWRITER"") to initializeOnly MFString field named family.
    FontStyleObject setFamily​(java.util.ArrayList<java.lang.String> newValue)
    Assign ArrayList value of MFString family field, similar to setFamily(String[]).
    FontStyleObject setFamily​(MFStringObject newValue)
    Assign typed object value to MFString family field, similar to setFamily(String[]).
    FontStyleObject setFamily​(SFStringObject newValue)
    Assign single SFString object value to MFString family field, similar to setFamily(String[]).
    FontStyleObject setHorizontal​(boolean newValue)
    Accessor method to assign boolean value to initializeOnly SFBool field named horizontal.
    FontStyleObject setHorizontal​(SFBoolObject newValue)
    Assign typed object value to SFBool horizontal field, similar to setHorizontal(boolean).
    FontStyleObject setIS​(ISObject newValue)
    Accessor method to assign ISObject instance (using a properly typed node) to inputOutput SFNode field IS.
    FontStyleObject setJustify​(java.lang.String newValue)
    Assign singleton String value to MFString justify field, similar to setJustify(String[]).
    FontStyleObject setJustify​(java.lang.String[] newValue)
    Accessor method to assign String enumeration array (""MIDDLE"" | ""MIDDLE" "BEGIN"" | ""MIDDLE" "END"" | ""MIDDLE" "FIRST"" | ""MIDDLE" "MIDDLE"" | ""BEGIN"" | ""BEGIN" "BEGIN"" | ""BEGIN" "END"" | ""BEGIN" "FIRST"" | ""BEGIN" "MIDDLE"" | ""END"" | ""END" "BEGIN"" | ""END" "END"" | ""END" "FIRST"" | ""END" "MIDDLE"" | ""FIRST"" | ""FIRST" "BEGIN"" | ""FIRST" "END"" | ""FIRST" "FIRST"" | ""FIRST" "MIDDLE"") to initializeOnly MFString field named justify.
    FontStyleObject setJustify​(java.util.ArrayList<java.lang.String> newValue)
    Assign ArrayList value of MFString justify field, similar to setJustify(String[]).
    FontStyleObject setJustify​(MFStringObject newValue)
    Assign typed object value to MFString justify field, similar to setJustify(String[]).
    FontStyleObject setJustify​(SFStringObject newValue)
    Assign single SFString object value to MFString justify field, similar to setJustify(String[]).
    FontStyleObject setLanguage​(java.lang.String newValue)
    Accessor method to assign String value to initializeOnly SFString field named language.
    FontStyleObject setLanguage​(SFStringObject newValue)
    Assign typed object value to SFString language field, similar to setLanguage(String).
    FontStyleObject setLeftToRight​(boolean newValue)
    Accessor method to assign boolean value to initializeOnly SFBool field named leftToRight.
    FontStyleObject setLeftToRight​(SFBoolObject newValue)
    Assign typed object value to SFBool leftToRight field, similar to setLeftToRight(boolean).
    FontStyleObject setMetadata​(ProtoInstanceObject newValue)
    Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field metadata.
    FontStyleObject setMetadata​(X3DMetadataObject newValue)
    Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
    FontStyleObject setSize​(double newValue)
    Utility method: double-precision set-parameter accessor for X3D floating-point type, similar to setSize(float).
    FontStyleObject setSize​(float newValue)
    Accessor method to assign float value to initializeOnly SFFloat field named size.
    FontStyleObject setSize​(SFFloatObject newValue)
    Assign typed object value to SFFloat size field, similar to setSize(float).
    FontStyleObject setSpacing​(double newValue)
    Utility method: double-precision set-parameter accessor for X3D floating-point type, similar to setSpacing(float).
    FontStyleObject setSpacing​(float newValue)
    Accessor method to assign float value to initializeOnly SFFloat field named spacing.
    FontStyleObject setSpacing​(SFFloatObject newValue)
    Assign typed object value to SFFloat spacing field, similar to setSpacing(float).
    FontStyleObject setStyle​(java.lang.String newValue)
    Accessor method to assign String enumeration value ("PLAIN" | "BOLD" | "ITALIC" | "BOLDITALIC") to initializeOnly SFString field named style.
    FontStyleObject setStyle​(SFStringObject newValue)
    Assign typed object value to SFString style field, similar to setStyle(String).
    FontStyleObject setTopToBottom​(boolean newValue)
    Accessor method to assign boolean value to initializeOnly SFBool field named topToBottom.
    FontStyleObject setTopToBottom​(SFBoolObject newValue)
    Assign typed object value to SFBool topToBottom field, similar to setTopToBottom(boolean).
    FontStyleObject setUSE​(java.lang.String newValue)
    Accessor method to assign String value to inputOutput SFString field named USE.
    FontStyleObject setUSE​(SFStringObject newValue)
    Assign typed object value to SFString USE field, similar to setUSE(String).
    FontStyleObject setUSE​(FontStyleObject DEFnode)
    Assign a USE reference to another DEF node of same node type, similar to setUSE(String).
    java.lang.String toStringClassicVRML​(int indentLevel)
    Recursive method to provide ClassicVRML string serialization.
    java.lang.String toStringVRML97​(int indentLevel)
    Recursive method to provide VRML97 string serialization.
    java.lang.String toStringX3D​(int indentLevel)
    Recursive method to provide X3D string serialization of this model subgraph, utilizing XML encoding and conforming to X3D Canonical Form.
    java.lang.String validate()
    Recursive method to validate this element plus all contained nodes and statements, using both datatype-specification value checks and regular expression (regex) checking of corresponding string values.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • fontFamilyValues

      public static final java.util.ArrayList<java.lang.String> fontFamilyValues
      List of specification-defined enumeration values, with additional author-defined enumeration values not allowed.

      Allowed values: ""SANS"", ""SERIF"", ""TYPEWRITER"".

      fontFamilyValues are allowed enumeration values for FontStyle/ScreenFontStyle node family field. Unbounded, additional values are possible.
      See Also:
      https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/text.html#Fontfamilyandstyle
    • FAMILY_SANS

      public static final java.lang.String FAMILY_SANS
      MFString field named family with X3DUOM baseType fontFamilyValues is an array that can include this quoted enumeration value (and alternate values) "SANS" (Java syntax) or '"SANS"' (XML syntax).
      See Also:
      fontFamilyValues, Constant Field Values
    • FAMILY_SERIF

      public static final java.lang.String FAMILY_SERIF
      MFString field named family with X3DUOM baseType fontFamilyValues is an array that can include this quoted enumeration value (and alternate values) "SERIF" (Java syntax) or '"SERIF"' (XML syntax).
      See Also:
      fontFamilyValues, Constant Field Values
    • FAMILY_TYPEWRITER

      public static final java.lang.String FAMILY_TYPEWRITER
      MFString field named family with X3DUOM baseType fontFamilyValues is an array that can include this quoted enumeration value (and alternate values) "TYPEWRITER" (Java syntax) or '"TYPEWRITER"' (XML syntax).
      See Also:
      fontFamilyValues, Constant Field Values
    • justifyChoices

      public static final java.util.ArrayList<java.lang.String> justifyChoices
      List of specification-defined enumeration values, with additional author-defined enumeration values not allowed.

      Allowed values: ""MIDDLE"", ""MIDDLE" "BEGIN"", ""MIDDLE" "END"", ""MIDDLE" "FIRST"", ""MIDDLE" "MIDDLE"", ""BEGIN"", ""BEGIN" "BEGIN"", ""BEGIN" "END"", ""BEGIN" "FIRST"", ""BEGIN" "MIDDLE"", ""END"", ""END" "BEGIN"", ""END" "END"", ""END" "FIRST"", ""END" "MIDDLE"", ""FIRST"", ""FIRST" "BEGIN"", ""FIRST" "END"", ""FIRST" "FIRST"", ""FIRST" "MIDDLE"".

      justifyChoices are strictly allowed enumeration values for FontStyle node justify field. Note that intermediate commas and extraneous whitespace are disallowed by these strictly defined enumeration values.
      See Also:
      https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/text.html#Directionandjustification
    • JUSTIFY_MIDDLE

      public static final java.lang.String JUSTIFY_MIDDLE
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "MIDDLE" (Java syntax) or '"MIDDLE"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_MIDDLE_BEGIN

      public static final java.lang.String JUSTIFY_MIDDLE_BEGIN
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"MIDDLE\" \"BEGIN\"" (Java syntax) or '"MIDDLE" "BEGIN"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_MIDDLE_END

      public static final java.lang.String JUSTIFY_MIDDLE_END
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"MIDDLE\" \"END\"" (Java syntax) or '"MIDDLE" "END"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_MIDDLE_FIRST

      public static final java.lang.String JUSTIFY_MIDDLE_FIRST
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"MIDDLE\" \"FIRST\"" (Java syntax) or '"MIDDLE" "FIRST"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_MIDDLE_MIDDLE

      public static final java.lang.String JUSTIFY_MIDDLE_MIDDLE
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"MIDDLE\" \"MIDDLE\"" (Java syntax) or '"MIDDLE" "MIDDLE"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_BEGIN

      public static final java.lang.String JUSTIFY_BEGIN
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "BEGIN" (Java syntax) or '"BEGIN"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_BEGIN_BEGIN

      public static final java.lang.String JUSTIFY_BEGIN_BEGIN
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"BEGIN\" \"BEGIN\"" (Java syntax) or '"BEGIN" "BEGIN"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_BEGIN_END

      public static final java.lang.String JUSTIFY_BEGIN_END
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"BEGIN\" \"END\"" (Java syntax) or '"BEGIN" "END"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_BEGIN_FIRST

      public static final java.lang.String JUSTIFY_BEGIN_FIRST
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"BEGIN\" \"FIRST\"" (Java syntax) or '"BEGIN" "FIRST"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_BEGIN_MIDDLE

      public static final java.lang.String JUSTIFY_BEGIN_MIDDLE
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"BEGIN\" \"MIDDLE\"" (Java syntax) or '"BEGIN" "MIDDLE"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_END

      public static final java.lang.String JUSTIFY_END
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "END" (Java syntax) or '"END"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_END_BEGIN

      public static final java.lang.String JUSTIFY_END_BEGIN
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"END\" \"BEGIN\"" (Java syntax) or '"END" "BEGIN"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_END_END

      public static final java.lang.String JUSTIFY_END_END
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"END\" \"END\"" (Java syntax) or '"END" "END"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_END_FIRST

      public static final java.lang.String JUSTIFY_END_FIRST
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"END\" \"FIRST\"" (Java syntax) or '"END" "FIRST"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_END_MIDDLE

      public static final java.lang.String JUSTIFY_END_MIDDLE
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"END\" \"MIDDLE\"" (Java syntax) or '"END" "MIDDLE"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_FIRST

      public static final java.lang.String JUSTIFY_FIRST
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "FIRST" (Java syntax) or '"FIRST"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_FIRST_BEGIN

      public static final java.lang.String JUSTIFY_FIRST_BEGIN
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"FIRST\" \"BEGIN\"" (Java syntax) or '"FIRST" "BEGIN"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_FIRST_END

      public static final java.lang.String JUSTIFY_FIRST_END
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"FIRST\" \"END\"" (Java syntax) or '"FIRST" "END"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_FIRST_FIRST

      public static final java.lang.String JUSTIFY_FIRST_FIRST
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"FIRST\" \"FIRST\"" (Java syntax) or '"FIRST" "FIRST"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • JUSTIFY_FIRST_MIDDLE

      public static final java.lang.String JUSTIFY_FIRST_MIDDLE
      MFString field named justify with X3DUOM baseType justifyChoices is an array that can only include one of the quoted enumeration values "\"FIRST\" \"MIDDLE\"" (Java syntax) or '"FIRST" "MIDDLE"' (XML syntax).
      See Also:
      justifyChoices, Constant Field Values
    • fontStyleChoices

      public static final java.util.ArrayList<java.lang.String> fontStyleChoices
      List of specification-defined enumeration values, with additional author-defined enumeration values not allowed.

      Allowed values: "PLAIN", "BOLD", "ITALIC", "BOLDITALIC".

      fontStyleChoices are strictly allowed enumeration values for FontStyle/ScreenFontStyle node style field.
      See Also:
      https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/text.html#Fontfamilyandstyle
    • STYLE_PLAIN

      public static final java.lang.String STYLE_PLAIN
      SFString field named style with X3DUOM baseType fontStyleChoices can equal this value "PLAIN" (Java syntax) or PLAIN (XML syntax).
      See Also:
      fontStyleChoices, Constant Field Values
    • STYLE_BOLD

      public static final java.lang.String STYLE_BOLD
      SFString field named style with X3DUOM baseType fontStyleChoices can equal this value "BOLD" (Java syntax) or BOLD (XML syntax).
      See Also:
      fontStyleChoices, Constant Field Values
    • STYLE_ITALIC

      public static final java.lang.String STYLE_ITALIC
      SFString field named style with X3DUOM baseType fontStyleChoices can equal this value "ITALIC" (Java syntax) or ITALIC (XML syntax).
      See Also:
      fontStyleChoices, Constant Field Values
    • STYLE_BOLDITALIC

      public static final java.lang.String STYLE_BOLDITALIC
      SFString field named style with X3DUOM baseType fontStyleChoices can equal this value "BOLDITALIC" (Java syntax) or BOLDITALIC (XML syntax).
      See Also:
      fontStyleChoices, Constant Field Values
    • NAME

      public static final java.lang.String NAME
      String constant NAME provides name of this element: FontStyle.
      See Also:
      Constant Field Values
    • COMPONENT

      public static final java.lang.String COMPONENT
      String constant COMPONENT defines X3D component for the FontStyle element: Text
      See Also:
      Constant Field Values
    • LEVEL

      public static final int LEVEL
      Integer constant LEVEL provides default X3D Text component level for this element: 1
      See Also:
      Constant Field Values
    • FAMILY_DEFAULT_VALUE

      public static final java.util.ArrayList<java.lang.String> FAMILY_DEFAULT_VALUE
      MFString field named family has default quoted value new String[] {"SERIF"} (Java syntax) or quoted value "SERIF" (XML syntax).
    • HORIZONTAL_DEFAULT_VALUE

      public static final boolean HORIZONTAL_DEFAULT_VALUE
      SFBool field named horizontal has default value true (Java syntax) or true (XML syntax).
      See Also:
      Constant Field Values
    • IS_DEFAULT_VALUE

      public static final ISObject IS_DEFAULT_VALUE
      SFNode field named IS has default value null (Java syntax) or NULL (XML syntax).
    • JUSTIFY_DEFAULT_VALUE

      public static final java.util.ArrayList<java.lang.String> JUSTIFY_DEFAULT_VALUE
      MFString field named justify has default quoted value new String[] {"BEGIN"} (Java syntax) or quoted value "BEGIN" (XML syntax).
    • LANGUAGE_DEFAULT_VALUE

      public static final java.lang.String LANGUAGE_DEFAULT_VALUE
      SFString field named language has default value equal to an empty string.
      See Also:
      Constant Field Values
    • LEFTTORIGHT_DEFAULT_VALUE

      public static final boolean LEFTTORIGHT_DEFAULT_VALUE
      SFBool field named leftToRight has default value true (Java syntax) or true (XML syntax).
      See Also:
      Constant Field Values
    • METADATA_DEFAULT_VALUE

      public static final X3DMetadataObject METADATA_DEFAULT_VALUE
      SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax).
    • SIZE_DEFAULT_VALUE

      public static final float SIZE_DEFAULT_VALUE
      SFFloat field named size has default value 1.0f (Java syntax) or 1.0 (XML syntax).
      See Also:
      Constant Field Values
    • SPACING_DEFAULT_VALUE

      public static final float SPACING_DEFAULT_VALUE
      SFFloat field named spacing has default value 1.0f (Java syntax) or 1.0 (XML syntax).
      See Also:
      Constant Field Values
    • STYLE_DEFAULT_VALUE

      public static final java.lang.String STYLE_DEFAULT_VALUE
      SFString field named style has default value "PLAIN" (Java syntax) or PLAIN (XML syntax).
      See Also:
      Constant Field Values
    • TOPTOBOTTOM_DEFAULT_VALUE

      public static final boolean TOPTOBOTTOM_DEFAULT_VALUE
      SFBool field named topToBottom has default value true (Java syntax) or true (XML syntax).
      See Also:
      Constant Field Values
    • containerField_DEFAULT_VALUE

      public static final java.lang.String containerField_DEFAULT_VALUE
      containerField describes typical field relationship of a node to its parent. Usage is not ordinarily needed when using this API, default value is provided for informational purposes.
      See Also:
      X3D Scene Authoring Hints: containerField, X3D Unified Object Model (X3DUOM), Constant Field Values
    • fromField_IS

      public static final java.lang.String fromField_IS
      fromField ROUTE name for SFNode field named IS.
      See Also:
      Constant Field Values
    • fromField_METADATA

      public static final java.lang.String fromField_METADATA
      fromField ROUTE name for SFNode field named metadata.
      See Also:
      Constant Field Values
    • toField_METADATA

      public static final java.lang.String toField_METADATA
      toField ROUTE name for SFNode field named metadata.
      See Also:
      Constant Field Values
  • Constructor Details

    • FontStyleObject

      public FontStyleObject()
      Constructor for FontStyleObject to initialize member variables with default values.
    • FontStyleObject

      public FontStyleObject​(java.lang.String DEFlabel)
      Utility constructor that assigns DEF label after initializing member variables with default values.
      Parameters:
      DEFlabel - unique DEF name for this X3D node
  • Method Details