Class PanForceTool.PanForceGesture

java.lang.Object
com.levigo.jadice.web.client.util.Gesture
com.levigo.jadice.web.client.tools.PanForceTool.PanForceGesture
Enclosing class:
PanForceTool

public abstract static class PanForceTool.PanForceGesture extends Gesture
Pan Gesture with a little panning after MouseUp or TouchEnd
  • Field Details

    • SHIFTMULTIPLIER

      protected static final int SHIFTMULTIPLIER
      See Also:
    • viewComponent

      protected ViewComponent viewComponent
    • started

      protected boolean started
    • finishAnimation

      protected final com.levigo.jadice.web.client.tools.PanForceTool.PanForceGesture.FinishAnimation finishAnimation
  • Constructor Details

    • PanForceGesture

      public PanForceGesture()
  • Method Details

    • onStart

      protected void onStart()
      Description copied from class: Gesture
      Called when the Gesture is started
      Overrides:
      onStart in class Gesture
    • end

      protected void end()
    • scroll

      protected void scroll(int x, int y, int multiplier)
    • scrollRecToVisible

      protected void scrollRecToVisible(Rectangle rect)
    • isMoveToNextPage

      protected boolean isMoveToNextPage(int x, Rectangle scrollTo, int diffx, int diffy)
      Decides whether it should move to the next page instead of scrolling. By default do nothing and return false.
      Parameters:
      x - the current x Position.
      scrollTo - the visible rectangle.
      diffx - the current difference in x direction.
      diffy - the current difference in y direction.
      Returns:
      true if there is a page change, otherwise false.
    • fadeOutOverlay

      protected void fadeOutOverlay()
    • init

      protected void init(ViewComponent viewComponent)
      Initializes the Gesture with the given ViewComponent. Reinitialization is supported.
      Parameters:
      viewComponent - the ViewComponent