Modifier and Type | Method and Description |
---|---|
static float |
getZoomToHeightFactor(PageView pageView)
Calculates the zoom factor to fit the current
Page 's height optimally in the display
area. |
static float |
getZoomToWidthFactor(PageView pageView)
Calculates the zoom factor to fit the current
Page's width optimally in the display
area. |
@CallOnEDT public static float getZoomToHeightFactor(PageView pageView)
Page
's height optimally in the display
area. Computations of this kind are naturally dependent on UI elements such as the
JViewport
, its scrollbars, and the current Look&Feel. The most common combinations are
taken into account by this algorithm. There might be some corner cases in which the resulting
factor needs further adjustment.pageView
- currently displays the page for which the zoom factor is to be computed. If
this parameter is null
, -1
will be returned. The
PageView
must have a JViewport
in its component hierarchy, otherwise,
-1
will be returned.PageView
is null
or is not currently displaying a page, -1
will be
returned.@CallOnEDT public static float getZoomToWidthFactor(PageView pageView)
Page's
width optimally in the display
area. Computations of this kind are naturally dependent on UI elements such as the
JViewport
, its scrollbars, and the current Look&Feel. The most common combinations are
taken into account by this algorithm. There might be some corner cases in which the resulting
factor needs further adjustment.pageView
- currently displays the page for which the zoom factor is to be computed. If
this parameter is null
, -1
will be returned. The
PageView
must have a JViewport
in its component hierarchy, otherwise,
-1
will be returned.PageView
is
null
or is not currently displaying a page, -1
will be
returned.Copyright © 2024 levigo holding gmbh. All rights reserved.