Class MapRegionEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class MapRegionEvent
    extends javax.swing.event.ChangeEvent
    Contains information regarding a change in a canvas's map region
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int TYPE_PAN  
      static int TYPE_ZOOMIN  
      static int TYPE_ZOOMOUT  
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      MapRegionEvent​(java.lang.Object src, java.awt.geom.AffineTransform oldXFM, java.awt.geom.AffineTransform newXFM, java.awt.geom.Rectangle2D oldDataWindow, java.awt.geom.Rectangle2D newDataWindow)
      Creates a new instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.geom.Rectangle2D getNewDataWindow()
      Gets the current data window
      java.awt.geom.AffineTransform getNewViewportTransform()
      Gets the current AffineTransform
      java.awt.geom.Rectangle2D getOldDataWindow()
      Gets the data window before the event
      java.awt.geom.AffineTransform getOldViewportTransform()
      Gets the AffineTransform instance before the event
      java.awt.geom.AffineTransform getTransformDifference()
      The transformation difference from the old to the new Objects rendered in the old transformation can apply this to be transformed to the new transform
      • 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
    • Field Detail

      • TYPE_ZOOMIN

        public static int TYPE_ZOOMIN
      • TYPE_ZOOMOUT

        public static int TYPE_ZOOMOUT
      • TYPE_PAN

        public static int TYPE_PAN
    • Constructor Detail

      • MapRegionEvent

        public MapRegionEvent​(java.lang.Object src,
                              java.awt.geom.AffineTransform oldXFM,
                              java.awt.geom.AffineTransform newXFM,
                              java.awt.geom.Rectangle2D oldDataWindow,
                              java.awt.geom.Rectangle2D newDataWindow)
        Creates a new instance
        Parameters:
        src - the source that fired the event
        oldXFM - the AffineTransform instance before the event
        newXFM - the current AffineTransform
        oldDataWindow - the data window before the event
        newDataWindow - the current data window
    • Method Detail

      • getOldViewportTransform

        public java.awt.geom.AffineTransform getOldViewportTransform()
        Gets the AffineTransform instance before the event
        Returns:
      • getNewViewportTransform

        public java.awt.geom.AffineTransform getNewViewportTransform()
        Gets the current AffineTransform
        Returns:
      • getTransformDifference

        public java.awt.geom.AffineTransform getTransformDifference()
        The transformation difference from the old to the new Objects rendered in the old transformation can apply this to be transformed to the new transform
        Returns:
      • getOldDataWindow

        public java.awt.geom.Rectangle2D getOldDataWindow()
        Gets the data window before the event
        Returns:
      • getNewDataWindow

        public java.awt.geom.Rectangle2D getNewDataWindow()
        Gets the current data window
        Returns: