Class ApplyDynamicZoomRule

java.lang.Object
com.levigo.jadice.web.client.rule.AbstractPresentationRule
com.levigo.jadice.web.client.rules.ApplyDynamicZoomRule
All Implemented Interfaces:
PresentationRule

public class ApplyDynamicZoomRule extends AbstractPresentationRule
Dynamically adjusts the zoom factor for each displayed page.

Supports the following modes:

  • Fit to height
  • Fit to width
  • Fit both

Switches to single page layout when activated. Lets the width or the height of the displayed page capture the whole viewer widget (depending on the mode). Stays active when a new document is loaded or a new page is displayed.

Is deactivated when the zoom factor is modified manually. Is deactivated when the page layout is set to anything different from single page layout.