Class ImageTypeMenu

java.lang.Object
org.apache.pdfbox.debugger.ui.ImageTypeMenu

public final class ImageTypeMenu extends Object
Author:
Tilman Hausherr A singleton class that provides the imagetype menu for the menubar. To act upon the menu item selection, the user of the class must add ActionListener which will check for the action command and act accordingly.
  • Field Details

  • Method Details

    • getInstance

      public static ImageTypeMenu getInstance()
      Provides the ImageTypeMenu instance.
      Returns:
      ImageTypeMenu instance.
    • setImageTypeSelection

      public void setImageTypeSelection(String selection)
      Set the image type selection.
      Parameters:
      selection - String instance.
    • isImageTypeMenu

      public static boolean isImageTypeMenu(String actionCommand)
    • getImageType

      public static org.apache.pdfbox.rendering.ImageType getImageType()
    • getImageType

      public static org.apache.pdfbox.rendering.ImageType getImageType(String actionCommand)
    • setMenu

      protected void setMenu(JMenu menu)
    • getMenu

      public JMenu getMenu()
      Provide the JMenu instance of the ZoomMenu.
      Returns:
      JMenu instance.
    • setEnableMenu

      public void setEnableMenu(boolean isEnable)
      Set if the menu should be enabled or disabled.
      Parameters:
      isEnable - boolean instance.
    • addMenuListeners

      public void addMenuListeners(ActionListener listener)
      Add the ActionListener for the menuitems.
      Parameters:
      listener - ActionListener.