com.webrenderer.swing
Interface IZoomService


public interface IZoomService

Companion interface to IBrowserCanvas that exposes the browser's full-page-zoom functionality.

See Also:
IBrowserCanvas.getZoomService(), IBrowserCanvas.increaseTextZoom(), IBrowserCanvas.decreaseTextZoom()

Method Summary
 double getFullZoom()
          Retrieves the browser's current full-page-zoom scaling factor.
 void setFullZoom(double zoom)
          Sets the browser's current full-page-zoom scaling factor.
 

Method Detail

getFullZoom

double getFullZoom()
Retrieves the browser's current full-page-zoom scaling factor. The default scaling factor is 1.

Returns:
the current zoom scaling factor
See Also:
setFullZoom(double)

setFullZoom

void setFullZoom(double zoom)
Sets the browser's current full-page-zoom scaling factor. The default scaling factor is 1.

For example, a scaling factor of 2 would cause all page content to be rendered twice as large as normal. A scaling factor of 0.5 would cause all page content to be rendered at half normal size.

Parameters:
zoom - new zoom scaling factor to set
See Also:
getFullZoom()