|
Eclipse Draw2d 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.draw2d.geometry.Point
org.eclipse.draw2d.geometry.PrecisionPoint
public class PrecisionPoint
| Field Summary | |
|---|---|
double |
preciseX
Double value for X |
double |
preciseY
Double value for Y |
| Fields inherited from class org.eclipse.draw2d.geometry.Point |
|---|
SINGLETON, x, y |
| Constructor Summary | |
|---|---|
PrecisionPoint()
Constructor for PrecisionPoint. |
|
PrecisionPoint(double x,
double y)
Constructor for PrecisionPoint. |
|
PrecisionPoint(int x,
int y)
Constructor for PrecisionPoint. |
|
PrecisionPoint(Point copy)
Constructor for PrecisionPoint. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Test for equality. |
Point |
getCopy()
|
void |
performScale(double factor)
Scales this object by the scale factor. |
void |
performTranslate(int dx,
int dy)
Translates this object horizontally by dx and vertically by
dy. |
double |
preciseX()
Returns double x coordinate |
double |
preciseY()
Returns double y coordinate |
Point |
setLocation(Point pt)
Sets the location of this Point to the specified Point. |
void |
updateInts()
Updates the integer fields using the precise versions. |
| Methods inherited from class org.eclipse.draw2d.geometry.Point |
|---|
getDifference, getDistance, getDistance2, getDistanceOrthogonal, getNegated, getPosition, getScaled, getSWTPoint, getTranslated, getTranslated, getTranslated, getTransposed, hashCode, max, min, negate, scale, scale, setLocation, toString, translate, translate, translate, transpose |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double preciseX
public double preciseY
| Constructor Detail |
|---|
public PrecisionPoint()
public PrecisionPoint(Point copy)
copy - Point from which the initial values are taken
public PrecisionPoint(int x,
int y)
x - X valuey - Y value
public PrecisionPoint(double x,
double y)
x - X valuey - Y value| Method Detail |
|---|
public Point getCopy()
getCopy in class PointPoint.getCopy()public void performScale(double factor)
Translatable
performScale in interface TranslatableperformScale in class Pointfactor - The scale factorPoint.performScale(double)
public void performTranslate(int dx,
int dy)
Translatabledx and vertically by
dy.
performTranslate in interface TranslatableperformTranslate in class Pointdx - The amount to translate horizontallydy - The amount to translate verticallyPoint.performTranslate(int, int)public Point setLocation(Point pt)
Point
setLocation in class Pointpt - the Location
this for conveniencePoint.setLocation(Point)public final void updateInts()
public double preciseX()
Pointdouble x coordinate
preciseX in class Pointdouble x coordinatePoint.preciseX()public double preciseY()
Pointdouble y coordinate
preciseY in class Pointdouble y coordinatePoint.preciseY()public boolean equals(Object o)
Point
equals in class Pointo - Object being tested for equality
Point.equals(java.lang.Object)
|
Eclipse Draw2d 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||