Class ZoomHelper
java.lang.Object
com.levigo.jadice.web.client.util.helper.ZoomHelper
Provides some Zoom-Functionality for the PageView.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method zooms to the target zoomFactor.void
zoom
(PageView pageView, float zoomRelative, RenderControls renderControls) This method zooms to the current selectedPage
void
Zooms to thePage
at the given point.
-
Field Details
-
INSTANCE
-
-
Method Details
-
setZoom
This method zooms to the target zoomFactor.- Parameters:
pageView
- thePageView
to zoomzoomFactor
- the target zoomFactor value
-
zoom
Zooms to thePage
at the given point.- Parameters:
pageView
- thePageView
zoomRelative
- 0:No zoom # -0.1 : zoom 10% out # +0.1 zoom 10% inzoomTo
- Point to Zoom tocenter
- iftrue
, ZoomTo is center(Center the Page here); iffalse
, ZoomTo is MousePos(keepMousePos)
-