Class FontStyle

All Implemented Interfaces:
X3DNode, FontStyle, X3DFontStyleNode

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

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 org.web3d.x3d.jsail classes. FontStyle node tooltip: [X3DFontStyleNode] FontStyle is an X3DFontStyleNode that defines the size, family, justification, and other styles used by Text nodes.
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:
  • Field Details

    • FAMILY_SANS

      public static final String FAMILY_SANS
      Tooltip: default font family for sans-serif font such as Helvetica. MFString field named family with X3DUOM simpleType fontFamilyValues and with X3DUOM baseType MFString is an array that can include this quoted enumeration value (and also may include alternate values) "SANS" (Java syntax) or '"SANS"' (XML syntax).
      See Also:
    • FAMILY_SERIF

      public static final String FAMILY_SERIF
      Tooltip: default font family for serif font such as Times-Roman. MFString field named family with X3DUOM simpleType fontFamilyValues and with X3DUOM baseType MFString is an array that can include this quoted enumeration value (and also may include alternate values) "SERIF" (Java syntax) or '"SERIF"' (XML syntax).
      See Also:
    • FAMILY_TYPEWRITER

      public static final String FAMILY_TYPEWRITER
      Tooltip: default font family for a fixed-pitch font such as Courier. MFString field named family with X3DUOM simpleType fontFamilyValues and with X3DUOM baseType MFString is an array that can include this quoted enumeration value (and also may include alternate values) "TYPEWRITER" (Java syntax) or '"TYPEWRITER"' (XML syntax).
      See Also:
    • JUSTIFY_MIDDLE

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static final String JUSTIFY_FIRST_MIDDLE
      MFString field named justify with X3DUOM simpleType justifyChoices and with X3DUOM baseType MFString is an array that can only include one set of the quoted enumeration values "\"FIRST\" \"MIDDLE\"" (Java syntax) or '"FIRST" "MIDDLE"' (XML syntax).
      See Also:
    • STYLE_PLAIN

      public static final String STYLE_PLAIN
      Tooltip: default plain type. SFString field named style with X3DUOM simpleType fontStyleChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "PLAIN" (Java syntax) or PLAIN (XML syntax).
      See Also:
    • STYLE_BOLD

      public static final String STYLE_BOLD
      Tooltip: boldface type. SFString field named style with X3DUOM simpleType fontStyleChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "BOLD" (Java syntax) or BOLD (XML syntax).
      See Also:
    • STYLE_ITALIC

      public static final String STYLE_ITALIC
      Tooltip: italic type. SFString field named style with X3DUOM simpleType fontStyleChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "ITALIC" (Java syntax) or ITALIC (XML syntax).
      See Also:
    • STYLE_BOLDITALIC

      public static final String STYLE_BOLDITALIC
      Tooltip: bold and italic type. SFString field named style with X3DUOM simpleType fontStyleChoices and with X3DUOM baseType xs:NMTOKEN can equal this value "BOLDITALIC" (Java syntax) or BOLDITALIC (XML syntax).
      See Also:
    • NAME

      public static final String NAME
      String constant NAME provides name of this element: FontStyle.
      See Also:
    • COMPONENT

      public static final String COMPONENT
      String constant COMPONENT defines X3D component for the FontStyle element: Text
      See Also:
    • LEVEL

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

      public static final ArrayList<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:
    • IS_DEFAULT_VALUE

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

      public static final ArrayList<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 String LANGUAGE_DEFAULT_VALUE
      SFString field named language has default value equal to an empty string.
      See Also:
    • 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:
    • 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:
    • 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:
    • STYLE_DEFAULT_VALUE

      public static final String STYLE_DEFAULT_VALUE
      SFString field named style has default value "PLAIN" (Java syntax) or PLAIN (XML syntax).
      See Also:
    • 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:
    • containerField_DEFAULT_VALUE

      public static final String containerField_DEFAULT_VALUE
      containerField describes typical field relationship of a node to its parent. Usage is not ordinarily needed when using this API, this default value is provided for informational purposes only.
      containerField_DEFAULT_VALUE = "fontStyle";
      containerField_ALLOWED_VALUES = {"fontStyle" }; type xs:NMTOKEN
      See Also:
    • fromField_FAMILY

      public static final String fromField_FAMILY
      fromField ROUTE name for MFString field named family.
      See Also:
    • toField_FAMILY

      public static final String toField_FAMILY
      toField ROUTE name for MFString field named family.
      See Also:
    • fromField_HORIZONTAL

      public static final String fromField_HORIZONTAL
      fromField ROUTE name for SFBool field named horizontal.
      See Also:
    • toField_HORIZONTAL

      public static final String toField_HORIZONTAL
      toField ROUTE name for SFBool field named horizontal.
      See Also:
    • fromField_IS

      public static final String fromField_IS
      fromField ROUTE name for SFNode field named IS.
      See Also:
    • fromField_JUSTIFY

      public static final String fromField_JUSTIFY
      fromField ROUTE name for MFString field named justify.
      See Also:
    • toField_JUSTIFY

      public static final String toField_JUSTIFY
      toField ROUTE name for MFString field named justify.
      See Also:
    • fromField_LANGUAGE

      public static final String fromField_LANGUAGE
      fromField ROUTE name for SFString field named language.
      See Also:
    • toField_LANGUAGE

      public static final String toField_LANGUAGE
      toField ROUTE name for SFString field named language.
      See Also:
    • fromField_LEFTTORIGHT

      public static final String fromField_LEFTTORIGHT
      fromField ROUTE name for SFBool field named leftToRight.
      See Also:
    • toField_LEFTTORIGHT

      public static final String toField_LEFTTORIGHT
      toField ROUTE name for SFBool field named leftToRight.
      See Also:
    • fromField_METADATA

      public static final String fromField_METADATA
      fromField ROUTE name for SFNode field named metadata.
      See Also:
    • toField_METADATA

      public static final String toField_METADATA
      toField ROUTE name for SFNode field named metadata.
      See Also:
    • fromField_SIZE

      public static final String fromField_SIZE
      fromField ROUTE name for SFFloat field named size.
      See Also:
    • toField_SIZE

      public static final String toField_SIZE
      toField ROUTE name for SFFloat field named size.
      See Also:
    • fromField_SPACING

      public static final String fromField_SPACING
      fromField ROUTE name for SFFloat field named spacing.
      See Also:
    • toField_SPACING

      public static final String toField_SPACING
      toField ROUTE name for SFFloat field named spacing.
      See Also:
    • fromField_STYLE

      public static final String fromField_STYLE
      fromField ROUTE name for SFString field named style.
      See Also:
    • toField_STYLE

      public static final String toField_STYLE
      toField ROUTE name for SFString field named style.
      See Also:
    • fromField_TOPTOBOTTOM

      public static final String fromField_TOPTOBOTTOM
      fromField ROUTE name for SFBool field named topToBottom.
      See Also:
    • toField_TOPTOBOTTOM

      public static final String toField_TOPTOBOTTOM
      toField ROUTE name for SFBool field named topToBottom.
      See Also:
  • Constructor Details

    • FontStyle

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

      public FontStyle(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