public abstract class TransformStackElement
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private double[] |
transformParameters
Value
|
private TransformType |
type
Transform type
|
Modifier | Constructor and Description |
---|---|
protected |
TransformStackElement(TransformType type,
double[] transformParameters) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
concatenate(TransformStackElement stackElement) |
static TransformStackElement |
createGeneralTransformElement(java.awt.geom.AffineTransform txf) |
static TransformStackElement |
createRotateElement(double theta) |
static TransformStackElement |
createScaleElement(double scaleX,
double scaleY) |
static TransformStackElement |
createShearElement(double shearX,
double shearY) |
static TransformStackElement |
createTranslateElement(double tx,
double ty) |
double[] |
getTransformParameters() |
TransformType |
getType() |
boolean |
isIdentity() |
(package private) abstract boolean |
isIdentity(double[] parameters)
Implementation should determine if the parameter list represents
an identity transform, for the instance transform type.
|
private double[] |
matrixMultiply(double[] matrix1,
double[] matrix2)
Multiplies two 2x3 matrices of double precision values
|
private TransformType type
private double[] transformParameters
protected TransformStackElement(TransformType type, double[] transformParameters)
type
- transform typetransformParameters
- parameters for transformpublic java.lang.Object clone()
clone
in class java.lang.Object
public static TransformStackElement createTranslateElement(double tx, double ty)
public static TransformStackElement createRotateElement(double theta)
public static TransformStackElement createScaleElement(double scaleX, double scaleY)
public static TransformStackElement createShearElement(double shearX, double shearY)
public static TransformStackElement createGeneralTransformElement(java.awt.geom.AffineTransform txf)
abstract boolean isIdentity(double[] parameters)
public boolean isIdentity()
public double[] getTransformParameters()
public TransformType getType()
public boolean concatenate(TransformStackElement stackElement)
private double[] matrixMultiply(double[] matrix1, double[] matrix2)