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