public abstract class CentreZoomRegion extends ZoomRegion
Zoomer
Constructor and Description |
---|
CentreZoomRegion(boolean isX)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ZoomDrag |
createDrag(Component comp,
Point start)
Returns a new ZoomDrag object appropriate for this region.
|
abstract Rectangle |
getDisplay()
Returns the display region.
|
abstract Rectangle |
getTarget()
Returns the target region.
|
getCursor, setCursor, setDisplay, setTarget, zoomed
public CentreZoomRegion(boolean isX)
isX
- true if the target region is horizontal,
false for verticalpublic ZoomDrag createDrag(Component comp, Point start)
ZoomRegion
createDrag
in class ZoomRegion
comp
- component on which the drag is taking placestart
- start point for the dragpublic abstract Rectangle getTarget()
ZoomRegion
getTarget
in class ZoomRegion
public abstract Rectangle getDisplay()
ZoomRegion
getDisplay
in class ZoomRegion
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.