Side of Software
Print Preview Library 1.8.1

sos.preview
Interface ZoomFunction

All Known Implementing Classes:
DefaultZoomFunction

public interface ZoomFunction

An interface that determines the amount to zoom.

Since:
1.0
See Also:
JPrintPreviewPane, DefaultZoomFunction

Method Summary
 double zoomIn(double scale)
          Returns the next zoom-in scale, given the current scale.
 double zoomOut(double scale)
          Returns the next zoom-out scale, given the current scale.
 

Method Detail

zoomIn

public double zoomIn(double scale)
Returns the next zoom-in scale, given the current scale.

Parameters:
scale - the current scale
Returns:
the next zoom-in scale, or scale, if zooming is not allowed

zoomOut

public double zoomOut(double scale)
Returns the next zoom-out scale, given the current scale.

Parameters:
scale - the current scale
Returns:
the next zoom-out scale, or scale, if zooming is not allowed

Side of Software
Print Preview Library 1.8.1

Copyright 2003-07 Side of Software (SOS). All rights reserved.