edu.umd.cs.jazz
Class ZBoundsLocator

java.lang.Object
  |
  +--edu.umd.cs.jazz.ZLocator
        |
        +--edu.umd.cs.jazz.ZBoundsLocator

public class ZBoundsLocator
extends ZLocator

ZBoundsLocator is used to locate a points on the bounds of a scene graph object in the coordinate system of that scene graph object.

Author:
Jesse Grosjean

Constructor Summary
protected ZBoundsLocator(ZSceneGraphObject aSceneGraphObject, int aSide)
          ZBoundsLocators should be created using the provided static factory methodes.
 
Method Summary
static ZBoundsLocator createEastLocator(ZSceneGraphObject aSceneGraphObject)
          Create and return a new locator on the east side of the aSceneGraphObject parameter.
static ZBoundsLocator createNorthEastLocator(ZSceneGraphObject aSceneGraphObject)
          Create and return a new locator on the north east side of the aSceneGraphObject parameter.
static ZBoundsLocator createNorthLocator(ZSceneGraphObject aSceneGraphObject)
          Create and return a new locator on the north side of the aSceneGraphObject parameter.
static ZBoundsLocator createNorthWestLocator(ZSceneGraphObject aSceneGraphObject)
          Create and return a new locator on the north west side of the aSceneGraphObject parameter.
static ZBoundsLocator createSouthEastLocator(ZSceneGraphObject aSceneGraphObject)
          Create and return a new locator on the south east side of the aSceneGraphObject parameter.
static ZBoundsLocator createSouthLocator(ZSceneGraphObject aSceneGraphObject)
          Create and return a new locator on the south side of the aSceneGraphObject parameter.
static ZBoundsLocator createSouthWestLocator(ZSceneGraphObject aSceneGraphObject)
          Create and return a new locator on the south west side of the aSceneGraphObject parameter.
static ZBoundsLocator createWestLocator(ZSceneGraphObject aSceneGraphObject)
          Create and return a new locator on the west side of the aSceneGraphObject parameter.
 double getX()
          Return the x coord of the located point.
 double getY()
          Return the y coord of the located point.
 
Methods inherited from class edu.umd.cs.jazz.ZLocator
getNormal, getPoint, getSceneGraphObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZBoundsLocator

protected ZBoundsLocator(ZSceneGraphObject aSceneGraphObject,
                         int aSide)
ZBoundsLocators should be created using the provided static factory methodes.

Method Detail

getX

public double getX()
Return the x coord of the located point.

Overrides:
getX in class ZLocator

getY

public double getY()
Return the y coord of the located point.

Overrides:
getY in class ZLocator

createEastLocator

public static ZBoundsLocator createEastLocator(ZSceneGraphObject aSceneGraphObject)
Create and return a new locator on the east side of the aSceneGraphObject parameter.


createNorthEastLocator

public static ZBoundsLocator createNorthEastLocator(ZSceneGraphObject aSceneGraphObject)
Create and return a new locator on the north east side of the aSceneGraphObject parameter.


createNorthWestLocator

public static ZBoundsLocator createNorthWestLocator(ZSceneGraphObject aSceneGraphObject)
Create and return a new locator on the north west side of the aSceneGraphObject parameter.


createNorthLocator

public static ZBoundsLocator createNorthLocator(ZSceneGraphObject aSceneGraphObject)
Create and return a new locator on the north side of the aSceneGraphObject parameter.


createSouthLocator

public static ZBoundsLocator createSouthLocator(ZSceneGraphObject aSceneGraphObject)
Create and return a new locator on the south side of the aSceneGraphObject parameter.


createWestLocator

public static ZBoundsLocator createWestLocator(ZSceneGraphObject aSceneGraphObject)
Create and return a new locator on the west side of the aSceneGraphObject parameter.


createSouthWestLocator

public static ZBoundsLocator createSouthWestLocator(ZSceneGraphObject aSceneGraphObject)
Create and return a new locator on the south west side of the aSceneGraphObject parameter.


createSouthEastLocator

public static ZBoundsLocator createSouthEastLocator(ZSceneGraphObject aSceneGraphObject)
Create and return a new locator on the south east side of the aSceneGraphObject parameter.



Copyright � 2003 by University of Maryland, College Park, MD 20742, USA All rights reserved.