Class ViewRendererStateChangedEvent

java.lang.Object
java.util.EventObject
com.kheops.jmap.client.views.ViewRendererStateChangedEvent
All Implemented Interfaces:
Serializable

public class ViewRendererStateChangedEvent extends EventObject
This event is fired when the state of the renderer is changed. The state is changed when a zoom or pan operation is performed on it.
See Also:
  • Constructor Details

    • ViewRendererStateChangedEvent

      public ViewRendererStateChangedEvent(ViewRenderer viewRenderer, double scale, double zoom, OrientedRectangle region)
      Constructs a ViewRendererChangedEvent
      Parameters:
      viewRenderer - the view renderer which changed.
      scale - the scale
      zoom - the zoom level
      region - the rectangular region
  • Method Details

    • getScale

      public double getScale()
      Gets the scale
      Returns:
      scale
    • getZoom

      public double getZoom()
      Gets the zoom level
      Returns:
      zoom
    • getRegion

      public OrientedRectangle getRegion()
      Gets the region
      Returns:
      region the retangular section that is displayed
    • getViewRenderer

      public ViewRenderer getViewRenderer()