All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.external.geometry.FontStyle
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.external.geometry.VrmlObject
|
+----vlc.vrml.external.geometry.FontStyle
- public class FontStyle
- extends VrmlObject
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
-
FontStyle()
- Default Constructor.
-
FontStyle(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
FontStyle(Browser, String[], boolean, String[], String, boolean, float, float, String, boolean)
- Constructor used when you want to create a non-default FontStyle and
supply your own Browser reference.
-
FontStyle(String[], boolean, String[], String, boolean, float, float, String, boolean)
- Constructor used when you want to create a non-default FontStyle.
-
cleanup()
- Call when about to remove the node from the scenegraph.
-
clone()
- Make a clone of this object
-
get_family()
- Get the family that this font belongs to
-
get_horizontal()
- Is this font to appear horizontal or Vertical
-
get_justify()
- How is this string to be justified.
-
get_language()
- Get the language that this font represents.
-
get_leftToRight()
- Is this a left to right font or right to left?
-
get_size()
- Get the size of the font used.
-
get_spacing()
- Get the spacing distance between characters.
-
get_style()
- Get the style of the font used (Bold, Italic etc).
-
get_topToBottom()
- Is this a top to bottom font or bottom to top?
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
FontStyle
public FontStyle()
- Default Constructor. Creates a default FontStyle
FontStyle
public FontStyle(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default FontStyle
FontStyle
public FontStyle(String family[],
boolean horizontal,
String justify[],
String language,
boolean leftToRight,
float size,
float spacing,
String style,
boolean topToBottom)
- Constructor used when you want to create a non-default FontStyle.
FontStyle
public FontStyle(Browser b,
String family[],
boolean horizontal,
String justify[],
String language,
boolean leftToRight,
float size,
float spacing,
String style,
boolean topToBottom)
- Constructor used when you want to create a non-default FontStyle and
supply your own Browser reference.
cleanup
public void cleanup()
- Call when about to remove the node from the scenegraph.
- Overrides:
- cleanup 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
get_family
public String[] get_family()
- Get the family that this font belongs to
- Returns:
- The name of the font family
get_horizontal
public boolean get_horizontal()
- Is this font to appear horizontal or Vertical
- Returns:
- true if it is to be horizontal, false for vertical
get_justify
public String[] get_justify()
- How is this string to be justified.
- Returns:
- String representing the justification used:
"LEFT", "CENTER", "RIGHT"
get_language
public String get_language()
- Get the language that this font represents.
- Returns:
- Description of the language used.
get_leftToRight
public boolean get_leftToRight()
- Is this a left to right font or right to left?
- Returns:
- true if the characters are drawn left to right.
get_size
public float get_size()
- Get the size of the font used.
- Returns:
- the font size used.
get_spacing
public float get_spacing()
- Get the spacing distance between characters.
- Returns:
- The currently used spacing.
get_style
public String get_style()
- Get the style of the font used (Bold, Italic etc).
- Returns:
- the font style used.
get_topToBottom
public boolean get_topToBottom()
- Is this a top to bottom font or bottom to top?
- Returns:
- true if the characters are drawn top to bottom.
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