Package org.loboevolution.svg
Interface SVGTransform
- All Known Implementing Classes:
SVGTransformImpl
public interface SVGTransform
SVGTransform interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortConstant SVG_TRANSFORM_MATRIX=1static final shortConstant SVG_TRANSFORM_ROTATE=4static final shortConstant SVG_TRANSFORM_SCALE=3static final shortConstant SVG_TRANSFORM_SKEWX=5static final shortConstant SVG_TRANSFORM_SKEWY=6static final shortConstant SVG_TRANSFORM_TRANSLATE=2static final shortConstant SVG_TRANSFORM_UNKNOWN=0 -
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.
-
Field Details
-
SVG_TRANSFORM_UNKNOWN
static final short SVG_TRANSFORM_UNKNOWNConstant SVG_TRANSFORM_UNKNOWN=0- See Also:
-
SVG_TRANSFORM_MATRIX
static final short SVG_TRANSFORM_MATRIXConstant SVG_TRANSFORM_MATRIX=1- See Also:
-
SVG_TRANSFORM_TRANSLATE
static final short SVG_TRANSFORM_TRANSLATEConstant SVG_TRANSFORM_TRANSLATE=2- See Also:
-
SVG_TRANSFORM_SCALE
static final short SVG_TRANSFORM_SCALEConstant SVG_TRANSFORM_SCALE=3- See Also:
-
SVG_TRANSFORM_ROTATE
static final short SVG_TRANSFORM_ROTATEConstant SVG_TRANSFORM_ROTATE=4- See Also:
-
SVG_TRANSFORM_SKEWX
static final short SVG_TRANSFORM_SKEWXConstant SVG_TRANSFORM_SKEWX=5- See Also:
-
SVG_TRANSFORM_SKEWY
static final short SVG_TRANSFORM_SKEWYConstant SVG_TRANSFORM_SKEWY=6- See Also:
-
-
Method Details
-
getType
short getType()getType.
- Returns:
- a short.
-
getMatrix
SVGMatrix getMatrix()getMatrix.
- Returns:
- a
SVGMatrixobject.
-
getAngle
float getAngle()getAngle.
- Returns:
- a float.
-
setMatrix
setMatrix.
- Parameters:
matrix- aSVGMatrixobject.
-
setTranslate
void setTranslate(float tx, float ty) setTranslate.
- Parameters:
tx- a float.ty- a float.
-
setScale
void setScale(float sx, float sy) setScale.
- Parameters:
sx- a float.sy- a float.
-
setRotate
void setRotate(float angle, float cx, float cy) setRotate.
- Parameters:
angle- a float.cx- a float.cy- a float.
-
setSkewX
void setSkewX(float angle) setSkewX.
- Parameters:
angle- a float.
-
setSkewY
void setSkewY(float angle) setSkewY.
- Parameters:
angle- a float.
-