EspressReport 6.6

quadbase.util
Class Point_2D

java.lang.Object
  extended by quadbase.util.Point_2D
All Implemented Interfaces:
java.lang.Cloneable

public class Point_2D
extends java.lang.Object
implements java.lang.Cloneable

This class contains methods to define and manipulate a 2D Point. The coordinates of the point are floating point numbers and can represent a relative position in the main chart window.

See Also:
IAnnotation, IReferenceObj

Field Summary
 float x
          The x, y coordinates.
 float y
          The x, y coordinates.
 
Constructor Summary
Point_2D()
          Null constructor
Point_2D(float _x, float _y)
          Constructor based on values
Point_2D(Point_2D p)
          Copy Constructor based on values
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks if the two points are the same or not.
 float getX()
          Get value of x.
 float getY()
          Get value of y.
 int hashCode()
          Returns the hash code for the object.
 void set(Point_2D p)
          Set the values based on the given point.
 void setX(float f)
          Set value of x.
 void setY(float f)
          Set value of y.
 java.lang.String toString()
          Returns the string representation of a 3D point
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public float x
The x, y coordinates.


y

public float y
The x, y coordinates.

Constructor Detail

Point_2D

public Point_2D()
Null constructor


Point_2D

public Point_2D(float _x,
                float _y)
Constructor based on values


Point_2D

public Point_2D(Point_2D p)
Copy Constructor based on values

Method Detail

toString

public java.lang.String toString()
Returns the string representation of a 3D point

Overrides:
toString in class java.lang.Object
Returns:
the string representation a point

equals

public boolean equals(java.lang.Object o)
Checks if the two points are the same or not.

Overrides:
equals in class java.lang.Object
Returns:
true iff coordinates of both vertices are equal.

hashCode

public int hashCode()
Returns the hash code for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
The int hash code.

getX

public float getX()
Get value of x.

Returns:
value of x

getY

public float getY()
Get value of y.

Returns:
value of y

setX

public void setX(float f)
Set value of x.

Parameters:
f - The x coordinate.

setY

public void setY(float f)
Set value of y.

Parameters:
f - The y coordinate.

set

public void set(Point_2D p)
Set the values based on the given point.

Parameters:
p - The input Point_2D object.

EspressReport 6.6