Class ImageZoomablePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ImageZoomablePanel extends JPanel
Allows to display an image and zooming on it. Drag and drop is used to move the image and to set the scrolbars positions. \n Provided by the broldev.file.finder.swing project.
Since:
1.0 (Jan 18, 2011), broldev.file.finder.swing 0.0.1-SNAPSHOT dependency
Version:
1.0 (Jan 18, 2011)
Author:
Steph GAUDRY
See Also:
Serialized Form
  • Constructor Details

    • ImageZoomablePanel

      public ImageZoomablePanel()
    • ImageZoomablePanel

      public ImageZoomablePanel(boolean browsable, boolean buttons)
  • Method Details

    • main

      public static void main(String[] args)
      Auto-generated main method to display this JPanel inside a new JFrame.
    • showButtons

      public void showButtons(EImageAction... actionKeys)
    • getButton

      protected JButton getButton(EImageAction key)
    • getAction

      public AbstractAction getAction(EImageAction key)
      Parameters:
      key -
      Returns:
      the action, or null if the action has not been yet initialized
    • getZoomFactor

      protected float getZoomFactor()
    • getImageView

      public org.jdesktop.swingx.JXImageView getImageView()