Package ptolemy.plot

Examples of ptolemy.plot.EditablePlot


    /** Create a new plot. In this class, it is an instance of EditablePlot.
     *  @return A new editable plot object.
     */
    protected PlotBox _newPlot() {
        EditablePlot result = new EditablePlot();
        result.addEditListener(this);
        return result;
    }
View Full Code Here


            _sketchedSource.length.setToken(new IntToken(iterations));

            // Then, create the plot and place it in this applet,
            // and specify to both the source and destination actors
            // to use the same plot widget.
            EditablePlot plot = new EditablePlot();
            plot.setSize(700, 300);
            plot.setTitle("Editable envelope");
            plot.setXRange(0, iterations);
            plot.setButtons(true);
            getContentPane().add(plot);
            _sketchedSource.place(plot);
            plot.setBackground(null);
            plot.addEditListener(this);
        } catch (Exception ex) {
            report("Error constructing model.", ex);
        }
    }
View Full Code Here

    /** Construct a plot with the specified command-line arguments.
     *  @param args The command-line arguments.
     *  @exception Exception If command line arguments have problems.
     */
    public EditablePlotMLApplication(String[] args) throws Exception {
        this(new EditablePlot(), args);
    }
View Full Code Here

    public static void main(final String[] args) {
        try {
            Runnable doActions = new Runnable() {
                public void run() {
                    try {
                        new EditablePlotMLApplication(new EditablePlot(), args);
                    } catch (Exception ex) {
                        System.err.println(ex.toString());
                        ex.printStackTrace();
                    }
                }
View Full Code Here

    /** Create a new Plot object for the applet.  Derived classes can
     *  redefine this method to return a different type of plot object.
     */
    public PlotBox newPlot() {
        return new EditablePlot();
    }
View Full Code Here

TOP

Related Classes of ptolemy.plot.EditablePlot

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.