Class AuxLegendZoomRegion
java.lang.Object
uk.ac.starlink.topcat.plot.ZoomRegion
uk.ac.starlink.topcat.plot.AxisZoomRegion
uk.ac.starlink.topcat.plot.AuxLegendZoomRegion
ZoomRegion for use with an
AuxLegend.- Since:
- 2 Apr 2008
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionAuxLegendZoomRegion(uk.ac.starlink.ttools.plot.AuxLegend legend) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddataZoomed(double lo, double hi) Called when a zoom has taken place.Returns the display region.Returns the target region.voidsetDisplay(Rectangle display) Sets the display region.voidSets the target region.voidzoomed(double[][] bounds) Callback which will be invoked when a zoom invoked on this region has been completed successfully.Methods inherited from class AxisZoomRegion
createDragMethods inherited from class ZoomRegion
getCursor, setCursor
-
Constructor Details
-
AuxLegendZoomRegion
public AuxLegendZoomRegion(uk.ac.starlink.ttools.plot.AuxLegend legend) Constructor.- Parameters:
legend- lagend to zoom over
-
-
Method Details
-
dataZoomed
protected abstract void dataZoomed(double lo, double hi) Called when a zoom has taken place.- Parameters:
lo- new requested lower data boundhi- new requested upper data bound
-
getDisplay
Description copied from class:ZoomRegionReturns the display region. This is the region used to display visual feedback to the user during a drag gesture.- Overrides:
getDisplayin classZoomRegion- Returns:
- display region
-
getTarget
Description copied from class:ZoomRegionReturns the target region. This is the region within which the mouse must be clicked and dragged in order to generate a zoom event.- Overrides:
getTargetin classZoomRegion- Returns:
- target region
-
setDisplay
Description copied from class:ZoomRegionSets the display region. This is the region used to provide visual feedback to the user during a drag gesture.- Overrides:
setDisplayin classZoomRegion- Parameters:
display- display region- Throws:
UnsupportedOperationException- always
-
setTarget
Description copied from class:ZoomRegionSets the target region. This is the region within which the mouse must be clicked and dragged in order to generate a zoom event.- Overrides:
setTargetin classZoomRegion- Parameters:
target- target region- Throws:
UnsupportedOperationException- always
-
zoomed
public void zoomed(double[][] bounds) Description copied from class:ZoomRegionCallback which will be invoked when a zoom invoked on this region has been completed successfully. Elements of the parameter array are two-element arrays giving (lower, upper) bounds in one or more dimensions, according to the type of region. The units should normally be dimensionless: a range of (0,1) indicates the same range as is currently contained by the display region. Bounds may be larger or smaller than the (1,0) interval.- Specified by:
zoomedin classZoomRegion- Parameters:
bounds- array of (lower, upper) zoom bounds
-