jview
Interface Zoomable

All Known Implementing Classes:
JBoxedCanvas, JCameraCanvas, JDataCanvas, JExpressionCanvas, JFitsCanvas, JFrameCanvas, JGuiderCanvas, JGuiderOffsets, JNight, JSkyCanvas, JSkyGrid, JTargetHistory, JTrackingFrequencies, JViewportCanvas, JWeatherCanvas

public interface Zoomable

An interface defining capabilities of a component to be zoomable. Normally this is used in the context with a JShapeCanvas to allow interactive changing of zooming steps. It is used by the ZoomCursor class.


Method Summary
 boolean selectArea(Rectangle select)
          Signals from the outside that a specified area as layed out on the screen has been selected.
 boolean selectViewport(Rectangle2D view)
          If we want to set a new viewport, this method should be used.
 

Method Detail

selectArea

boolean selectArea(Rectangle select)
Signals from the outside that a specified area as layed out on the screen has been selected.


selectViewport

boolean selectViewport(Rectangle2D view)
If we want to set a new viewport, this method should be used. A new viewport is defined in normalized coordinates, i.e. the drawable area starts at 0,0 and extends to 1,1. Normally, this method will be called from within the #selectedArea, after transformation from the screen coordinates to normalized coordinates has been done.