com.miginfocom.util.gfx.geometry
Class RefPoint

java.lang.Object
  extended by com.miginfocom.util.gfx.geometry.RefPoint
All Implemented Interfaces:
java.io.Serializable

public class RefPoint
extends java.lang.Object
implements java.io.Serializable

A point that is in reference to another point. It can however have x, y, or both set to absolute (AtNumber values.

See Also:
Serialized Form

Constructor Summary
RefPoint(AtRefNumber x, AtRefNumber y)
          Constructor.
RefPoint(float offsetX, float offsetY)
          Constructor for offset to another point.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 float getX(float refX)
          Return the x value.
 AtRefNumber getXNumber()
          Returns the x number reference
 float getY(float refY)
          Return the y value.
 AtRefNumber getYNumber()
          Returns the y number reference
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefPoint

public RefPoint(float offsetX,
                float offsetY)
Constructor for offset to another point.

Parameters:
offsetX - The absolute x-distance from the reference point's x-value.
offsetY - The absolute y-distance from the reference point's y-value.
See Also:
AtOffset

RefPoint

public RefPoint(AtRefNumber x,
                AtRefNumber y)
Constructor.

Parameters:
x - The x value that will be given the reference points x-value as the ref argument to
y - The y value that will be given the reference points y-value as the ref argument to
Method Detail

getXNumber

public AtRefNumber getXNumber()
Returns the x number reference

Returns:
The x number reference

getYNumber

public AtRefNumber getYNumber()
Returns the y number reference

Returns:
The y number reference

getX

public float getX(float refX)
Return the x value.

Parameters:
refX - The reference value
Returns:
The x value, possibily in reference to refX.

getY

public float getY(float refY)
Return the y value.

Parameters:
refY - The reference value
Returns:
The y value, possibily in reference to refY.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.