All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.generic.geometry.Anchor

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.generic.geometry.ChildrenNode
                   |
                   +----vlc.vrml.generic.geometry.GroupingNode
                           |
                           +----vlc.vrml.generic.geometry.Anchor

public class Anchor
extends GroupingNode
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 Anchor()
Default Constructor.
 o Anchor(float[], float[])
Default Constructor when you wish to supply your own Browser reference.

Method Index

 o cleanup()
Call when about to remove the node from the scenegraph.
 o clone()
Make a clone of this object
 o get_description()
Get the currently set description.
 o get_parameter()
Get the list of current parameters for the anchor
 o get_url()
Get the array of URLs that this node links to.
 o set_description(String)
Set the description field of the Anchor
 o set_parameter(String[])
Set the Anchor parameters.
 o set_url(String[])
Set the URL/URNs that this node links to.
 o writeToStream(int)
Prints the formatted contents of this node.

Constructors

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

 o Anchor
 public Anchor(float bboxCenter[],
               float bboxSize[])
Default Constructor when you wish to supply your own Browser reference. Creates a default Anchor

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.

Parameters:
indent - The number of spaces to indent this node in the string
Overrides:
writeToStream in class VrmlObject
 o set_description
 public void set_description(String val)
Set the description field of the Anchor

Parameters:
str - The string to be used for the description
 o set_parameter
 public void set_parameter(String val[])
Set the Anchor parameters. Each parameter occupies a single string as per the VRML 97 spec.

Parameters:
val - An array of strings for the parameters
 o set_url
 public void set_url(String val[])
Set the URL/URNs that this node links to. These can be any accepted form that the standard URL/URN representations permit.

Parameters:
urls - An array of the URL strings
 o get_description
 public String get_description()
Get the currently set description.

Returns:
A string representing the currently set description
 o get_parameter
 public String[] get_parameter()
Get the list of current parameters for the anchor

Returns:
An array of strings, one per parameter
 o get_url
 public String[] get_url()
Get the array of URLs that this node links to.

Returns:
The URL/URNs that this node links to one per string
 o clone
 public Object clone()
Make a clone of this object

Returns:
A deep clone copy of this object
Overrides:
clone in class GroupingNode

All Packages  Class Hierarchy  This Package  Previous  Next  Index