001/* A live signal plotter applet
002
003 @Author: Edward A. Lee and Christopher Hylands
004
005 @Copyright (c) 1997-2014 The Regents of the University of California.
006 All rights reserved.
007
008 Permission is hereby granted, without written agreement and without
009 license or royalty fees, to use, copy, modify, and distribute this
010 software and its documentation for any purpose, provided that the
011 above copyright notice and the following two paragraphs appear in all
012 copies of this software.
013
014 IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
015 FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
016 ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
017 THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
018 SUCH DAMAGE.
019
020 THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
021 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
022 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
023 PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
024 CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
025 ENHANCEMENTS, OR MODIFICATIONS.
026
027 PT_COPYRIGHT_VERSION_2
028 COPYRIGHTENDKEY
029 */
030package ptolemy.plot.demo;
031
032import ptolemy.plot.PlotBox;
033import ptolemy.plot.PlotLiveApplet;
034
035//////////////////////////////////////////////////////////////////////////
036//// PlotLiveDemoApplet
037
038/**
039 An Applet that demonstrates the PlotLiveDemo class.
040
041 @author Edward A. Lee, Christopher Hylands
042 @version $Id$
043 @since Ptolemy II 0.2
044 @Pt.ProposedRating red (eal)
045 @Pt.AcceptedRating red (cxh)
046 */
047@SuppressWarnings("serial")
048public class PlotLiveDemoApplet extends PlotLiveApplet {
049    /** Return a string describing this applet.
050     *  @return A description of the applet.
051     */
052    @Override
053    public String getAppletInfo() {
054        return "PlotLiveDemoApplet " + PlotBox.PTPLOT_RELEASE
055                + " : Demo of PlotLive.\n" + "By: Edward A. Lee\n"
056                + "    Christopher Hylands\n" + "($Id$)";
057    }
058
059    /** Create a new Plot object to operate on.
060     */
061    @Override
062    public PlotBox newPlot() {
063        return new PlotLiveDemo();
064    }
065}