public static class DrawableObject.Transform extends DrawableObject
DrawableObject.Image, DrawableObject.Label, DrawableObject.Shape, DrawableObject.TickLabel, DrawableObject.Transform
Constructor and Description |
---|
DrawableObject.Transform(java.awt.geom.AffineTransform transform,
boolean reset)
Constructor for a transformation object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double x,
double y,
boolean useTruncated)
Perform an inclusion test on the object based on the given point
|
java.awt.geom.AffineTransform |
getTransform()
Gets the AffineTransform.
|
boolean |
isResetTransform()
Is this transform intended to reset the current transform?
|
getAffineTransform, getComponentIndex, getComponentType, getLabelDimensions, getLabelObject, getTickLabelObject, isSelected, isVisible, render, setSelected, setVisible
public DrawableObject.Transform(java.awt.geom.AffineTransform transform, boolean reset)
reset
- True
if this transform
is intended to reset the current transform,
False
otherwisetransform
- Instance of AffineTransform
.public boolean contains(double x, double y, boolean useTruncated)
contains
in class DrawableObject
useTruncated
- True
if the truncated rectangle
should be used, False
otherwisey
- Integer representing the Y location of the pointx
- Integer representing the X location of the pointTrue
if the point is contained within
this object, False
otherwisepublic java.awt.geom.AffineTransform getTransform()
AffineTransform
instance.public boolean isResetTransform()
True
if this transform
is intended to reset the current transform,
False
otherwise