Class ZoomRegion

    • Constructor Summary

      Constructors 
      Constructor Description
      ZoomRegion()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract ZoomDrag createDrag​(java.awt.Component comp, java.awt.Point start)
      Returns a new ZoomDrag object appropriate for this region.
      java.awt.Cursor getCursor()
      Returns the custom cursor for use in the target region.
      java.awt.Rectangle getDisplay()
      Returns the display region.
      java.awt.Rectangle getTarget()
      Returns the target region.
      void setCursor​(java.awt.Cursor cursor)
      Sets a custom cursor for use in the target region.
      void setDisplay​(java.awt.Rectangle display)
      Sets the display region.
      void setTarget​(java.awt.Rectangle target)
      Sets the target region.
      abstract void zoomed​(double[][] bounds)
      Callback which will be invoked when a zoom invoked on this region has been completed successfully.
      • Methods inherited from class java.lang.Object

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

      • ZoomRegion

        public ZoomRegion()
    • Method Detail

      • setTarget

        public void setTarget​(java.awt.Rectangle target)
        Sets the target region. This is the region within which the mouse must be clicked and dragged in order to generate a zoom event.
        Parameters:
        target - target region
      • getTarget

        public java.awt.Rectangle getTarget()
        Returns the target region. This is the region within which the mouse must be clicked and dragged in order to generate a zoom event.
        Returns:
        target region
      • setDisplay

        public void setDisplay​(java.awt.Rectangle display)
        Sets the display region. This is the region used to provide visual feedback to the user during a drag gesture.
        Parameters:
        display - display region
      • getDisplay

        public java.awt.Rectangle getDisplay()
        Returns the display region. This is the region used to display visual feedback to the user during a drag gesture.
        Returns:
        display region
      • setCursor

        public void setCursor​(java.awt.Cursor cursor)
        Sets a custom cursor for use in the target region.
        Parameters:
        cursor - custom cursor
      • getCursor

        public java.awt.Cursor getCursor()
        Returns the custom cursor for use in the target region.
        Returns:
        custom cursor
      • createDrag

        public abstract ZoomDrag createDrag​(java.awt.Component comp,
                                            java.awt.Point start)
        Returns a new ZoomDrag object appropriate for this region.
        Parameters:
        comp - component on which the drag is taking place
        start - start point for the drag
        Returns:
        new drag object
      • zoomed

        public abstract void zoomed​(double[][] bounds)
        Callback which will be invoked when a zoom invoked on this region has been completed successfully. Elements of the parameter array are two-element arrays giving (lower, upper) bounds in one or more dimensions, according to the type of region. The units should normally be dimensionless: a range of (0,1) indicates the same range as is currently contained by the display region. Bounds may be larger or smaller than the (1,0) interval.
        Parameters:
        bounds - array of (lower, upper) zoom bounds