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

Constructor Index

 o FontStyle()
Default Constructor.
 o FontStyle(Browser)
Default Constructor when you wish to supply your own Browser reference.
 o 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.
 o FontStyle(String[], boolean, String[], String, boolean, float, float, String, boolean)
Constructor used when you want to create a non-default FontStyle.

Method Index

 o cleanup()
Call when about to remove the node from the scenegraph.
 o clone()
Make a clone of this object
 o get_family()
Get the family that this font belongs to
 o get_horizontal()
Is this font to appear horizontal or Vertical
 o get_justify()
How is this string to be justified.
 o get_language()
Get the language that this font represents.
 o get_leftToRight()
Is this a left to right font or right to left?
 o get_size()
Get the size of the font used.
 o get_spacing()
Get the spacing distance between characters.
 o get_style()
Get the style of the font used (Bold, Italic etc).
 o get_topToBottom()
Is this a top to bottom font or bottom to top?
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

 o FontStyle
 public FontStyle()
Default Constructor. Creates a default FontStyle

 o FontStyle
 public FontStyle(Browser b)
Default Constructor when you wish to supply your own Browser reference. Creates a default FontStyle

 o 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.

 o 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.

Methods

 o cleanup
 public void cleanup()
Call when about to remove the node from the scenegraph.

Overrides:
cleanup in class VrmlObject
 o 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
 o get_family
 public String[] get_family()
Get the family that this font belongs to

Returns:
The name of the font family
 o 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
 o get_justify
 public String[] get_justify()
How is this string to be justified.

Returns:
String representing the justification used: "LEFT", "CENTER", "RIGHT"
 o get_language
 public String get_language()
Get the language that this font represents.

Returns:
Description of the language used.
 o 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.
 o get_size
 public float get_size()
Get the size of the font used.

Returns:
the font size used.
 o get_spacing
 public float get_spacing()
Get the spacing distance between characters.

Returns:
The currently used spacing.
 o get_style
 public String get_style()
Get the style of the font used (Bold, Italic etc).

Returns:
the font style used.
 o 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.
 o 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