Class StaticCollectorChart

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class StaticCollectorChart extends JPanel
A chart to test labels. This chart uses a LabelFormatterNumber that formats to whole integer numbers. No same labels should appear.

Version:
$Revision: 1.6 $
Author:
Achim Westermann
See Also:
  • Constructor Details

    • StaticCollectorChart

      public StaticCollectorChart(AStaticDataCollector datacollector) throws IOException
      Creates a chart that collects it's data from the given collector.

      Parameters:
      datacollector - the data collector to use.
      Throws:
      IOException - if collecting data fails.
  • Method Details

    • main

      public static void main(String[] args) throws IOException
      Shows the chart in a frame and fills it with the data file that is specified by the first command line argument.

      Parameters:
      args - arg[0] has to be a file name of a data file in java.util.Properties format.
      Throws:
      IOException - if sth. goes wrong.
    • getChart

      public final Chart2D getChart()
      Returns the chart.

      Returns:
      Returns the chart.