Package com.storedobject.svg
Interface Transformer
- All Known Implementing Classes:
Svg.Anchor,Svg.Margin,Svg.Mover,Svg.Scale,Svg.ScaleTo
public interface Transformer
Interface for transforming an SVG.
- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptionTransform the SVG content.doubletransformHeight(double height) Transform the height.doubletransformWidth(double width) Transform the width.default doubletransformX(double x) Transform the X coordinate.default doubletransformY(double y) Transform the Y coordinate.
-
Method Details
-
transformWidth
double transformWidth(double width) Transform the width.- Parameters:
width- Width.- Returns:
- Transformed width.
-
transformHeight
double transformHeight(double height) Transform the height.- Parameters:
height- Height.- Returns:
- Transformed height.
-
transformX
default double transformX(double x) Transform the X coordinate.- Parameters:
x- X coordinate.- Returns:
- Transformed X coordinate.
-
transformY
default double transformY(double y) Transform the Y coordinate.- Parameters:
y- Y coordinate.- Returns:
- Transformed Y coordinate.
-
transform
-