org.apache.batik.ext.awt.g2d

Class TransformStackElement

public abstract class TransformStackElement extends Object implements Cloneable

Contains a description of an elementary transform stack element, such as a rotate or translate. A transform stack element has a type and a value, which is an array of double values.
Constructor Summary
protected TransformStackElement(TransformType type, double[] transformParameters)
Method Summary
Objectclone()
booleanconcatenate(TransformStackElement stackElement)
static TransformStackElementcreateGeneralTransformElement(AffineTransform txf)
static TransformStackElementcreateRotateElement(double theta)
static TransformStackElementcreateScaleElement(double scaleX, double scaleY)
static TransformStackElementcreateShearElement(double shearX, double shearY)
static TransformStackElementcreateTranslateElement(double tx, double ty)
double[]getTransformParameters()
TransformTypegetType()
booleanisIdentity()

Constructor Detail

TransformStackElement

protected TransformStackElement(TransformType type, double[] transformParameters)

Parameters: type transform type transformParameters parameters for transform

Method Detail

clone

public Object clone()

Returns: an object which is a deep copy of this one

concatenate

public boolean concatenate(TransformStackElement stackElement)

createGeneralTransformElement

public static TransformStackElement createGeneralTransformElement(AffineTransform txf)

createRotateElement

public static TransformStackElement createRotateElement(double theta)

createScaleElement

public static TransformStackElement createScaleElement(double scaleX, double scaleY)

createShearElement

public static TransformStackElement createShearElement(double shearX, double shearY)

createTranslateElement

public static TransformStackElement createTranslateElement(double tx, double ty)

getTransformParameters

public double[] getTransformParameters()

Returns: array of values containing this transform element's parameters

getType

public TransformType getType()

Returns: this transform type

isIdentity

public boolean isIdentity()

Returns: true iff this transform is the identity transform

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.