|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Specifies methods to rotate and flip images.
Method Summary | |
void |
flip(int flipMode)
Flips the image. |
int |
getFlipMode()
Returns the flip mode. |
double |
getRotationAngle()
Returns the rotation angle. |
double |
getShearFactor()
Returns the shear factor. |
void |
resetManipulation()
Resets manipulation |
void |
rotate(double theta)
Rotates the currently displayed image. |
void |
rotate(double theta,
int rotCenterX,
int rotCenterY)
Rotates the currently displayed image at a specified pivot point. |
void |
setFlipMode(int flipMode)
Sets the flip mode. |
void |
setRotationAngle(double theta)
Sets the rotation angle. |
void |
setShearFactor(double shear)
Sets the shear factor. |
void |
shear(double shx,
double shy)
Shears the currently displayed image. |
Method Detail |
public void setFlipMode(int flipMode)
flipMode
- the flip modepublic int getFlipMode()
public double getRotationAngle()
public void setRotationAngle(double theta)
the
- rotation angle.public double getShearFactor()
public void setShearFactor(double shear)
the
- shear factor.public void rotate(double theta)
theta
- the rotation angle in radians.public void rotate(double theta, int rotCenterX, int rotCenterY)
theta
- the rotation angle in radians.rotCenterX
- the X rotation center.rotCenterY
- the Y rotation center.public void flip(int flipMode)
flipMode
- the flip mode.
Four flip modes are: NORMAL, LEFT_RIGHT, TOP_BOTTOM,
LEFT_RIGHT_TOP_BOTTOMpublic void shear(double shx, double shy)
shx
- the shear in the x direction.shy
- the shear in the y direction.public void resetManipulation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |