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,
java.awt.Rectangle target,
java.awt.Rectangle display)
Constructs a new axis zoom region with defined target and
display regions.
|
Modifier and Type | Method and Description |
---|---|
ZoomDrag |
createDrag(java.awt.Component comp,
java.awt.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, java.awt.Rectangle target, java.awt.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(java.awt.Component comp, java.awt.Point start)
ZoomRegion
createDrag
in class ZoomRegion
comp
- component on which the drag is taking placestart
- start point for the dragCopyright © 2003-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.