All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.Locale

java.lang.Object
   |
   +----java.media.j3d.Locale

public class Locale
extends Object

Constructor Index

 o Locale(VirtualUniverse)
Constructs and initializes a new high resolution Locale object located at (0, 0, 0).
 o Locale(VirtualUniverse, HiResCoord)
Constructs and initializes a new high resolution Locale object at the location specified by the HiResCoord argument.
 o Locale(VirtualUniverse, int[], int[], int[])
Constructs and initializes a new high resolution Locale object from the parameters provided.

Method Index

 o addBranchGraph(BranchGroup)
Add a new branch graph rooted at BranchGroup to the list of branch graphs.
 o getAllBranchGraphs()
Get an Enumeration object of list of all branch graphs
 o getHiRes(HiResCoord)
Returns this node's HiResCoord.
 o getVirtualUniverse()
Retrieves the virtual universe that this Locale object is contained within.
 o numBranchGraphs()
Get number of branch graphs in this Locale.
 o removeBranchGraph(BranchGroup)
Removes a branch graph rooted at BranchGroup from the list of branch graphs.
 o replaceBranchGraph(BranchGroup, BranchGroup)
Search for the branch graph rooted at oldGroup in the list of branch graphs and replace it the branch graph rooted at newGroup.
 o setHiRes(HiResCoord)
Sets the HiRes coordinate of this Locale to the location specified by the HiRes argument.
 o setHiRes(int[], int[], int[])
Sets the HiRes coordinate of this Locale to the location specified by the parameters provided.

Constructors

 o Locale
 public Locale(VirtualUniverse universe)
Constructs and initializes a new high resolution Locale object located at (0, 0, 0).

Parameters:
universe - the virtual universe that will contain this Locale object
 o Locale
 public Locale(VirtualUniverse universe,
               int x[],
               int y[],
               int z[])
Constructs and initializes a new high resolution Locale object from the parameters provided.

Parameters:
universe - the virtual universe that will contain this Locale object
x - an eight element array specifying the x position
y - an eight element array specifying the y position
z - an eight element array specifying the z position
 o Locale
 public Locale(VirtualUniverse universe,
               HiResCoord hiRes)
Constructs and initializes a new high resolution Locale object at the location specified by the HiResCoord argument.

Parameters:
universe - the virtual universe that will contain this Locale object
hiRes - the HiRes coordinate to use in creating this Locale

Methods

 o getVirtualUniverse
 public VirtualUniverse getVirtualUniverse()
Retrieves the virtual universe that this Locale object is contained within.

Returns:
the virtual universe that this Locale object is contained within
 o setHiRes
 public void setHiRes(int x[],
                      int y[],
                      int z[])
Sets the HiRes coordinate of this Locale to the location specified by the parameters provided.

Parameters:
x - an eight element array specifying the x position
y - an eight element array specifying the y position
z - an eight element array specifying the z position
 o setHiRes
 public void setHiRes(HiResCoord hiRes)
Sets the HiRes coordinate of this Locale to the location specified by the HiRes argument.

Parameters:
hiRes - the HiRes coordinate specifying this node's new location
 o getHiRes
 public void getHiRes(HiResCoord hiRes)
Returns this node's HiResCoord.

Parameters:
hiRes - a HiResCoord object that will receive the HiRes coordinate of this Locale node
 o addBranchGraph
 public void addBranchGraph(BranchGroup branchGroup)
Add a new branch graph rooted at BranchGroup to the list of branch graphs.

Parameters:
branchGroup - root of the branch graph to be added
 o removeBranchGraph
 public void removeBranchGraph(BranchGroup branchGroup)
Removes a branch graph rooted at BranchGroup from the list of branch graphs.

Parameters:
branchGroup - root of the branch graph to be removed
 o replaceBranchGraph
 public void replaceBranchGraph(BranchGroup oldGroup,
                                BranchGroup newGroup)
Search for the branch graph rooted at oldGroup in the list of branch graphs and replace it the branch graph rooted at newGroup.

Parameters:
oldGroup - root of the branch graph to be replaced
newGroup - root of the branch graph to be replaced with
 o numBranchGraphs
 public int numBranchGraphs()
Get number of branch graphs in this Locale.

Returns:
number of branch graphs in this Locale.
 o getAllBranchGraphs
 public Enumeration getAllBranchGraphs()
Get an Enumeration object of list of all branch graphs

Returns:
an Enumeration object of all branch graphs.

All Packages  Class Hierarchy  This Package  Previous  Next  Index