Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

phoebe.util
Class PPointLocator  view PPointLocator download PPointLocator.java

java.lang.Object
  extended byPNodeLocator
      extended byphoebe.util.PPointLocator

public class PPointLocator
extends PNodeLocator

A PNodeLocator that locates itself based on a known point. Generally defeats the purpose of a locator.


Field Summary
protected  java.awt.geom.Point2D location
          The location of everything is based on.
 
Constructor Summary
PPointLocator(PNode n, java.awt.geom.Point2D loc)
           
 
Method Summary
 java.awt.geom.Point2D getLocation()
          Returns the point around which this locator revolves.
 java.awt.geom.Point2D locatePoint(java.awt.geom.Point2D aDstPoint)
          Locates the input point on the known location point.
 double locateXOn(java.awt.geom.Point2D aNode)
          Returns the x location of the input point.
 double locateYOn(java.awt.geom.Point2D aNode)
          Returns the x location of the input point.
 void update(double xOffset, double yOffset)
          Updates the point based on offsets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

location

protected java.awt.geom.Point2D location
The location of everything is based on.

Constructor Detail

PPointLocator

public PPointLocator(PNode n,
                     java.awt.geom.Point2D loc)
Method Detail

locatePoint

public java.awt.geom.Point2D locatePoint(java.awt.geom.Point2D aDstPoint)
Locates the input point on the known location point.


locateXOn

public double locateXOn(java.awt.geom.Point2D aNode)
Returns the x location of the input point. I have no idea why this method would be useful. Perhaps it should go away?


locateYOn

public double locateYOn(java.awt.geom.Point2D aNode)
Returns the x location of the input point. I have no idea why this method would be useful. Perhaps it should go away?


update

public void update(double xOffset,
                   double yOffset)
Updates the point based on offsets.


getLocation

public java.awt.geom.Point2D getLocation()
Returns the point around which this locator revolves.