vrml
Class BaseNode

java.lang.Object
  extended by vrml.BaseNode
Direct Known Subclasses:
Node, Script

public abstract class BaseNode
extends java.lang.Object

Base class for all VRML nodes.


Constructor Summary
BaseNode()
           
BaseNode(long peer)
           
 
Method Summary
protected  void dispose()
          Destroy the native peer instance.
protected  void finalize()
          Finalize.
 Browser getBrowser()
          Get the Browser associated with this node.
 java.lang.String getType()
          Returns the type of the node.
 java.lang.String toString()
          Returns a string representation of the node.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseNode

public BaseNode()

BaseNode

public BaseNode(long peer)
Method Detail

dispose

protected void dispose()
Destroy the native peer instance. Normally this method is called from finalize(). If it is called before finalization, only finalize() can safely be called on the instance subsequently.


finalize

protected void finalize()
                 throws java.lang.Throwable
Finalize.

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

getType

public java.lang.String getType()
Returns the type of the node. If the node is a prototype it returns the name of the prototype.

Returns:
Type of the node.

getBrowser

public Browser getBrowser()
Get the Browser associated with this node.

Returns:
the Browser associated with this node.

toString

public java.lang.String toString()
Returns a string representation of the node.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the node.