Package uk.ac.starlink.ttools.plot2.geom
Class BandDecoration
java.lang.Object
uk.ac.starlink.ttools.plot2.Decoration
uk.ac.starlink.ttools.plot2.geom.BandDecoration
Decoration subclass that also provides a target rectangle.
This target indicates a graphics surface region to which zooming
is intended.
Note that the target rectangle is not assessed as part of the equality conditions for this object; it is considered to be an annotation of the icon, completely determined by its existing characteristics.
- Since:
- 18 Mar 2014
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionBandDecoration(Icon icon, int gx, int gy, Rectangle targetRect) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the target rectangle for this object.Methods inherited from class uk.ac.starlink.ttools.plot2.Decoration
equals, getIcon, getPosX, getPosY, hashCode, paintDecoration, toString
-
Constructor Details
-
BandDecoration
Constructor.- Parameters:
icon- decoration content; this icon must have equality semanticsgx- x position for icongy- y position for icontargetRect- target rectangle
-
-
Method Details
-
getTargetRectangle
Returns the target rectangle for this object.- Returns:
- target rectangle
-