Package org.xj3d.sai.internal.node.text
Class SAIFontStyle
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.text.SAIFontStyle
- All Implemented Interfaces:
FontStyle
,X3DFontStyleNode
,X3DNode
A concrete implementation of the FontStyle node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Field Summary
Fields inherited from class org.web3d.vrml.scripting.sai.BaseNode
accessPermitted, fieldQueue, fieldRefMap, realNode
-
Constructor Summary
ConstructorsConstructorDescriptionSAIFontStyle
(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
Return the family value in the argument String[]boolean
Return the horizontal boolean value.void
getJustify
(String[] val) Return the justify value in the argument String[]Return the language String value.boolean
Return the leftToRight boolean value.int
Return the number of MFString items in the family field.int
Return the number of MFString items in the justify field.float
getSize()
Return the size float value.float
Return the spacing float value.getStyle()
Return the style String value.boolean
Return the topToBottom boolean value.void
Set the family field.void
setHorizontal
(boolean val) Set the horizontal field.void
setJustify
(String[] val) Set the justify field.void
setLanguage
(String val) Set the language field.void
setLeftToRight
(boolean val) Set the leftToRight field.void
setSize
(float val) Set the size field.void
setSpacing
(float val) Set the spacing field.void
Set the style field.void
setTopToBottom
(boolean val) Set the topToBottom field.Methods inherited from class org.web3d.vrml.scripting.sai.BaseNode
checkAccess, dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIFontStyle
public SAIFontStyle(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf
-
-
-
Method Details
-
getNumFamily
public int getNumFamily()Return the number of MFString items in the family field.- Specified by:
getNumFamily
in interfaceFontStyle
- Returns:
- the number of MFString items in the family field.
-
getFamily
-
setFamily
-
getHorizontal
public boolean getHorizontal()Return the horizontal boolean value.- Specified by:
getHorizontal
in interfaceFontStyle
- Returns:
- The horizontal boolean value.
-
setHorizontal
public void setHorizontal(boolean val) Set the horizontal field.- Specified by:
setHorizontal
in interfaceFontStyle
- Parameters:
val
- The boolean to set.
-
getNumJustify
public int getNumJustify()Return the number of MFString items in the justify field.- Specified by:
getNumJustify
in interfaceFontStyle
- Returns:
- the number of MFString items in the justify field.
-
getJustify
Return the justify value in the argument String[]- Specified by:
getJustify
in interfaceFontStyle
- Parameters:
val
- The String[] to initialize.
-
setJustify
Set the justify field.- Specified by:
setJustify
in interfaceFontStyle
- Parameters:
val
- The String[] to set.
-
getLanguage
Return the language String value.- Specified by:
getLanguage
in interfaceFontStyle
- Returns:
- The language String value.
-
setLanguage
Set the language field.- Specified by:
setLanguage
in interfaceFontStyle
- Parameters:
val
- The String to set.
-
getLeftToRight
public boolean getLeftToRight()Return the leftToRight boolean value.- Specified by:
getLeftToRight
in interfaceFontStyle
- Returns:
- The leftToRight boolean value.
-
setLeftToRight
public void setLeftToRight(boolean val) Set the leftToRight field.- Specified by:
setLeftToRight
in interfaceFontStyle
- Parameters:
val
- The boolean to set.
-
getSize
-
setSize
-
getSpacing
public float getSpacing()Return the spacing float value.- Specified by:
getSpacing
in interfaceFontStyle
- Returns:
- The spacing float value.
-
setSpacing
public void setSpacing(float val) Set the spacing field.- Specified by:
setSpacing
in interfaceFontStyle
- Parameters:
val
- The float to set.
-
getStyle
-
setStyle
-
getTopToBottom
public boolean getTopToBottom()Return the topToBottom boolean value.- Specified by:
getTopToBottom
in interfaceFontStyle
- Returns:
- The topToBottom boolean value.
-
setTopToBottom
public void setTopToBottom(boolean val) Set the topToBottom field.- Specified by:
setTopToBottom
in interfaceFontStyle
- Parameters:
val
- The boolean to set.
-