public abstract class AxisZoomRegion extends ZoomRegion
Zoomer
Constructor and Description |
---|
AxisZoomRegion(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.
|
Modifier and Type | Method and Description |
---|---|
ZoomDrag |
createDrag(Component comp,
Point start)
Returns a new ZoomDrag object appropriate for this region.
|
getCursor, getDisplay, getTarget, setCursor, setDisplay, setTarget, zoomed
public AxisZoomRegion(boolean isX)
isX
- true for X axis zooming, false for Y axis zoomingpublic AxisZoomRegion(boolean isX, Rectangle target, Rectangle display)
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)public ZoomDrag createDrag(Component comp, Point start)
ZoomRegion
createDrag
in class ZoomRegion
comp
- component on which the drag is taking placestart
- start point for the dragCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.