Class AizawaPhasePlotPanel

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.aizawaDemo.AizawaPhasePlotPanel
All Implemented Interfaces:
edu.cnu.mdi.splot.plot.PlotChangeListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class AizawaPhasePlotPanel extends edu.cnu.mdi.splot.plot.AReadyPlotPanel
2D phase plot panel for the Aizawa attractor demo.

This panel plots the current trajectory in the x-z plane. Each point added is interpreted as one phase-space sample (x, z).

See Also:
  • Constructor Details

    • AizawaPhasePlotPanel

      public AizawaPhasePlotPanel()
      Construct the phase plot panel.
  • 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
    • setPhaseData

      public void setPhaseData(float[] coords)
      Set the phase data from a packed coordinate array.
      Parameters:
      coords - the packed coordinates in the form [x1, y1, z1, x2, y2, z2, ..., xn, yn, zn]
    • 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
    • addPhasePoint

      public void addPhasePoint(double x, double z)
      Add one point to the phase plot.
      Parameters:
      x - the x coordinate
      z - the z coordinate
    • setParameters

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