Class EntropyPlotPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
edu.cnu.mdi.splot.plot.AReadyPlotPanel
edu.cnu.mdi.mdi3D.view3D.kineticsDemo.EntropyPlotPanel
All Implemented Interfaces:
edu.cnu.mdi.splot.plot.PlotChangeListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class EntropyPlotPanel extends edu.cnu.mdi.splot.plot.AReadyPlotPanel
An sPlot-based entropy-vs-time strip chart for the kinetics demo, built from a single connected Curve that new points are appended to as the simulation runs.
See Also:
  • Constructor Details

    • EntropyPlotPanel

      public EntropyPlotPanel()
      Create an EntropyPlotPanel with default preferred width.
  • Method Details

    • plotChanged

      public void plotChanged(edu.cnu.mdi.splot.plot.PlotChangeType event)
    • clearData

      public void clearData()
      Specified by:
      clearData in class edu.cnu.mdi.splot.plot.AReadyPlotPanel
    • createPlotData

      protected edu.cnu.mdi.splot.pdata.PlotData createPlotData() throws edu.cnu.mdi.splot.pdata.PlotDataException
      Specified by:
      createPlotData in class edu.cnu.mdi.splot.plot.AReadyPlotPanel
      Throws:
      edu.cnu.mdi.splot.pdata.PlotDataException
    • getXAxisLabel

      protected String getXAxisLabel()
      Specified by:
      getXAxisLabel in class edu.cnu.mdi.splot.plot.AReadyPlotPanel
    • getYAxisLabel

      protected String getYAxisLabel()
      Specified by:
      getYAxisLabel in class edu.cnu.mdi.splot.plot.AReadyPlotPanel
    • getPlotTitle

      protected String getPlotTitle()
      Specified by:
      getPlotTitle in class edu.cnu.mdi.splot.plot.AReadyPlotPanel
    • addEntropy

      public void addEntropy(double x, double y)
      Append one entropy sample to the plot and repaint.

      A no-op if called before setParameters() has run and installed entropyCurve.

      Parameters:
      x - time value
      y - entropy value
    • setParameters

      public void setParameters()
      Specified by:
      setParameters in class edu.cnu.mdi.splot.plot.AReadyPlotPanel