Package org.xj3d.sai.external.node.text
Class SAIText
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.text.SAIText
- All Implemented Interfaces:
Text
,X3DGeometryNode
,X3DNode
A concrete implementation of the Text node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIText
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionReturn the fontStyle X3DNode value.void
getLength
(float[] val) Return the length value in the argument float[]float
Return the maxExtent float value.int
Return the number of MFFloat items in the length field.int
Return the number of MFString items in the string field.boolean
getSolid()
Return the solid boolean value.void
Return the string value in the argument String[]void
Set the fontStyle field.void
Set the fontStyle field.void
setLength
(float[] val) Set the length field.void
setMaxExtent
(float val) Set the maxExtent field.void
setSolid
(boolean val) Set the solid field.void
Set the string field.Methods inherited from class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIText
public SAIText(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
fieldFactory
-queue
-
-
-
Method Details
-
getNumString
public int getNumString()Return the number of MFString items in the string field.- Specified by:
getNumString
in interfaceText
- Returns:
- the number of MFString items in the string field.
-
getString
-
setString
-
getFontStyle
Return the fontStyle X3DNode value.- Specified by:
getFontStyle
in interfaceText
- Returns:
- The fontStyle X3DNode value.
-
setFontStyle
Set the fontStyle field.- Specified by:
setFontStyle
in interfaceText
- Parameters:
val
- The X3DFontStyleNode to set.
-
setFontStyle
Set the fontStyle field.- Specified by:
setFontStyle
in interfaceText
- Parameters:
val
- The X3DProtoInstance to set.
-
getNumLength
public int getNumLength()Return the number of MFFloat items in the length field.- Specified by:
getNumLength
in interfaceText
- Returns:
- the number of MFFloat items in the length field.
-
getLength
-
setLength
-
getMaxExtent
public float getMaxExtent()Return the maxExtent float value.- Specified by:
getMaxExtent
in interfaceText
- Returns:
- The maxExtent float value.
-
setMaxExtent
public void setMaxExtent(float val) Set the maxExtent field.- Specified by:
setMaxExtent
in interfaceText
- Parameters:
val
- The float to set.
-
getSolid
-
setSolid
-