|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.page.JCUnit.Point
Point is roughly equivalent to java.awt.Point, but the coordinates are stored as double-precision numbers and the units of measurement are recorded as well.
Field Summary | |
com.klg.jclass.page.JCUnit |
units
JCUnit object representing the units of linear measurement. |
double |
x
The coordinates of the point being represented. |
double |
y
The coordinates of the point being represented. |
Constructor Summary | |
JCUnit.Point()
Creates a point at (0, 0) using the default units. |
|
JCUnit.Point(double x,
double y)
Creates a point at (x, y) using the current units. |
|
JCUnit.Point(com.klg.jclass.page.JCUnit units)
Creates a point at (0, 0) using the given units. |
|
JCUnit.Point(com.klg.jclass.page.JCUnit units,
double x,
double y)
Creates a point at (x, y) using the given units. |
Method Summary | |
void |
assign(JCUnit.Point newValue)
Sets this point equal to the given one. |
Object |
clone()
Creates a clone of this Point. |
boolean |
equals(Object obj)
Compares an object to this Point. |
JCUnit.Measure |
getX()
Returns the x position as a measure. |
JCUnit.Measure |
getY()
Returns the y position as a measure. |
int |
hashCode()
Creates a hash that generates the same value depending on the property values. |
void |
setX(JCUnit.Measure newX)
Sets the value of the x coordinate based on a measure. |
void |
setY(JCUnit.Measure newY)
Sets the value of the y coordinate based on a measure. |
String |
toString()
Returns the point co-ordinates and units as a String. |
double |
xInt()
Gets the x position as a distance in internal units. |
double |
yInt()
Gets the y position as a distance in internal units. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public com.klg.jclass.page.JCUnit units
JCUnit
object representing the units of linear measurement.
public double x
public double y
Constructor Detail |
public JCUnit.Point()
public JCUnit.Point(com.klg.jclass.page.JCUnit units)
units
- the units in which the point is representedpublic JCUnit.Point(double x, double y)
x
- the x-coordinate of the point (measured in units)y
- the y-coordinate of the point (measured in units)public JCUnit.Point(com.klg.jclass.page.JCUnit units, double x, double y)
units
- the units in which the point is representedx
- the x-coordinate of the point (measured in units)y
- the y-coordinate of the point (measured in units)Method Detail |
public Object clone()
clone
in class Object
public JCUnit.Measure getX()
public void setX(JCUnit.Measure newX)
newX
- a Measure specifying the new x position of the Pointpublic double xInt()
public JCUnit.Measure getY()
public void setY(JCUnit.Measure newY)
newY
- a Measure specifying the new y position of the Pointpublic double yInt()
public void assign(JCUnit.Point newValue)
newValue
- the value to assign to this pointpublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- an Object to test for equality with this Point
true
if both objects are points and they are congruent
(independent of units)public String toString()
toString
in class Object
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |