Module org.jpo

Class ThumbnailDescriptionPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ThumbnailDescriptionPanel extends JPanel
Swing component that show information underneath the thumbnail
See Also:
  • Constructor Details

    • ThumbnailDescriptionPanel

      public ThumbnailDescriptionPanel()
  • Method Details

    • getLargeFont

      public static Font getLargeFont()
    • getSmallFont

      public static Font getSmallFont()
    • getPictureDescriptionJSP

      public JScrollPane getPictureDescriptionJSP()
    • getHighresLocationJTextField

      public JTextField getHighresLocationJTextField()
    • getCategoryMenuPopupButton

      public JButton getCategoryMenuPopupButton()
    • getPictureDescriptionJTA

      public JTextArea getPictureDescriptionJTA()
    • showAsSelected

      public void showAsSelected(boolean selected)
      Alters the display to show the node is "selected" or not. This method is EDT safe.
      Parameters:
      selected - true is the node should be shown as "selected", false if not
    • showAsSelected

      public void showAsSelected()
      changes the background color so that the user sees that the thumbnail is part of the selection.

      This method is EDT safe.

    • showAsUnselected

      public void showAsUnselected()
      Changes the color so that the user sees that the thumbnail is not part of the selection

      This method is EDT safe

    • getDescription

      public String getDescription()
      Gets the description of the ThumbnailDescriptionPanel
      Returns:
      the description
    • setDescription

      public void setDescription(String newDescription)
      Sets the description of the ThumbnailDescriptionPanel. It calls setTextAreaSize to resize the box according to the amount of text. This method is EDT safe
      Parameters:
      newDescription - the new Descriptions
    • clearCategories

      public void clearCategories()
    • addToCategoriesJPPanel

      public void addToCategoriesJPPanel(JComponent component)
    • setCategoryLockMode

      public void setCategoryLockMode()
    • removeFirstCategory

      @TestOnly public void removeFirstCategory()
    • addCategoryMenu

      public void addCategoryMenu()
    • setThumbnailSizeFactor

      public void setThumbnailSizeFactor(float thumbnailSizeFactor)
      Call this method with a factor between 0 and 1 to request the thumbnail description to shrink or expand along with the size of the picture above it. This method calls setTextAreaSize to do the resizing right away. It is EDT safe.
      Parameters:
      thumbnailSizeFactor - the size factor with which to multiply
    • setTextAreaSize

      public void setTextAreaSize()
      sets the size of the TextArea. This method is EDT safe.
    • showFilename

      public void showFilename(boolean showFilename)
      Turns on the filename display or turns it off
      Parameters:
      showFilename - true to turn on, false to turn off
    • handleCollectionLockNotification

      public void handleCollectionLockNotification(CollectionLockNotification event)