Class LegendPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ScrollPaneConstants

public class LegendPanel extends JScrollPane
This panel displays legends for a list of plots. If a given plot has a custom colour defined then this panel allows the colour to be changed.
Version:
$Revision: 10222 $
Author:
Mark Hall (mhall@cs.waikato.ac.nz)
See Also:
  • Constructor Details

    • LegendPanel

      public LegendPanel()
      Constructor
  • Method Details

    • setPlotList

      public void setPlotList(ArrayList<PlotData2D> pl)
      Set the list of plots to generate legend entries for
      Parameters:
      pl - a list of plots
    • addRepaintNotify

      public void addRepaintNotify(Component c)
      Adds a component that will need to be repainted if the user changes the colour of a label.
      Parameters:
      c - the component to be repainted
    • main

      public static void main(String[] args)
      Main method for testing this class
      Parameters:
      args - a list of arff files