|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.dom.svg.AbstractSVGTransform
public abstract class AbstractSVGTransform
Abstract implementation of SVGTransform.
| Field Summary | |
|---|---|
protected 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. |
| Fields inherited from interface org.w3c.dom.svg.SVGTransform |
|---|
SVG_TRANSFORM_MATRIX, SVG_TRANSFORM_ROTATE, SVG_TRANSFORM_SCALE, SVG_TRANSFORM_SKEWX, SVG_TRANSFORM_SKEWY, SVG_TRANSFORM_TRANSLATE, SVG_TRANSFORM_UNKNOWN |
| Constructor Summary | |
|---|---|
AbstractSVGTransform()
|
|
| Method Summary | |
|---|---|
void |
assign(AbstractSVGTransform t)
Copies the value of the specified transformation into this object. |
protected abstract org.w3c.dom.svg.SVGMatrix |
createMatrix()
Creates and returns a new SVGMatrix for exposing the
transformation as a matrix. |
float |
getAngle()
DOM: Implements SVGTransform.getAngle(). |
org.w3c.dom.svg.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(org.w3c.dom.svg.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected short type
protected AffineTransform affineTransform
protected float angle
protected float x
protected float y
| Constructor Detail |
|---|
public AbstractSVGTransform()
| Method Detail |
|---|
protected abstract org.w3c.dom.svg.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().
getType in interface org.w3c.dom.svg.SVGTransformpublic org.w3c.dom.svg.SVGMatrix getMatrix()
SVGTransform.getMatrix().
getMatrix in interface org.w3c.dom.svg.SVGTransformpublic float getAngle()
SVGTransform.getAngle().
getAngle in interface org.w3c.dom.svg.SVGTransformpublic void setMatrix(org.w3c.dom.svg.SVGMatrix matrix)
SVGTransform.setMatrix(SVGMatrix).
setMatrix in interface org.w3c.dom.svg.SVGTransform
public void setTranslate(float tx,
float ty)
SVGTransform.setTranslate(float,float).
setTranslate in interface org.w3c.dom.svg.SVGTransform
public void setScale(float sx,
float sy)
SVGTransform.setScale(float,float).
setScale in interface org.w3c.dom.svg.SVGTransform
public void setRotate(float angle,
float cx,
float cy)
SVGTransform.setRotate(float,float,float).
setRotate in interface org.w3c.dom.svg.SVGTransformpublic void setSkewX(float angle)
SVGTransform.setSkewX(float).
setSkewX in interface org.w3c.dom.svg.SVGTransformpublic void setSkewY(float angle)
SVGTransform.setSkewY(float).
setSkewY in interface org.w3c.dom.svg.SVGTransform
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||