|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.geom.AffineTransform
scenic.geom.TransformBuilder
public class TransformBuilder
This is a convenience class for combining different basic transforms. The class has similar methods then AffineTransform for modifying the, transformation, with the exception that they return the object so that multiple transformations can be combined easily. An example usage is: new TransformBuilder().translateBy(10, 0).scaleBy(5, 5).
| Field Summary |
|---|
| Fields inherited from class java.awt.geom.AffineTransform |
|---|
TYPE_FLIP, TYPE_GENERAL_ROTATION, TYPE_GENERAL_SCALE, TYPE_GENERAL_TRANSFORM, TYPE_IDENTITY, TYPE_MASK_ROTATION, TYPE_MASK_SCALE, TYPE_QUADRANT_ROTATION, TYPE_TRANSLATION, TYPE_UNIFORM_SCALE |
| Constructor Summary | |
|---|---|
TransformBuilder()
|
|
TransformBuilder(java.awt.geom.AffineTransform t)
|
|
| Method Summary | |
|---|---|
TransformBuilder |
rotateBy(double theta)
Similar to the rotate method in AffineTransform class, except that the angle is given in degrees instead of radians. |
TransformBuilder |
rotateBy(double theta,
double x,
double y)
Similar to the rotate method in AffineTransform class, except that the angle is given in degrees instead of radians. |
TransformBuilder |
scaleBy(double sx,
double sy)
|
TransformBuilder |
shearBy(double shx,
double shy)
|
TransformBuilder |
transformBy(java.awt.geom.AffineTransform Tx)
|
TransformBuilder |
translateBy(double tx,
double ty)
|
| Methods inherited from class java.awt.geom.AffineTransform |
|---|
clone, concatenate, createInverse, createTransformedShape, deltaTransform, deltaTransform, equals, getDeterminant, getMatrix, getRotateInstance, getRotateInstance, getScaleInstance, getScaleX, getScaleY, getShearInstance, getShearX, getShearY, getTranslateInstance, getTranslateX, getTranslateY, getType, hashCode, inverseTransform, inverseTransform, isIdentity, preConcatenate, rotate, rotate, scale, setToIdentity, setToRotation, setToRotation, setToScale, setToShear, setToTranslation, setTransform, setTransform, shear, toString, transform, transform, transform, transform, transform, transform, translate |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TransformBuilder()
public TransformBuilder(java.awt.geom.AffineTransform t)
| Method Detail |
|---|
public TransformBuilder translateBy(double tx,
double ty)
public TransformBuilder rotateBy(double theta,
double x,
double y)
public TransformBuilder rotateBy(double theta)
public TransformBuilder scaleBy(double sx,
double sy)
public TransformBuilder shearBy(double shx,
double shy)
public TransformBuilder transformBy(java.awt.geom.AffineTransform Tx)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||