Class PlotLiveDemo

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.print.Printable, java.io.Serializable, java.lang.Runnable, javax.accessibility.Accessible, PlotBoxInterface, PlotInterface

    public class PlotLiveDemo
    extends PlotLive
    Dynamically plot a test signal, illustrating how to use the PlotLive class.
    Since:
    Ptolemy II 0.2
    Version:
    $Id$
    Author:
    Edward A. Lee
    See Also:
    Serialized Form
    Pt.AcceptedRating:
    red (cxh)
    Pt.ProposedRating:
    red (eal)
    • Constructor Detail

      • PlotLiveDemo

        public PlotLiveDemo()
        Construct a plot for live, animated signal display. Configure the title, axes, points style, and persistence.
    • Method Detail

      • addPoints

        public void addPoints()
        Add points to the plot. This is called by the base class run() method when the plot is live.
        Specified by:
        addPoints in class PlotLive
      • main

        public static void main​(java.lang.String[] args)
        Run the demo as an application. This is very useful for debugging. The command to run would be java -classpath $PTII ptolemy.plot.demo.PlotLiveDemo
        Parameters:
        args - Not used.