Class ScanDetailsPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ScanDetailsPanel extends JPanel
A JPanel for showing the details of a ReadableImage.
See Also:
  • Constructor Details

    • ScanDetailsPanel

      public ScanDetailsPanel(boolean oneLine)
      Creates a ScanDetailsPanel, optionally showing all details on one line.
      Parameters:
      oneLine - whether to show all details on one line.
  • Method Details

    • setPreferredSize

      public void setPreferredSize(Dimension d)
      Sets the preferred size.
      Overrides:
      setPreferredSize in class JComponent
      Parameters:
      d - the preferred size of this ScanDetailsPanel.
    • getPreferredSize

      public Dimension getPreferredSize()
      Overrides the default getPreferredSize() method.
      Overrides:
      getPreferredSize in class JComponent
      Returns:
      the preferred size of this ScanDetailsPanel.
    • setScanDetails

      public void setScanDetails(ReadableImage image)
      Sets the scan details, with the scan details coming from the supplied image.
      Parameters:
      image - the image from which to set the scan details.