Class ZoomChangeEvent

    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      ZoomChangeEvent​(java.lang.Object source, double zoomLevel, boolean fitToScreen)
      Creates the event with the given data.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getZoomLevel()  
      boolean isFitToScreen()  
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

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

      • ZoomChangeEvent

        public ZoomChangeEvent​(java.lang.Object source,
                               double zoomLevel,
                               boolean fitToScreen)
        Creates the event with the given data.
        Parameters:
        source - the Object that is the source of the event (typically this)
        zoomLevel - target zoom level as a decimal fraction. i.e. 1.0 = 100%.
        fitToScreen - indicates if the fit to screen button was pressed
    • Method Detail

      • getZoomLevel

        public double getZoomLevel()
        Returns:
        the target zoom level as a decimal fraction. i.e. 1.0 = 100%.
      • isFitToScreen

        public boolean isFitToScreen()
        Returns:
        true if this event was triggered by the 'Fit to screen' button