All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.external.geometry.Text
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.external.geometry.VrmlObject
|
+----vlc.vrml.external.geometry.Geometry
|
+----vlc.vrml.external.geometry.Text
- public class Text
- extends Geometry
JVerge
- Version:
- 0.8 (beta 4)
Copyright 1997
The Virtual Light Company
under the
GNU LGPL
The latest information and bugs in JVerge can be found at
http://www.vlc.com.au/JVerge
For definition of the Anchor node please see the
VRML 97 Anchor specification
- Author:
- Justin Couch justin@vlc.com.au
-
Text()
- Default Constructor.
-
Text(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
cleanup()
- Call when about to remove the node from the scenegraph.
-
clone()
- Make a clone of this object
-
get_fontStyle()
- Get the current FontStyle node.
-
get_length()
- Get the current length of each string in the local coordinate system.
-
get_maxExtent()
- Get the absolute maximum length of all strings to be displayed in the
local coordinate system.
-
get_string()
- Get the currently set string values.
-
set_fontStyle(FontStyle)
- Set the FontStyle node to be used.
-
set_length(float[])
- Set the length of each string in the local coordinate system.
-
set_maxExtent(float)
- Set the absolute maximum length of all strings to be displayed in the
local coordinate system.
-
set_string(String[])
- Set the text strings to be rendered.
-
writeReset()
- Used for maintaining the reference counting when trying to do DEF/USE in
the write to stream method.
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
Text
public Text()
- Default Constructor. Creates a default Text node
Text
public Text(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default Text node
cleanup
public void cleanup()
- Call when about to remove the node from the scenegraph.
- Overrides:
- cleanup in class VrmlObject
writeReset
public void writeReset()
- Used for maintaining the reference counting when trying to do DEF/USE in
the write to stream method.
- Overrides:
- writeReset in class VrmlObject
writeToStream
public void writeToStream(int indent)
- Prints the formatted contents of this node to the given stream.
- Parameters:
- indent - The number of spaces to indent this node in the string
- Overrides:
- writeToStream in class VrmlObject
set_fontStyle
public void set_fontStyle(FontStyle fontStyle)
- Set the FontStyle node to be used.
- Parameters:
- A - valid JVerge FontStyle node or null to remove the current.
- See Also:
- FontStyle
get_fontStyle
public FontStyle get_fontStyle()
- Get the current FontStyle node.
- Returns:
- A FontStyle node or null if none set.
set_string
public void set_string(String strings[])
- Set the text strings to be rendered.
- Parameters:
- strings - List of strings to be shown. One string represents one
line of text.
get_string
public String[] get_string()
- Get the currently set string values.
- Returns:
- The strings being shown. One per line.
set_length
public void set_length(float lengths[])
- Set the length of each string in the local coordinate system.
- Parameters:
- lengths - The extents for each line of text
get_length
public float[] get_length()
- Get the current length of each string in the local coordinate system.
- Parameters:
- lengths - The extents for each line of text
set_maxExtent
public void set_maxExtent(float maxExtent)
- Set the absolute maximum length of all strings to be displayed in the
local coordinate system. Anything greater than this will scale the
string lenght back to fit
- Parameters:
- maxExtent - maximum length from 0 to infinity
get_maxExtent
public float get_maxExtent()
- Get the absolute maximum length of all strings to be displayed in the
local coordinate system.
- Returns:
- The maximum length from 0 to infinity
clone
public Object clone()
- Make a clone of this object
- Returns:
- A deep clone copy of this object
- Overrides:
- clone in class VrmlObject
All Packages Class Hierarchy This Package Previous Next Index