Package uk.ac.starlink.topcat.plot
Class AxisZoomRegion
java.lang.Object
uk.ac.starlink.topcat.plot.ZoomRegion
uk.ac.starlink.topcat.plot.AxisZoomRegion
- Direct Known Subclasses:
AuxLegendZoomRegion
ZoomRegion for zooming in one dimension (X or Y).
A drag in the positive graphics coordinate direction (left-to-right
or up-to-down) is a zoom in (magnifying) and a drag in the
opposite direction is a zoom out (er, parvifying?).
- Since:
- 28 Mar 2006
- Author:
- Mark Taylor
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAxisZoomRegion
(boolean isX) Constructs a new axis zoom region with no target and display regions.AxisZoomRegion
(boolean isX, Rectangle target, Rectangle display) Constructs a new axis zoom region with defined target and display regions. -
Method Summary
Modifier and TypeMethodDescriptioncreateDrag
(Component comp, Point start) Returns a new ZoomDrag object appropriate for this region.Methods inherited from class uk.ac.starlink.topcat.plot.ZoomRegion
getCursor, getDisplay, getTarget, setCursor, setDisplay, setTarget, zoomed
-
Constructor Details
-
AxisZoomRegion
public AxisZoomRegion(boolean isX) Constructs a new axis zoom region with no target and display regions.- Parameters:
isX
- true for X axis zooming, false for Y axis zooming
-
AxisZoomRegion
Constructs a new axis zoom region with defined target and display regions.- Parameters:
isX
- true for X axis zooming, false for Y axis zoomingtarget
- target region (region in which cursor is dragged)display
- display region (region in which zoom box is shown)
-
-
Method Details
-
createDrag
Description copied from class:ZoomRegion
Returns a new ZoomDrag object appropriate for this region.- Specified by:
createDrag
in classZoomRegion
- Parameters:
comp
- component on which the drag is taking placestart
- start point for the drag- Returns:
- new drag object
-