Package com.storedobject.svg
Class Svg.Mover
java.lang.Object
com.storedobject.svg.Svg.Mover
- All Implemented Interfaces:
Transformer
- Enclosing class:
Svg
Transformer for moving an SVG.
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmove(double x, double y) Move by specified displacement.voidMove to specified point.final StringTransform the SVG content.final doubletransformHeight(double height) Transform the height.final doubletransformWidth(double width) Transform the width.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.svg.Transformer
transformX, transformY
-
Constructor Details
-
Mover
public Mover()Constructor. -
Mover
public Mover(double x, double y) Constructor.- Parameters:
x- X displacement.y- Y displacement.
-
Mover
-
-
Method Details
-
move
public void move(double x, double y) Move by specified displacement.- Parameters:
x- X displacement.y- Y displacement.
-
move
-
transformWidth
public final double transformWidth(double width) Description copied from interface:TransformerTransform the width.- Specified by:
transformWidthin interfaceTransformer- Parameters:
width- Width.- Returns:
- Transformed width.
-
transformHeight
public final double transformHeight(double height) Description copied from interface:TransformerTransform the height.- Specified by:
transformHeightin interfaceTransformer- Parameters:
height- Height.- Returns:
- Transformed height.
-
transform
Description copied from interface:TransformerTransform the SVG content.- Specified by:
transformin interfaceTransformer- Parameters:
svg- SVG content.- Returns:
- Transformed SVG content.
-