|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.geometry.Transform
Provides support for transformations of scaling, translation and rotation.
Constructor Summary | |
Transform()
|
Method Summary | |
Point |
getTransformed(Point p)
Returns a new transformed Point of the input Point based on the transformation values set. |
void |
setRotation(double angle)
Sets the rotation angle. |
void |
setScale(double scale)
Sets the value for the amount of scaling to be done along both axes. |
void |
setScale(double x,
double y)
Sets the value for the amount of scaling to be done along X and Y axes individually. |
void |
setTranslation(double x,
double y)
Sets the translation amounts for both axes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Transform()
Method Detail |
public void setScale(double scale)
scale
- Scale factorpublic void setScale(double x, double y)
x
- Amount of scaling on X axisy
- Amount of scaling on Y axispublic void setRotation(double angle)
angle
- Angle of rotationpublic void setTranslation(double x, double y)
x
- Amount of shift on X axisy
- Amount of shift on Y axispublic Point getTransformed(Point p)
p
- Point being transformed
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |