public abstract class AbstractTransformableContent extends java.lang.Object implements TransformableContent
Constructor and Description |
---|
AbstractTransformableContent()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getBounds2D()
Returns a high precision bounding box of the appropriately
transformed content.
|
abstract java.awt.geom.Rectangle2D |
getBounds2D(boolean transformed)
Returns a high precision bounding box of the Content
either before or after it is transformed.
|
void |
setLocation(double x,
double y)
Set the translation
(required by TransformedContent).
|
void |
setRotation(double angle,
double x,
double y)
Set the angle of rotation around the midpoint
(required by TransformedContent).
|
void |
setScale(double scale)
Set the scaling.
|
void |
setScale(double xScale,
double yScale)
Set the scaling
(required by TransformedContent).
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
render
public AbstractTransformableContent()
public java.awt.geom.Rectangle2D getBounds2D()
public abstract java.awt.geom.Rectangle2D getBounds2D(boolean transformed)
getBounds2D
in interface TransformableContent
transformed
- true to get the BB of the transformed contentpublic void setLocation(double x, double y)
setLocation
in interface TransformableContent
x
- The x posiitony
- The y positionpublic void setRotation(double angle, double x, double y)
setRotation
in interface TransformableContent
angle
- The rotation anglex
- The x-coordinate of the point to rotate aroundy
- The y-coordinate of the point to rotate aroundpublic void setScale(double xScale, double yScale)
setScale
in interface TransformableContent
xScale
- The scaling in the horizontal dimensionyScale
- The scaling in the vertical dimensionpublic void setScale(double scale)
scale
- The scaling (in both dimensions)