Package boofcv.gui

Class ListDisplayPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ListSelectionListener
Direct Known Subclasses:

public class ListDisplayPanel
extends JPanel
implements ListSelectionListener
Displays a list of items and their respective data.
See Also:
Serialized Form
  • Constructor Details

    • ListDisplayPanel

      public ListDisplayPanel()
    • ListDisplayPanel

      public ListDisplayPanel​(String... names)
  • Method Details

    • reset

      public void reset()
    • getListWidth

      public int getListWidth()
    • addImage

      public ImagePanel addImage​(ImageBase image, String name)
    • addImage

      public ImagePanel addImage​(BufferedImage image, String name)
      Displays a new image in the list.
      image - The image being displayed
      name - Name of the image. Shown in the list.
    • addImage

      public ImagePanel addImage​(BufferedImage image, String name, ScaleOptions scaling)
    • addImage

      public void addImage​(String name, BufferedImage image)
    • addItem

      public void addItem​(JComponent panel, String name)
      Displays a new JPanel in the list.
      panel - The panel being displayed
      name - Name of the image. Shown in the list.
    • addItem

      public void addItem​(String name, JComponent panel)
    • setItem

      public void setItem​(int index, JComponent panel)
      Changes the item at the specified index
    • valueChanged

      public void valueChanged​(ListSelectionEvent e)
      Specified by:
      valueChanged in interface ListSelectionListener
    • changeBodyPanel

      protected void changeBodyPanel​(int index)
    • getBodyPanel

      public JComponent getBodyPanel()