org.cruxframework.crux.plugin.zoomingtools.client
Class Zoom
java.lang.Object
org.cruxframework.crux.plugin.zoomingtools.client.Zoom
public class Zoom
- extends Object
- Author:
- Samuel Almeida Cardoso (samuel@cruxframework.org)
- See Also:
Licensed by http://opensource.org/licenses/MIT
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static Zoom getInstance()
getXScrollOffset
public double getXScrollOffset()
getYScrollOffset
public double getYScrollOffset()
getWindowInnerWidth
public double getWindowInnerWidth()
getWindowInnerHeight
public double getWindowInnerHeight()
getWidthBoundingClientRect
public double getWidthBoundingClientRect(com.google.gwt.dom.client.Element element)
getLeftBoundingClientRect
public double getLeftBoundingClientRect(com.google.gwt.dom.client.Element element)
getTopBoundingClientRect
public double getTopBoundingClientRect(com.google.gwt.dom.client.Element element)
getRightBoundingClientRect
public double getRightBoundingClientRect(com.google.gwt.dom.client.Element element)
getHeightBoundingClientRect
public double getHeightBoundingClientRect(com.google.gwt.dom.client.Element element)
pan
public void pan()
- Pan the document when the mouse cursor approaches the edges of the $wnd.
to
public void to(com.google.gwt.user.client.ui.Widget widget)
to
public void to(com.google.gwt.dom.client.Element element)
to
public void to(com.google.gwt.dom.client.Element element,
boolean pan)
- Zooms in on either a rectangle or HTML element.
- Parameters:
{Object} - options
- element: HTML element to zoom in on
OR
- x/y: coordinates in non-transformed space to zoom in on
- width/height: the portion of the screen to zoom in on
- scale: can be used instead of width/height to explicitly set scale
out
public void out()
setMouseX
public void setMouseX(double mouseX)
getMouseX
public double getMouseX()
setMouseY
public void setMouseY(double mouseY)
getMouseY
public double getMouseY()
setLevel
public void setLevel(double level)
getLevel
public double getLevel()
Copyright © 2014. All rights reserved.