Class SVGTransformImpl
java.lang.Object
org.loboevolution.html.dom.svgimpl.SVGTransformImpl
- All Implemented Interfaces:
SVGTransform
SVGTransformImpl class.
-
Field Summary
Fields inherited from interface org.loboevolution.html.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
ConstructorDescriptionConstructor for SVGTransformImpl.SVGTransformImpl
(short transformType) Constructor for SVGTransformImpl. -
Method Summary
Modifier and TypeMethodDescriptionfloat
getAngle()
getAngle.getMatrix.short
getType()
getType.void
setMatrix.void
setRotate
(float angle, float cx, float cy) setRotate.void
setScale
(float sx, float sy) setScale.void
setSkewX
(float angle) setSkewX.void
setSkewY
(float angle) setSkewY.void
setTranslate
(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:
getType
in interfaceSVGTransform
- Returns:
- a short.
-
getMatrix
getMatrix.
- Specified by:
getMatrix
in interfaceSVGTransform
- Returns:
- a
SVGMatrix
object.
-
getAngle
public float getAngle()getAngle.
- Specified by:
getAngle
in interfaceSVGTransform
- Returns:
- a float.
-
setMatrix
setMatrix.
- Specified by:
setMatrix
in interfaceSVGTransform
- Parameters:
matrix
- aSVGMatrix
object.
-
setTranslate
public void setTranslate(float tx, float ty) setTranslate.
- Specified by:
setTranslate
in interfaceSVGTransform
- Parameters:
tx
- a float.ty
- a float.
-
setScale
public void setScale(float sx, float sy) setScale.
- Specified by:
setScale
in interfaceSVGTransform
- Parameters:
sx
- a float.sy
- a float.
-
setRotate
public void setRotate(float angle, float cx, float cy) setRotate.
- Specified by:
setRotate
in interfaceSVGTransform
- Parameters:
angle
- a float.cx
- a float.cy
- a float.
-
setSkewX
public void setSkewX(float angle) setSkewX.
- Specified by:
setSkewX
in interfaceSVGTransform
- Parameters:
angle
- a float.
-
setSkewY
public void setSkewY(float angle) setSkewY.
- Specified by:
setSkewY
in interfaceSVGTransform
- Parameters:
angle
- a float.
-