public abstract class AbstractSVGTransform
extends java.lang.Object
SVGTransform
.Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.AffineTransform |
affineTransform
The transformation as a Java2D {link AffineTransform}.
|
protected float |
angle
The angle of the transformation, if this transformation is a rotation
or a skew.
|
protected short |
type
Type of the transformation.
|
protected float |
x
The x coordinate of the center of the rotation, if this transformation
is a rotation.
|
protected float |
y
The y coordinate of the center of the rotation, if this transformation
is a rotation.
|
Constructor and Description |
---|
AbstractSVGTransform() |
Modifier and Type | Method and Description |
---|---|
void |
assign(AbstractSVGTransform t)
Copies the value of the specified transformation into this object.
|
protected abstract SVGMatrix |
createMatrix()
Creates and returns a new
SVGMatrix for exposing the
transformation as a matrix. |
float |
getAngle()
DOM: Implements
SVGTransform#getAngle() . |
SVGMatrix |
getMatrix()
DOM: Implements
SVGTransform#getMatrix() . |
short |
getType()
DOM: Implements
SVGTransform#getType() . |
float |
getX()
Returns the x coordinate of the center of the rotation, if this
transformation is a rotation.
|
float |
getY()
Returns the y coordinate of the center of the rotation, if this
transformation is a rotation.
|
void |
setMatrix(SVGMatrix matrix)
DOM: Implements
SVGTransform#setMatrix(SVGMatrix) . |
void |
setRotate(float angle,
float cx,
float cy)
DOM: Implements
SVGTransform#setRotate(float,float,float) . |
void |
setScale(float sx,
float sy)
DOM: Implements
SVGTransform#setScale(float,float) . |
void |
setSkewX(float angle)
DOM: Implements
SVGTransform#setSkewX(float) . |
void |
setSkewY(float angle)
DOM: Implements
SVGTransform#setSkewY(float) . |
void |
setTranslate(float tx,
float ty)
DOM: Implements
SVGTransform#setTranslate(float,float) . |
void |
setType(short type)
Sets the type of transformation.
|
protected short type
protected java.awt.geom.AffineTransform affineTransform
protected float angle
protected float x
protected float y
protected abstract SVGMatrix createMatrix()
SVGMatrix
for exposing the
transformation as a matrix.public void setType(short type)
public float getX()
public float getY()
public void assign(AbstractSVGTransform t)
public short getType()
SVGTransform#getType()
.public SVGMatrix getMatrix()
SVGTransform#getMatrix()
.public float getAngle()
SVGTransform#getAngle()
.public void setMatrix(SVGMatrix matrix)
SVGTransform#setMatrix(SVGMatrix)
.public void setTranslate(float tx, float ty)
SVGTransform#setTranslate(float,float)
.public void setScale(float sx, float sy)
SVGTransform#setScale(float,float)
.public void setRotate(float angle, float cx, float cy)
SVGTransform#setRotate(float,float,float)
.public void setSkewX(float angle)
SVGTransform#setSkewX(float)
.public void setSkewY(float angle)
SVGTransform#setSkewY(float)
.Copyright ? 2015 Apache Software Foundation. All Rights Reserved.