public class TransformState extends Object
Constructor and Description |
---|
TransformState() |
TransformState(PointGraphics g) |
Modifier and Type | Method and Description |
---|---|
TransformState |
getFrom(PointGraphics g) |
AffineTransform |
getTransform(AffineTransform dest)
Get the current transform for this TransformState.
|
TransformState |
restore() |
TransformState |
rotate(double theta)
Rotate about 0,0 by an angle of theta radians clockwise.
|
TransformState |
rotate(double theta,
double cx,
double cy)
Rotate about cx,cy by an angle of theta radians clockwise.
|
TransformState |
rotatePageRightAngle(int rotateType,
double pageWidth,
double pageHeight) |
TransformState |
rotateRightAngle(int rotateType) |
TransformState |
rotateRightAngle(int rotateType,
double cx,
double cy) |
TransformState |
translate(double tx,
double ty)
Translate the PointGraphics associated with this TransformState.
|
public TransformState()
public TransformState(PointGraphics g)
public TransformState getFrom(PointGraphics g)
public TransformState restore()
public AffineTransform getTransform(AffineTransform dest)
dest
- a destination AffineTransform. If it is null a new one
will be created and returned.public TransformState translate(double tx, double ty)
tx
- the change in x-coordinate.ty
- the change in y-coordinate.public TransformState rotate(double theta)
theta
- the angle to rotate in radians clockwise.public TransformState rotate(double theta, double cx, double cy)
theta
- the angle to rotate in radians clockwise.public TransformState rotatePageRightAngle(int rotateType, double pageWidth, double pageHeight)
public TransformState rotateRightAngle(int rotateType, double cx, double cy)
public TransformState rotateRightAngle(int rotateType)