Class ImageProcessorMultiPagePane

    • Constructor Detail

      • ImageProcessorMultiPagePane

        public ImageProcessorMultiPagePane​(ImageProcessorPanel owner)
        Initializes the tabbed pane.
        Parameters:
        owner - the viewer this pane belongs to
    • Method Detail

      • hasCurrentPanel

        public boolean hasCurrentPanel()
        Returns whether a panel has been selected.
        Returns:
        true if panel selected
      • getCurrentPanel

        public ImageProcessorSubPanel getCurrentPanel()
        Returns the image panel in the currently selected tab.
        Returns:
        the image panel, null if none available
      • getPanelAt

        public ImageProcessorSubPanel getPanelAt​(int index)
        Returns the image panel of the specified tab.
        Parameters:
        index - the tab index
        Returns:
        the image panel, null if none available
      • getAllPanels

        public ImageProcessorSubPanel[] getAllPanels()
        Returns all the image panels.
        Returns:
        the image panels
      • getCurrentFile

        public File getCurrentFile()
        Returns the current filename.
        Returns:
        the current filename, can be null
      • getFileAt

        public File getFileAt​(int index)
        Returns the current filename.
        Parameters:
        index - the tab index
        Returns:
        the current filename, can be null
      • load

        public boolean load​(File file)
        Loads the specified file in a new panel.
        Parameters:
        file - the file to load
        Returns:
        true if successfully loaded
      • load

        public boolean load​(File file,
                            ImageReader reader)
        Opens the file with the specified image reader.
        Parameters:
        file - the file to open
        reader - the reader to use, null for auto-detection
        Returns:
        true if successfully read