Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.nodes.proto
Class ProtoROUTE

java.lang.Object
  extended by org.web3d.vrml.nodes.proto.ProtoROUTE
All Implemented Interfaces:
ROUTE

public class ProtoROUTE
extends java.lang.Object
implements ROUTE

Internal Proto handler representation of a ROUTE.

Version:
$Revision: 1.2 $
Author:
Justin Couch

Constructor Summary
ProtoROUTE(VRMLNodeType sn, int si, VRMLNodeType dn, int di)
          Create a new representation of a Java 3D route.
 
Method Summary
 int getDestinationIndex()
          Get the index of the destination field of this route
 VRMLNode getDestinationNode()
          Get the reference to the destination node of this route
 int getSourceIndex()
          Get the index of the source field of this route
 VRMLNode getSourceNode()
          Get the reference to the source node of this route
 java.lang.String toString()
          Print out a string representation of this route.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProtoROUTE

public ProtoROUTE(VRMLNodeType sn,
                  int si,
                  VRMLNodeType dn,
                  int di)
Create a new representation of a Java 3D route.

Parameters:
sn - The source node reference
si - The field index of the source node
dn - The destination node reference
di - The field index of the destination node
Method Detail

getSourceNode

public VRMLNode getSourceNode()
Get the reference to the source node of this route

Specified by:
getSourceNode in interface ROUTE
Returns:
The source node reference

getSourceIndex

public int getSourceIndex()
Get the index of the source field of this route

Specified by:
getSourceIndex in interface ROUTE
Returns:
The source node field index

getDestinationNode

public VRMLNode getDestinationNode()
Get the reference to the destination node of this route

Specified by:
getDestinationNode in interface ROUTE
Returns:
The destination node reference

getDestinationIndex

public int getDestinationIndex()
Get the index of the destination field of this route

Specified by:
getDestinationIndex in interface ROUTE
Returns:
The destination node field index

toString

public java.lang.String toString()
Print out a string representation of this route.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of the route

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium