Package 

Class AnalogPanHelper

  • All Implemented Interfaces:

    
    public final class AnalogPanHelper
    
                        

    Helps manage panning done through the mouse, therefore analog in the sense that the panning can go towards any direction.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Boolean valid
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean getValid() Returns whether this AnalogPanHelper is still valid.
      final Unit setValid(Boolean valid)
      final Point update(Point next, Point view) Updates the panning position and returns it.
      final Unit close() Closes the helper.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnalogPanHelper

        AnalogPanHelper(Point current)
        Parameters:
        current - the current position of the mouse.