com.elixirtech.glint.viewer
Interface Zoomable

All Known Implementing Classes:
GlintCanvas, ViewerCanvas

public interface Zoomable

Interface for those canvases that support zooming.


Method Summary
 int getZoomPercent()
          Get the zoom percent
 boolean isBitmapZoom()
          Returns whether bitmap zoom is enabled
 void setBitmapZoom(boolean b)
          Determine whether zoom should be bitmap scaling.
 void setZoomPercent(int zoom)
          Set the zoom percent
 

Method Detail

setZoomPercent

void setZoomPercent(int zoom)
Set the zoom percent

Parameters:
zoom - A value 1 to 100 will zoom out, >100 will zoom in.

getZoomPercent

int getZoomPercent()
Get the zoom percent

Returns:
The current zoom percent (100 is normal size)

setBitmapZoom

void setBitmapZoom(boolean b)
Determine whether zoom should be bitmap scaling. By default zooming is done by graphics scaling. Bitmap scaling allows a closer look at the pixels of the 100% view, rather than generating a new scaled view. This is primarily for quality checking of the rendered output.

Parameters:
b - True to enable bitmap zooms

isBitmapZoom

boolean isBitmapZoom()
Returns whether bitmap zoom is enabled

Returns:
True if bitmap zoom is enabled