public interface TransformableContent extends SimpleContent
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getBounds2D(boolean ofTransformed)
Returns a high precision bounding box of the Content
either before or after it is transformed.
|
void |
setLocation(double x,
double y)
Set the location.
|
void |
setRotation(double angle,
double x,
double y)
Set the angle of rotation.
|
void |
setScale(double xScale,
double yScale)
Set the scaling.
|
render
void setLocation(double x, double y)
x
- The x positiony
- The y positionvoid setRotation(double angle, double x, double y)
angle
- The rotation anglex
- The x-coordinate of the point to rotate aroundy
- The y-coordinate of the point to rotate aroundvoid setScale(double xScale, double yScale)
xScale
- The scaling in the horizontal dimensionyScale
- The scaling in the vertical dimensionjava.awt.geom.Rectangle2D getBounds2D(boolean ofTransformed)
ofTransformed
- true to get the BB of the transformed content