Class Showcase

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

public final class Showcase extends JApplet
Advanced demonstration applet for jchart2d.

Please right click on the chart and on the label for the traces to see popup menus that offer the freshest new features.

Version:
$Revision: 1.15 $
Author:
Achim Westermann
See Also:
  • Field Details

    • m_chart

      protected Chart2D m_chart
      The char to use.
  • Constructor Details

    • Showcase

      public Showcase()
      Defcon.
  • Method Details

    • main

      public static void main(String[] args)
      Main entry that uses the applet initialization.

      Parameters:
      args - ignored.
      See Also:
    • clearTrace

      public void clearTrace()
      Clears the internal trace.

    • getChart

      public Chart2D getChart()
      Returns the chart.

      Returns:
      the chart to use.
    • getCollector

      public ADataCollector getCollector()
      Returns the collector to use.

      Returns:
      the collector to use.
    • getTrace

      public Trace2DLtd getTrace()
      Returns the trace.

      Returns:
      the trace.
    • init

      public void init()
      Overrides:
      init in class Applet
      See Also:
    • setChart

      public void setChart(Chart2D chart2D)
      Sets the chart to use.

      I would never code this but applets won't access private members and Checkstyle does not accept non-private members.

      So it is only accepted if the member is null. Don't try calling.

      Parameters:
      chart2D - the chart to use.
    • setTrace

      public void setTrace(Trace2DLtd trace)
      Sets the trace to use.

      This will do nothing if the internal trace has been set before and is only intended for the applet which needs public members or setters.

      Parameters:
      trace - the trace to use.
    • startData

      public void startData()
      Starts data collection.

    • stopData

      public void stopData()
      Stops data collection.