Package org.loboevolution.svg.dom
Class SVGTransformImpl
java.lang.Object
org.loboevolution.svg.dom.SVGTransformImpl
- All Implemented Interfaces:
SVGTransform
SVGTransformImpl class.
-
Field Summary
Fields inherited from interface org.loboevolution.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
ConstructorsConstructorDescriptionConstructor for SVGTransformImpl.SVGTransformImpl(short transformType) Constructor for SVGTransformImpl. -
Method Summary
Modifier and TypeMethodDescriptionfloatgetAngle()getAngle.getMatrix.shortgetType()getType.voidsetMatrix.voidsetRotate(float angle, float cx, float cy) setRotate.voidsetScale(float sx, float sy) setScale.voidsetSkewX(float angle) setSkewX.voidsetSkewY(float angle) setSkewY.voidsetTranslate(float tx, float ty) setTranslate.
-
Constructor Details
-
SVGTransformImpl
public SVGTransformImpl()Constructor for SVGTransformImpl.
-
SVGTransformImpl
public SVGTransformImpl(short transformType) Constructor for SVGTransformImpl.
- Parameters:
transformType- a short.
-
-
Method Details
-
getType
public short getType()getType.
- Specified by:
getTypein interfaceSVGTransform- Returns:
- a short.
-
getMatrix
getMatrix.
- Specified by:
getMatrixin interfaceSVGTransform- Returns:
- a
SVGMatrixobject.
-
getAngle
public float getAngle()getAngle.
- Specified by:
getAnglein interfaceSVGTransform- Returns:
- a float.
-
setMatrix
setMatrix.
- Specified by:
setMatrixin interfaceSVGTransform- Parameters:
matrix- aSVGMatrixobject.
-
setTranslate
public void setTranslate(float tx, float ty) setTranslate.
- Specified by:
setTranslatein interfaceSVGTransform- Parameters:
tx- a float.ty- a float.
-
setScale
public void setScale(float sx, float sy) setScale.
- Specified by:
setScalein interfaceSVGTransform- Parameters:
sx- a float.sy- a float.
-
setRotate
public void setRotate(float angle, float cx, float cy) setRotate.
- Specified by:
setRotatein interfaceSVGTransform- Parameters:
angle- a float.cx- a float.cy- a float.
-
setSkewX
public void setSkewX(float angle) setSkewX.
- Specified by:
setSkewXin interfaceSVGTransform- Parameters:
angle- a float.
-
setSkewY
public void setSkewY(float angle) setSkewY.
- Specified by:
setSkewYin interfaceSVGTransform- Parameters:
angle- a float.
-