Class ZoomHelper
java.lang.Object
com.levigo.jadice.web.client.util.helper.ZoomHelper
Provides some Zoom-Functionality for the PageView.
-
Field Summary
-
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.protected void
This method zooms to a given rectangle in thePageView
-
Field Details
-
INSTANCE
-
-
Method Details
-
zoomTo
This method zooms to a given rectangle in thePageView
- Parameters:
pageView
- thePageView
to zoomzoomTo
- the target area
-
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)
-