Interface Zoomable


public interface Zoomable
Zooming capabilities for an editor.

An editor which offers zoomable capabilities should put its Zoomable implementation in its TopComponent lookup, so that it will be automatically connected to the application-level X/Y zoom sliders when its TopComponent is active.

  • Field Details

  • Method Details

    • getZoomCapabilities

      Zoomable.Capabilities getZoomCapabilities()
    • getZoomYFactor

      int getZoomYFactor()
      Returns:
      A value between 0 and 100 included.
    • setZoomYFactor

      void setZoomYFactor(int factor, boolean valueIsAdjusting)
      Set the Y zoom factor.

      If value is changed fire a PROPERTY_ZOOM_Y change event.

      Parameters:
      factor - A value between 0 and 100 included.
      valueIsAdjusting - If true the value is still being adjusted, ie the user move is not finished (eg when moving a slider with the mouse).
    • setZoomYFactorToFitContent

      void setZoomYFactorToFitContent()
      Ask to adjust automatically the zoomY factor to fit the editor's content.
    • getZoomXFactor

      int getZoomXFactor()
      Returns:
      A value between 0 and 100 included.
    • setZoomXFactor

      void setZoomXFactor(int factor, boolean valueIsAdjusting)
      Set the X zoom factor.

      If value is changed fire a PROPERTY_ZOOM_X change event.

      Parameters:
      factor - A value between 0 and 100 included.
      valueIsAdjusting - If true the value is still being adjusted, ie the user move is not finished (eg when moving a slider with the mouse).
    • setZoomXFactorToFitContent

      void setZoomXFactorToFitContent()
      Ask to adjust automatically the zoomX factor to fit the editor's content.
    • addPropertyListener

      void addPropertyListener(PropertyChangeListener l)
      Listen to the PROPERTY_ZOOM properties.
      Parameters:
      l -
    • removePropertyListener

      void removePropertyListener(PropertyChangeListener l)