Class XYZoomRegion

  extended by
      extended by

public abstract class XYZoomRegion
extends ZoomRegion

ZoomRegion for zooming in two dimensions (X-Y). A drag in both positive graphics coordinate directions (down and right) is a zoom in (magnifying), and a drag in both negative directions (up and left) is a zoom out.

28 Mar 2006
Mark Taylor
See Also:

Constructor Summary
XYZoomRegion(Rectangle display)
          Constructs a new XY zoom region.
Method Summary
 ZoomDrag createDrag(Component comp, Point start)
          Returns a new ZoomDrag object appropriate for this region.
Methods inherited from class
getCursor, getDisplay, getTarget, setCursor, setDisplay, setTarget, zoomed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public XYZoomRegion(Rectangle display)
Constructs a new XY zoom region.

display - rectangle defining the region for both dragging and visual feedback
Method Detail


public ZoomDrag createDrag(Component comp,
                           Point start)
Description copied from class: ZoomRegion
Returns a new ZoomDrag object appropriate for this region.

Specified by:
createDrag in class ZoomRegion
comp - component on which the drag is taking place
start - start point for the drag
new drag object

Copyright © 2003-2019 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.