JFreeChart: Contour Plot Demo 2 : Contour Plot Chart « Chart « Java

Home
Java
1.2D Graphics GUI
2.3D
3.Advanced Graphics
4.Ant
5.Apache Common
6.Chart
7.Class
8.Collections Data Structure
9.Data Type
10.Database SQL JDBC
11.Design Pattern
12.Development Class
13.EJB3
14.Email
15.Event
16.File Input Output
17.Game
18.Generics
19.GWT
20.Hibernate
21.I18N
22.J2EE
23.J2ME
24.JavaFX
25.JDK 6
26.JDK 7
27.JNDI LDAP
28.JPA
29.JSP
30.JSTL
31.Language Basics
32.Network Protocol
33.PDF RTF
34.Reflection
35.Regular Expressions
36.Scripting
37.Security
38.Servlets
39.Spring
40.Swing Components
41.Swing JFC
42.SWT JFace Eclipse
43.Threads
44.Tiny Application
45.Velocity
46.Web Services SOA
47.XML
Java » Chart » Contour Plot Chart 




JFreeChart: Contour Plot Demo 2
JFreeChart: Contour Plot Demo 2

/* ===========================================================
 * JFreeChart : a free chart library for the Java(tm) platform
 * ===========================================================
 *
 * (C) Copyright 2000-2004, by Object Refinery Limited and Contributors.
 *
 * Project Info:  http://www.jfree.org/jfreechart/index.html
 *
 * This library is free software; you can redistribute it and/or modify it under the terms
 * of the GNU Lesser General Public License as published by the Free Software Foundation;
 * either version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with this
 * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * [Java is a trademark or registered trademark of Sun Microsystems, Inc. 
 * in the United States and other countries.]
 *
 * ---------------------
 * ContourPlotDemo2.java
 * ---------------------
 * (C) Copyright 2003, 2004, by David M. O'Donnell and Contributors.
 *
 * Original Author:  David M. O'Donnell;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *
 * $Id: ContourPlotDemo2.java,v 1.18 2004/04/30 08:05:59 mungady Exp $
 *
 * Changes
 * -------
 * 22-Apr-2003 : Added standard header (DG);
 *
 */

package org.jfree.chart.demo;

import java.awt.Color;
import java.awt.Font;
import java.awt.GradientPaint;
import java.util.Date;

import org.jfree.chart.ChartPanel;
import org.jfree.chart.ClipPath;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.annotations.XYTextAnnotation;
import org.jfree.chart.axis.ColorBar;
import org.jfree.chart.axis.DateAxis;
import org.jfree.chart.axis.LogarithmicAxis;
import org.jfree.chart.axis.NumberAxis;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.plot.ContourPlot;
import org.jfree.data.contour.ContourDataset;
import org.jfree.data.contour.DefaultContourDataset;
import org.jfree.data.contour.NonGridContourDataset;
import org.jfree.ui.ApplicationFrame;
import org.jfree.ui.RefineryUtilities;

/**
 * A demonstration application to illustrate ContourPlot.
 * Command line options exist to control different plot properties
 * such as colorbar orientation, etc.  List of options are available
 * by launching with the -? option, e.g., ContourPlotDemo -?
 *
 @author DMO
 */
public class ContourPlotDemo2 extends ApplicationFrame {

    /** The x axis. */
    private ValueAxis xAxis = null;

    /** The y axis. */    
    private NumberAxis yAxis = null;
    
    /** The z axis. */
    private ColorBar zColorBar = null;

    /** A flag controlling the orientation of the z axis. */
    //private static boolean zIsVertical = false;

    /** A flag indicating whether or not the x-values are dates. */
    private static boolean xIsDate = false;
    
    /** ??. */
    private static boolean asPoints = false;

    /** Logarithmic x-axis? */
    private static boolean xIsLog = false;
    
    /** Logarithmic y axis? */
    private static boolean yIsLog = false;
    
    /** Logarithmic z axis? */
    private static boolean zIsLog = false;

    /** Inverted x axis? */
    private static boolean xIsInverted = true;
    
    /** Inverted y axis? */
    private static boolean yIsInverted = false;
    
    /** Inverted z axis? */
    private static boolean zIsInverted = false;

    /** Annotate? */
    private static boolean annotate = false;

    /** Number of x intervals. */
    private static int numX = 10;
    
    /** Number of y intervals. */
    private static int numY = 20;

    /** The plot ratio. */
    private static double ratio = 0.0;

    /** Temp data storage. */
    private double[] tmpDoubleY = null;
    
    /** Temp data storage. */
    private double[] tmpDoubleX = null;
    
    /** Temp data storage. */
    private double[] tmpDoubleZ = null;

    /** X outline. */
    private double[] xOutline = null;

    /** Y outline. */
    private double[] yOutline = null;

    /** Draw the outline? */
    static boolean drawOutline = false;
    
    /** Fill the outline? */
    static boolean fillOutline = false;
    
    /** ??. */
    static int power = 4;

    /**
     * Constructs a new demonstration application.
     *
     @param title  the frame title.
     */
    public ContourPlotDemo2(final String title) {

        super(title);

        final JFreeChart chart = createContourPlot();
        final ChartPanel panel = new ChartPanel(chart, true, true, true, true, true);
        panel.setPreferredSize(new java.awt.Dimension(1000800));
        panel.setMaximumDrawHeight(100000)//stop chartpanel from scaling
        panel.setMaximumDrawWidth(100000)//stop chartpanel from scaling
//        panel.setHorizontalZoom(true);
  //      panel.setVerticalZoom(true);
        panel.setFillZoomRectangle(true);
        setContentPane(panel);

    }

    /**
     * Creates a ContourPlot chart.
     *
     @return the ContourPlot chart.
     */
    private JFreeChart createContourPlot() {

        final String title = "Contour Plot";
        final String xAxisLabel = "X Values";
        final String yAxisLabel = "Y Values";
        final String zAxisLabel = "Color Values";

        if (xIsDate) {
            this.xAxis = new DateAxis(xAxisLabel);
            xIsLog = false// force axis to be linear when displaying dates
        }
        else {
            if (xIsLog) {
                this.xAxis = new LogarithmicAxis(xAxisLabel);
            }
            else {
                this.xAxis = new NumberAxis(xAxisLabel);
            }
        }

        if (yIsLog) {
            this.yAxis = new LogarithmicAxis(yAxisLabel);
        }
        else {
            this.yAxis = new NumberAxis(yAxisLabel);
        }

        if (zIsLog) {
            this.zColorBar = new ColorBar(zAxisLabel);
        }
        else {
            this.zColorBar = new ColorBar(zAxisLabel);
        }

        if (this.xAxis instanceof NumberAxis) {
            ((NumberAxisthis.xAxis).setAutoRangeIncludesZero(false);
            ((NumberAxisthis.xAxis).setInverted(xIsInverted);
        }

        this.yAxis.setAutoRangeIncludesZero(false);

        this.yAxis.setInverted(yIsInverted);

        if (!xIsDate) {
            ((NumberAxisthis.xAxis).setLowerMargin(0.0);
            ((NumberAxisthis.xAxis).setUpperMargin(0.0);
        }

        this.yAxis.setLowerMargin(0.0);
        this.yAxis.setUpperMargin(0.0);

        if (!xIsDate) {
            this.xAxis.setRange(10.515.0);
        
        this.yAxis.setRange(3.57.0);

        this.zColorBar.getAxis().setInverted(zIsInverted);
        this.zColorBar.getAxis().setTickMarksVisible(true);

        final ContourDataset data = createDataset();

        final ContourPlot plot = new ContourPlot(data, this.xAxis, this.yAxis, this.zColorBar);

        if (xIsDate) {
            ratio = Math.abs(ratio)// don't use plot units for ratios when x axis is date
        }
        
        if (asPoints) {
            plot.setRenderAsPoints(true);
        
        plot.setDataAreaRatio(ratio);


        if (annotate) {
            if (asPoints) {
                final Number[] xValues = data.getXValues();
                final Number[] yValues = data.getYValues();
                //Number[] zValues = data.getZValues();

                final Font font = new Font("SansSerif", Font.PLAIN, 20);

                for (int i = 0; i < xValues.length; i++) {
                    final XYTextAnnotation xyAnn = new XYTextAnnotation(Integer.toString(i),
                                               xValues[i].doubleValue(), yValues[i].doubleValue());
                    xyAnn.setFont(font);
                    plot.addAnnotation(xyAnn);
                }
            
            else {
                final Font font = new Font("SansSerif", Font.PLAIN, 20);

                for (int i = 0; i < this.tmpDoubleX.length; i++) {
                    final XYTextAnnotation xyAnn = new XYTextAnnotation(Integer.toString(i),
                            this.tmpDoubleX[i]this.tmpDoubleY[i]);
                    xyAnn.setFont(font);
                    plot.addAnnotation(xyAnn);
                }
            }

        }

        if (fillOutline || drawOutline) {
            initShoreline();
            plot.setClipPath(
                new ClipPath(this.xOutline, this.yOutline, true, fillOutline, drawOutline)
            );
        }

        final JFreeChart chart = new JFreeChart(title, null, plot, false);

        // then customise it a little...
        chart.setBackgroundPaint(new GradientPaint(00, Color.white, 01000, Color.green));

        return chart;

    }

    /**
     * Creates a ContourDataset.
     *
     @return ContourDataset.
     */
    private ContourDataset createDataset() {
        initData();

        final Double[] oDoubleX = (Double[]) DefaultContourDataset.formObjectArray(this.tmpDoubleX);
        final Double[] oDoubleY = (Double[]) DefaultContourDataset.formObjectArray(this.tmpDoubleY);
        final Double[] oDoubleZ = (Double[]) DefaultContourDataset.formObjectArray(this.tmpDoubleZ);

        final Date[] tmpDateX = new Date[this.tmpDoubleX.length];
        for (int i = 0; i < this.tmpDoubleX.length; i++) {
            tmpDateX[inew Date((long) (1000.0 this.tmpDoubleX[i]));
        }

        ContourDataset data = null;

        if (xIsDate) {
            if (asPoints) {
                data = new DefaultContourDataset("Contouring", tmpDateX, oDoubleY, oDoubleZ);
            }
            else {
                data = new NonGridContourDataset("Contouring", tmpDateX, oDoubleY, oDoubleZ);
            }
        }
        else if (!asPoints) {
            data = new NonGridContourDataset("Contouring", oDoubleX, oDoubleY, oDoubleZ,
                                             numX, numY, power);
        }
        else {
            data = new DefaultContourDataset("Contouring", oDoubleX, oDoubleY, oDoubleZ);
        }
        return data;

    }

    /**
     * Sets options passed via the command line
     *
     @param args  the arguments.
     
     @return Flag indicating whether program should continue.
     */
    protected static boolean processArgs(final String[] args) {
        final String[] options = {
            "-?""-date""-vertical""-points""-outline""-filled""-ratio:",
            "-numX:""-numY:""-power:""-annotate"
        };

        for (int i = 0; i < args.length; i++) {
            boolean foundOption = false;
            for (int j = 0; j < options.length; j++) {
                if (args[i].startsWith(options[j])) {
                    foundOption = true;
                    int index = 0;
                    String tmpStr = null;
                    switch (j) {
                        case 0// -?
                            usage();
                            return false;
                        case 1:
                            xIsDate = true;
                            break;
                        case 2:
                            //zIsVertical = true;
                            break;
                        case 3:
                            asPoints = true;
                            break;
                        case 4:
                            drawOutline = true;
                            break;
                        case 5:
                            fillOutline = true;
                            break;
                        case 6:
                            index = args[i].indexOf(':');
                            tmpStr = args[i].substring(index + 1);
                            ratio = Double.parseDouble(tmpStr);
                            break;
                        case 7:
                            index = args[i].indexOf(':');
                            tmpStr = args[i].substring(index + 1);
                            numX = Integer.parseInt(tmpStr);
                            break;
                        case 8:
                            index = args[i].indexOf(':');
                            tmpStr = args[i].substring(index + 1);
                            numY = Integer.parseInt(tmpStr);
                            break;
                        case 9:
                            index = args[i].indexOf(':');
                            tmpStr = args[i].substring(index + 1);
                            power = Integer.parseInt(tmpStr);
                            break;
                        case 10:
                            annotate = true;
                            break;
                        default:
                            System.out.println("Only 11 options available, update options array");
                    }
                }
            }
            if (!foundOption) {
                System.out.println("Unknown option: " + args[i]);
                usage();
                return false;
            }
        }

        return true// continue running application
    }

    /**
     * Prints usage options.
     */
    public static void usage() {
        System.out.println("Usage:");
        System.out.println("ContourPlotDemo2 -? -date -vertical -points -outline -filled "
                           "-ratio:value -numX:value -numY:value");
        System.out.println("Where:");
        System.out.println("-? displays usage and exits");
        System.out.println("-date the X axis will be a date");
        System.out.println("-vertical the colorbar will be drawn vertically");
        System.out.println("-points demos plotting data as point (not grid)");
        System.out.println("-outline draws shoreline outline and clips dataArea");
        System.out.println("-filled fills shoreline and clips dataArea");
        System.out.println("-ratio forces plot to maintain aspect ratio (Y/X) indicated by value");
        System.out.println("       positive values are in pixels, while negative is in plot units");
        System.out.println("-numX number of values to generate along the X axis");
        System.out.println("-numY number of values to generate along the Y axis");
    }

    /**
     * Starting point for the demonstration application.
     *
     @param args  command line options, launch ContourDemoPlot -? for listing of options.
     */
    public static void main(final String[] args) {

        if (!processArgs(args)) {
            System.exit(1);
        }
        final ContourPlotDemo2 demo = new ContourPlotDemo2("ContourPlot Demo");
        demo.pack();
        RefineryUtilities.centerFrameOnScreen(demo);
        demo.setVisible(true);

    }

    /**
     * Initialise data.
     */
    private void initData() {

        final double[] tmpDoubleYY = {
            6.7826.796.8826.2896.339,
            6.4266.5845.5325.7885.9226.0534.0084.1854.4564.8014.779,
            4.5725.2025.6135.893
        }//3.5,7}; // add values to fill entire lake surface

        final double[] tmpDoubleXX = {
            14.50814.41314.32914.51214.28414.08513.793,
            13.60313.49213.22912.95611.08711.06210.93711.16911.83712.182,
            12.80212.78212.687
        }//10.5,15}; // add values to fill entire lake surface

        final double[] tmpDoubleZZ = {
            2.031.230.863.992.3833.086.636.847.38,
            6.9910.411.1110.9711.2211.2510.687.938.177.4
        }//12.0, 0.0};  // add values to fill entire lake surface

        this.tmpDoubleY = new double[tmpDoubleYY.length];
        this.tmpDoubleX = new double[tmpDoubleXX.length];
        this.tmpDoubleZ = new double[tmpDoubleZZ.length];

        for (int i = 0; i < this.tmpDoubleX.length; i++) {
            this.tmpDoubleX[i= tmpDoubleXX[i];
            this.tmpDoubleY[i= tmpDoubleYY[i];
            this.tmpDoubleZ[i= tmpDoubleZZ[i];
        }
    }

    /**
     * Initialise data.
     */
    private void initShoreline() {
        final double[] yyOutline = {6.93E+006.91E+006.90E+006.88E+006.86E+00,
            6.85E+006.83E+006.85E+006.86E+006.88E+006.90E+006.90E+006.90E+00,
            6.89E+006.88E+006.86E+006.84E+006.83E+006.81E+006.79E+006.78E+00,
            6.76E+006.74E+006.73E+006.71E+006.69E+006.68E+006.66E+006.64E+00,
            6.63E+006.61E+006.59E+006.58E+006.56E+006.54E+006.53E+006.52E+00,
            6.50E+006.49E+006.47E+006.45E+006.44E+006.42E+006.40E+006.39E+00,
            6.37E+006.35E+006.34E+006.32E+006.30E+006.29E+006.27E+006.25E+00,
            6.24E+006.22E+006.20E+006.19E+006.17E+006.15E+006.14E+006.12E+00,
            6.10E+006.08E+006.07E+006.05E+006.04E+006.02E+006.00E+005.98E+00,
            5.97E+005.95E+005.93E+005.92E+005.90E+005.88E+005.87E+005.85E+00,
            5.83E+005.82E+005.80E+005.78E+005.77E+005.76E+005.74E+005.73E+00,
            5.71E+005.70E+005.68E+005.66E+005.65E+005.63E+005.62E+005.60E+00,
            5.59E+005.59E+005.57E+005.56E+005.54E+005.52E+005.51E+005.49E+00,
            5.47E+005.46E+005.44E+005.42E+005.41E+005.39E+005.37E+005.36E+00,
            5.34E+005.34E+005.33E+005.32E+005.31E+005.30E+005.30E+005.30E+00,
            5.29E+005.29E+005.29E+005.29E+005.29E+005.30E+005.31E+005.32E+00,
            5.34E+005.35E+005.36E+005.36E+005.38E+005.39E+005.40E+005.42E+00,
            5.42E+005.42E+005.42E+005.42E+005.42E+005.41E+005.41E+005.41E+00,
            5.40E+005.38E+005.37E+005.35E+005.33E+005.32E+005.30E+005.28E+00,
            5.27E+005.25E+005.23E+005.22E+005.21E+005.19E+005.17E+005.16E+00,
            5.14E+005.12E+005.11E+005.09E+005.07E+005.06E+005.06E+005.05E+00,
            5.04E+005.04E+005.03E+005.02E+005.00E+004.99E+004.97E+004.95E+00,
            4.93E+004.92E+004.91E+004.90E+004.89E+004.87E+004.86E+004.84E+00,
            4.82E+004.80E+004.79E+004.77E+004.75E+004.74E+004.72E+004.70E+00,
            4.69E+004.67E+004.65E+004.64E+004.62E+004.60E+004.58E+004.57E+00,
            4.55E+004.54E+004.52E+004.50E+004.49E+004.47E+004.46E+004.44E+00,
            4.42E+004.41E+004.39E+004.38E+004.37E+004.36E+004.34E+004.32E+00,
            4.31E+004.29E+004.27E+004.26E+004.25E+004.24E+004.22E+004.21E+00,
            4.19E+004.18E+004.17E+004.15E+004.14E+004.12E+004.10E+004.08E+00,
            4.07E+004.05E+004.04E+004.02E+004.01E+004.01E+004.01E+004.00E+00,
            4.00E+004.00E+003.99E+003.99E+003.98E+003.98E+003.97E+003.97E+00,
            3.97E+003.96E+003.96E+003.94E+003.93E+003.91E+003.90E+003.89E+00,
            3.89E+003.88E+003.86E+003.85E+003.84E+003.83E+003.82E+003.80E+00,
            3.79E+003.77E+003.75E+003.74E+003.72E+003.71E+003.69E+003.69E+00,
            3.69E+003.69E+003.69E+003.69E+003.71E+003.72E+003.72E+003.74E+00,
            3.75E+003.77E+003.78E+003.80E+003.81E+003.83E+003.85E+003.86E+00,
            3.88E+003.90E+003.91E+003.93E+003.95E+003.96E+003.98E+004.00E+00,
            4.01E+004.03E+004.04E+004.06E+004.08E+004.09E+004.11E+004.13E+00,
            4.14E+004.16E+004.18E+004.19E+004.21E+004.23E+004.24E+004.26E+00,
            4.28E+004.29E+004.31E+004.33E+004.34E+004.36E+004.38E+004.39E+00,
            4.41E+004.43E+004.44E+004.46E+004.48E+004.49E+004.51E+004.53E+00,
            4.54E+004.56E+004.58E+004.59E+004.61E+004.62E+004.64E+004.66E+00,
            4.67E+004.69E+004.70E+004.72E+004.73E+004.75E+004.76E+004.78E+00,
            4.79E+004.81E+004.82E+004.83E+004.84E+004.86E+004.87E+004.88E+00,
            4.90E+004.91E+004.93E+004.94E+004.95E+004.97E+004.98E+005.00E+00,
            5.01E+005.02E+005.04E+005.06E+005.07E+005.09E+005.10E+005.12E+00,
            5.14E+005.15E+005.17E+005.19E+005.20E+005.22E+005.24E+005.25E+00,
            5.27E+005.29E+005.30E+005.32E+005.34E+005.36E+005.37E+005.39E+00,
            5.41E+005.42E+005.44E+005.45E+005.47E+005.48E+005.50E+005.51E+00,
            5.52E+005.54E+005.55E+005.57E+005.58E+005.60E+005.61E+005.63E+00,
            5.65E+005.66E+005.68E+005.69E+005.70E+005.71E+005.73E+005.74E+00,
            5.76E+005.75E+005.75E+005.76E+005.77E+005.79E+005.80E+005.82E+00,
            5.84E+005.85E+005.87E+005.88E+005.90E+005.91E+005.93E+005.94E+00,
            5.96E+005.97E+005.99E+005.99E+006.00E+006.00E+005.98E+005.98E+00,
            5.97E+005.98E+006.00E+005.98E+005.98E+006.00E+006.02E+006.03E+00,
            6.05E+006.06E+006.07E+006.07E+006.06E+006.04E+006.03E+006.01E+00,
            6.03E+006.04E+006.06E+006.08E+006.09E+006.10E+006.11E+006.13E+00,
            6.13E+006.14E+006.15E+006.16E+006.17E+006.18E+006.18E+006.18E+00,
            6.19E+006.21E+006.22E+006.23E+006.24E+006.25E+006.25E+006.26E+00,
            6.27E+006.29E+006.31E+006.32E+006.34E+006.35E+006.36E+006.38E+00,
            6.39E+006.41E+006.43E+006.45E+006.46E+006.48E+006.49E+006.51E+00,
            6.52E+006.54E+006.55E+006.56E+006.57E+006.59E+006.60E+006.62E+00,
            6.63E+006.65E+006.66E+006.67E+006.69E+006.70E+006.72E+006.73E+00,
            6.75E+006.76E+006.77E+006.79E+006.80E+006.81E+006.83E+006.83E+00,
            6.85E+006.86E+006.87E+006.88E+006.88E+006.89E+006.90E+006.90E+00,
            6.91E+006.91E+006.91E+006.90E+006.91E+006.92E+006.92E+006.93E+00,
            6.93E+006.93E+006.91E+006.90E+006.88E+006.87E+006.88E+006.90E+00,
            6.90E+006.92E+006.94E+006.95E+006.96E+00};

        final double[] xxOutline = {1.46171E+011.45984E+011.45883E+011.45818E+01,
            1.45626E+011.45435E+011.45257E+011.45462E+011.45653E+011.45854E+01,
            1.46027E+011.46256E+011.46482E+011.46707E+011.46934E+011.47161E+01,
            1.47312E+011.47494E+011.47604E+011.47746E+011.47856E+011.47939E+01,
            1.48040E+011.48141E+011.48175E+011.48199E+011.48247E+011.48244E+01,
            1.48255E+011.48258E+011.48215E+011.48172E+011.48084E+011.47978E+01,
            1.47836E+011.47604E+011.47376E+011.47193E+011.47142E+011.47117E+01,
            1.47074E+011.47017E+011.46952E+011.46828E+011.46722E+011.46621E+01,
            1.46461E+011.46378E+011.46313E+011.46252E+011.46186E+011.46013E+01,
            1.45813E+011.45770E+011.45736E+011.45725E+011.45632E+011.45513E+01,
            1.45470E+011.45391E+011.45335E+011.45152E+011.44961E+011.44738E+01,
            1.44619E+011.44387E+011.44209E+011.44031E+011.43934E+011.43847E+01,
            1.43768E+011.43698E+011.43628E+011.43500E+011.43353E+011.43148E+01,
            1.43029E+011.42950E+011.42826E+011.42694E+011.42633E+011.42409E+01,
            1.42222E+011.42017E+011.41789E+011.41566E+011.41406E+011.41336E+01,
            1.41249E+011.41174E+011.41050E+011.40822E+011.40599E+011.40371E+01,
            1.40146E+011.40009E+011.39939E+011.39878E+011.39777E+011.39662E+01,
            1.39525E+011.39306E+011.39156E+011.39023E+011.38917E+011.38806E+01,
            1.38692E+011.38586E+011.38412E+011.38189E+011.37965E+011.37741E+01,
            1.37509E+011.37280E+011.37047E+011.36809E+011.36580E+011.36351E+01,
            1.36126E+011.35896E+011.35667E+011.35437E+011.35207E+011.34981E+01,
            1.34781E+011.34716E+011.34480E+011.34250E+011.34015E+011.33788E+01,
            1.33561E+011.33335E+011.33099E+011.32865E+011.32631E+011.32406E+01,
            1.32176E+011.31952E+011.31727E+011.31503E+011.31278E+011.31054E+01,
            1.31042E+011.31121E+011.31155E+011.31301E+011.31393E+011.31449E+01,
            1.31510E+011.31494E+011.31465E+011.31426E+011.31202E+011.31070E+01,
            1.30968E+011.30835E+011.30640E+011.30547E+011.30558E+011.30479E+01,
            1.30297E+011.30115E+011.29891E+011.29667E+011.29442E+011.29205E+01,
            1.28972E+011.28748E+011.28520E+011.28337E+011.28173E+011.27973E+01,
            1.27880E+011.27757E+011.27534E+011.27310E+011.27086E+011.26863E+01,
            1.26635E+011.26412E+011.26212E+011.26115E+011.26054E+011.25980E+01,
            1.25933E+011.25813E+011.25717E+011.25584E+011.25460E+011.25345E+01,
            1.25239E+011.25205E+011.25140E+011.25061E+011.25000E+011.24971E+01,
            1.24937E+011.24791E+011.24662E+011.24511E+011.24284E+011.24061E+01,
            1.23874E+011.23804E+011.23739E+011.23723E+011.23720E+011.23628E+01,
            1.23395E+011.23171E+011.23015E+011.22964E+011.23105E+011.23121E+01,
            1.23010E+011.22837E+011.22614E+011.22382E+011.22153E+011.21931E+01,
            1.21707E+011.21480E+011.21252E+011.21024E+011.20805E+011.20713E+01,
            1.20513E+011.20294E+011.20103E+011.19939E+011.19711E+011.19488E+01,
            1.19265E+011.19041E+011.18817E+011.18592E+011.18368E+011.18143E+01,
            1.17905E+011.17680E+011.17443E+011.17218E+011.16989E+011.16756E+01,
            1.16527E+011.16302E+011.16078E+011.15849E+011.15720E+011.15808E+01,
            1.15576E+011.15343E+011.15119E+011.14891E+011.14667E+011.14443E+01,
            1.14202E+011.13969E+011.13745E+011.13517E+011.13349E+011.13324E+01,
            1.13267E+011.13198E+011.13110E+011.12886E+011.12663E+011.12467E+01,
            1.12239E+011.12000E+011.11761E+011.11527E+011.11297E+011.11070E+01,
            1.10831E+011.10605E+011.10378E+011.10142E+011.09969E+011.09733E+01,
            1.09507E+011.09320E+011.09129E+011.08996E+011.08899E+011.08803E+01,
            1.08625E+011.08398E+011.08207E+011.08083E+011.07928E+011.07836E+01,
            1.07717E+011.07503E+011.07357E+011.07126E+011.06989E+011.07027E+01,
            1.06908E+011.06807E+011.06764E+011.06767E+011.06832E+011.06974E+01,
            1.06976E+011.06902E+011.06904E+011.06970E+011.07013E+011.06911E+01,
            1.06878E+011.06763E+011.06734E+011.06723E+011.06734E+011.06701E+01,
            1.06690E+011.06597E+011.06519E+011.06467E+011.06379E+011.06224E+01,
            1.06213E+011.06279E+011.06339E+011.06378E+011.06448E+011.06607E+01,
            1.06830E+011.07058E+011.07214E+011.07419E+011.07587E+011.07815E+01,
            1.08011E+011.08234E+011.08448E+011.08675E+011.08903E+011.09126E+01,
            1.09349E+011.09581E+011.09805E+011.10033E+011.10261E+011.10484E+01,
            1.10716E+011.10939E+011.11172E+011.11400E+011.11600E+011.11823E+01,
            1.12046E+011.12270E+011.12493E+011.12702E+011.12930E+011.13153E+01,
            1.13377E+011.13609E+011.13805E+011.14009E+011.14233E+011.14438E+01,
            1.14620E+011.14784E+011.14944E+011.15162E+011.15318E+011.15460E+01,
            1.15584E+011.15703E+011.15804E+011.15897E+011.16020E+011.16099E+01,
            1.16178E+011.16230E+011.16349E+011.16446E+011.16498E+011.16577E+01,
            1.16777E+011.17005E+011.17232E+011.17455E+011.17678E+011.17906E+01,
            1.18116E+011.18339E+011.18562E+011.18786E+011.18999E+011.19227E+01,
            1.19450E+011.19678E+011.19856E+011.20024E+011.20166E+011.20304E+01,
            1.20531E+011.20755E+011.20984E+011.21207E+011.21344E+011.21567E+01,
            1.21793E+011.22023E+011.22247E+011.22470E+011.22652E+011.22740E+01,
            1.22941E+011.23042E+011.23265E+011.23488E+011.23716E+011.23939E+01,
            1.24162E+011.24394E+011.24612E+011.24844E+011.25067E+011.25300E+01,
            1.25524E+011.25753E+011.25983E+011.26209E+011.26434E+011.26504E+01,
            1.26434E+011.26549E+011.26443E+011.26214E+011.26045E+011.25962E+01,
            1.25978E+011.26201E+011.26425E+011.26653E+011.26877E+011.27086E+01,
            1.27147E+011.27189E+011.27074E+011.27180E+011.27277E+011.27383E+01,
            1.27498E+011.27707E+011.27931E+011.28155E+011.28382E+011.28611E+01,
            1.28835E+011.29059E+011.29287E+011.29510E+011.29743E+011.29968E+01,
            1.30207E+011.30440E+011.30640E+011.30836E+011.31068E+011.31302E+01,
            1.31531E+011.31764E+011.31997E+011.32220E+011.32443E+011.32576E+01,
            1.32695E+011.32873E+011.33105E+011.33329E+011.33552E+011.33784E+01,
            1.33944E+011.34113E+011.34344E+011.34568E+011.34781E+011.35004E+01,
            1.35228E+011.35415E+011.35610E+011.35834E+011.36058E+011.36282E+01,
            1.36450E+011.36583E+011.36806E+011.37030E+011.37239E+011.37472E+01,
            1.37695E+011.37864E+011.38092E+011.38328E+011.38538E+011.38761E+01,
            1.38984E+011.39212E+011.39449E+011.39672E+011.39913E+011.40141E+01,
            1.40365E+011.40589E+011.40816E+011.41049E+011.41273E+011.41502E+01,
            1.41725E+011.41950E+011.42179E+011.42408E+011.42637E+011.42889E+01,
            1.43115E+011.43339E+011.43563E+011.43787E+011.44021E+011.44245E+01,
            1.44475E+011.44702E+011.44924E+011.44868E+011.44644E+011.44868E+01,
            1.45073E+011.45297E+011.45515E+011.45662E+011.45885E+011.45938E+01};


        this.xOutline = new double[xxOutline.length];
        this.yOutline = new double[yyOutline.length];

        for (int i = 0; i < this.xOutline.length; i++) {
            this.xOutline[i= xxOutline[i];
            this.yOutline[i= yyOutline[i];
        }
    }

}


           
       














jfreechart-1.0.0-rc1.zip( 3,559 k)
Related examples in the same category
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.