Class ZoomSnapIn

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.levigo.jadice.web.client.ui.status.ZoomSnapIn
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, SnapIn
Direct Known Subclasses:
FancyZoomSnapIn

public class ZoomSnapIn extends com.google.gwt.user.client.ui.Composite implements SnapIn
Widget to zoom the PageView.

This command changes the page view based render settings. If any zooming is performed on document level this might not work well together.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    Style for the ZoomSnapIn

    Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

    com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int[]
     

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new ZoomSnapIn with UIStyler#get()#zoomSnapInStyle() as the style.
    ZoomSnapIn(ZoomSnapIn.ZoomSnapInStyle style, boolean addFitCommands, boolean compact, int... values)
    Create a new ZoomSnapIn with the given style and the given zoom values.
    ZoomSnapIn(ZoomSnapIn.ZoomSnapInStyle style, boolean addFitCommands, int... values)
    Create a new ZoomSnapIn with the given style and the given zoom values.
    ZoomSnapIn(ZoomSnapIn.ZoomSnapInStyle style, int... values)
    Create a new ZoomSnapIn with the given style and the given zoom values.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    void
    Determines the zoom factor and updates the ui with it - uses the current pages zoom factor if existing - uses the document wide zoom factor if the page does not have its own

    Methods inherited from class com.google.gwt.user.client.ui.Composite

    claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget

    Methods inherited from class com.google.gwt.user.client.ui.Widget

    addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents

    Methods inherited from class com.google.gwt.user.client.ui.UIObject

    addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.gwt.user.client.ui.IsWidget

    asWidget
  • Field Details

    • STANDARD_VALUES

      public static final int[] STANDARD_VALUES
  • Constructor Details

    • ZoomSnapIn

      public ZoomSnapIn()
      Create a new ZoomSnapIn with UIStyler#get()#zoomSnapInStyle() as the style.
    • ZoomSnapIn

      public ZoomSnapIn(ZoomSnapIn.ZoomSnapInStyle style, int... values)
      Create a new ZoomSnapIn with the given style and the given zoom values. If no values are given the default values are used.
      Parameters:
      style - the ZoomSnapIn.ZoomSnapInStyle
      values - the zoom values which should be used
    • ZoomSnapIn

      public ZoomSnapIn(ZoomSnapIn.ZoomSnapInStyle style, boolean addFitCommands, int... values)
      Create a new ZoomSnapIn with the given style and the given zoom values. If no values are given the default values are used. Additionally it can be configured whether the fit commands should be included.
      Parameters:
      style - the ZoomSnapIn.ZoomSnapInStyle
      addFitCommands - whether the fit command should be contained or not. By default they are contained
      values - the zoom values which should be used
    • ZoomSnapIn

      public ZoomSnapIn(ZoomSnapIn.ZoomSnapInStyle style, boolean addFitCommands, boolean compact, int... values)
      Create a new ZoomSnapIn with the given style and the given zoom values. If no values are given the default values are used. Additionally it can be configured whether the fit commands should be included.
      Parameters:
      style - the ZoomSnapIn.ZoomSnapInStyle
      addFitCommands - whether the fit command should be contained or not. By default they are contained
      compact - whether to use a compact display
      values - the zoom values which should be used
  • Method Details

    • onEnsureDebugId

      protected void onEnsureDebugId(String baseID)
      Overrides:
      onEnsureDebugId in class com.google.gwt.user.client.ui.UIObject
    • updateInfo

      public void updateInfo()
      Determines the zoom factor and updates the ui with it - uses the current pages zoom factor if existing - uses the document wide zoom factor if the page does not have its own