亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? defaultploteditor.java

?? 制作圖表的好工具
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* ===========================================================
 * JFreeChart : a free chart library for the Java(tm) platform
 * ===========================================================
 *
 * (C) Copyright 2000-2005, 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
 * USA.  
 *
 * [Java is a trademark or registered trademark of Sun Microsystems, Inc. 
 * in the United States and other countries.]
 *
 * ----------------------
 * DefaultPlotEditor.java
 * ----------------------
 * (C) Copyright 2005, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Andrzej Porebski;
 *                   Arnaud Lelievre;
 *                   Daniel Gredler;
 *
 * $Id: DefaultPlotEditor.java,v 1.1.2.1 2005/11/24 16:11:48 mungady Exp $
 *
 * Changes:
 * --------
 * 24-Nov-2005 : Version 1, based on PlotPropertyEditPanel.java (DG);
 *
 */

package org.jfree.chart.editor;

import java.awt.BasicStroke;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Paint;
import java.awt.Stroke;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ResourceBundle;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JColorChooser;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import org.jfree.chart.axis.Axis;
import org.jfree.chart.axis.ColorBar;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.ContourPlot;
import org.jfree.chart.plot.Plot;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.XYPlot;
import org.jfree.chart.renderer.category.CategoryItemRenderer;
import org.jfree.chart.renderer.category.LineAndShapeRenderer;
import org.jfree.chart.renderer.xy.StandardXYItemRenderer;
import org.jfree.chart.renderer.xy.XYItemRenderer;
import org.jfree.layout.LCBLayout;
import org.jfree.ui.PaintSample;
import org.jfree.ui.RectangleInsets;
import org.jfree.ui.StrokeChooserPanel;
import org.jfree.ui.StrokeSample;
import org.jfree.util.BooleanUtilities;

/**
 * A panel for editing the properties of a {@link Plot}.
 */
class DefaultPlotEditor extends JPanel implements ActionListener {

    /** Orientation constants. */
    private final static String[] orientationNames = {"Vertical", "Horizontal"};
    private final static int ORIENTATION_VERTICAL = 0;
    private final static int ORIENTATION_HORIZONTAL = 1;

    /** The paint (color) used to fill the background of the plot. */
    private PaintSample backgroundPaintSample;

    /** The stroke (pen) used to draw the outline of the plot. */
    private StrokeSample outlineStrokeSample;

    /** The paint (color) used to draw the outline of the plot. */
    private PaintSample outlinePaintSample;

    /** 
     * A panel used to display/edit the properties of the domain axis (if any). 
     */
    private DefaultAxisEditor domainAxisPropertyPanel;

    /** 
     * A panel used to display/edit the properties of the range axis (if any).
     */
    private DefaultAxisEditor rangeAxisPropertyPanel;

    /** 
     * A panel used to display/edit the properties of the colorbar axis (if 
     * any).
     */
    private DefaultColorBarEditor colorBarAxisPropertyPanel;

    /** An array of stroke samples to choose from. */
    private StrokeSample[] availableStrokeSamples;

    /** The insets for the plot. */
    private RectangleInsets plotInsets;

    /** 
     * The orientation for the plot (for <tt>CategoryPlot</tt>s and 
     * <tt>XYPlot</tt>s). 
     */
    private PlotOrientation plotOrientation;

    /** 
     * The orientation combo box (for <tt>CategoryPlot</tt>s and 
     * <tt>XYPlot</tt>s). 
     */
    private JComboBox orientationCombo;

    /** Whether or not to draw lines between each data point (for
     * <tt>LineAndShapeRenderer</tt>s and <tt>StandardXYItemRenderer</tt>s).
     */
    private Boolean drawLines;

    /**
     * The checkbox for whether or not to draw lines between each data point.
     */
    private JCheckBox drawLinesCheckBox;

    /** Whether or not to draw shapes at each data point (for
     * <tt>LineAndShapeRenderer</tt>s and <tt>StandardXYItemRenderer</tt>s).
     */
    private Boolean drawShapes;

    /**
     * The checkbox for whether or not to draw shapes at each data point.
     */
    private JCheckBox drawShapesCheckBox;

    /** The resourceBundle for the localization. */
    protected static ResourceBundle localizationResources 
        = ResourceBundle.getBundle("org.jfree.chart.editor.LocalizationBundle");

    /**
     * Standard constructor - constructs a panel for editing the properties of
     * the specified plot.
     * <P>
     * In designing the panel, we need to be aware that subclasses of Plot will
     * need to implement subclasses of PlotPropertyEditPanel - so we need to
     * leave one or two 'slots' where the subclasses can extend the user
     * interface.
     *
     * @param plot  the plot, which should be changed.
     */
    public DefaultPlotEditor(Plot plot) {

        this.plotInsets = plot.getInsets();
        this.backgroundPaintSample = new PaintSample(plot.getBackgroundPaint());
        this.outlineStrokeSample = new StrokeSample(plot.getOutlineStroke());
        this.outlinePaintSample = new PaintSample(plot.getOutlinePaint());
        if (plot instanceof CategoryPlot) {
            this.plotOrientation = ((CategoryPlot) plot).getOrientation();
        }
        else if (plot instanceof XYPlot) {
            this.plotOrientation = ((XYPlot) plot).getOrientation();
        }
        if (plot instanceof CategoryPlot) {
            CategoryItemRenderer renderer = ((CategoryPlot) plot).getRenderer();
            if (renderer instanceof LineAndShapeRenderer) {
                LineAndShapeRenderer r = (LineAndShapeRenderer) renderer;
                this.drawLines 
                    = BooleanUtilities.valueOf(r.getBaseLinesVisible());
                this.drawShapes 
                    = BooleanUtilities.valueOf(r.getBaseShapesVisible());
            }
        }
        else if (plot instanceof XYPlot) {
            XYItemRenderer renderer = ((XYPlot) plot).getRenderer();
            if (renderer instanceof StandardXYItemRenderer) {
                StandardXYItemRenderer r = (StandardXYItemRenderer) renderer;
                this.drawLines = BooleanUtilities.valueOf(r.getPlotLines());
                this.drawShapes = BooleanUtilities.valueOf(r.getBaseShapesVisible());
            }
        }

        setLayout(new BorderLayout());

        this.availableStrokeSamples = new StrokeSample[3];
        this.availableStrokeSamples[0] 
            = new StrokeSample(new BasicStroke(1.0f));
        this.availableStrokeSamples[1] 
            = new StrokeSample(new BasicStroke(2.0f));
        this.availableStrokeSamples[2] 
            = new StrokeSample(new BasicStroke(3.0f));

        // create a panel for the settings...
        JPanel panel = new JPanel(new BorderLayout());
        panel.setBorder(
            BorderFactory.createTitledBorder(
                BorderFactory.createEtchedBorder(),
                plot.getPlotType() + localizationResources.getString(":")
            )
        );

        JPanel general = new JPanel(new BorderLayout());
        general.setBorder(
            BorderFactory.createTitledBorder(
                localizationResources.getString("General")
            )
        );

        JPanel interior = new JPanel(new LCBLayout(7));
        interior.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));

//        interior.add(new JLabel(localizationResources.getString("Insets")));
//        JButton button = new JButton(
//            localizationResources.getString("Edit...")
//        );
//        button.setActionCommand("Insets");
//        button.addActionListener(this);
//
//        this.insetsTextField = new InsetsTextField(this.plotInsets);
//        this.insetsTextField.setEnabled(false);
//        interior.add(this.insetsTextField);
//        interior.add(button);

        interior.add(
            new JLabel(localizationResources.getString("Outline_stroke"))
        );
        JButton button = new JButton(localizationResources.getString("Select..."));
        button.setActionCommand("OutlineStroke");
        button.addActionListener(this);
        interior.add(this.outlineStrokeSample);
        interior.add(button);

        interior.add(
            new JLabel(localizationResources.getString("Outline_Paint"))
        );
        button = new JButton(localizationResources.getString("Select..."));
        button.setActionCommand("OutlinePaint");
        button.addActionListener(this);
        interior.add(this.outlinePaintSample);
        interior.add(button);

        interior.add(
            new JLabel(localizationResources.getString("Background_paint"))
        );
        button = new JButton(localizationResources.getString("Select..."));
        button.setActionCommand("BackgroundPaint");
        button.addActionListener(this);
        interior.add(this.backgroundPaintSample);
        interior.add(button);

        if (this.plotOrientation != null) {
            boolean isVertical 
                = this.plotOrientation.equals(PlotOrientation.VERTICAL);
            int index 
                = isVertical ? ORIENTATION_VERTICAL : ORIENTATION_HORIZONTAL;
            interior.add(
                new JLabel(localizationResources.getString("Orientation"))
            );
            this.orientationCombo = new JComboBox(orientationNames);
            this.orientationCombo.setSelectedIndex(index);
            this.orientationCombo.setActionCommand("Orientation");
            this.orientationCombo.addActionListener(this);
            interior.add(new JPanel());
            interior.add(this.orientationCombo);
        }

        if (this.drawLines != null) {
            interior.add(
                new JLabel(localizationResources.getString("Draw_lines"))
            );
            this.drawLinesCheckBox = new JCheckBox();
            this.drawLinesCheckBox.setSelected(this.drawLines.booleanValue());
            this.drawLinesCheckBox.setActionCommand("DrawLines");
            this.drawLinesCheckBox.addActionListener(this);
            interior.add(new JPanel());
            interior.add(this.drawLinesCheckBox);
        }

        if (this.drawShapes != null) {
            interior.add(
                new JLabel(localizationResources.getString("Draw_shapes"))
            );
            this.drawShapesCheckBox = new JCheckBox();
            this.drawShapesCheckBox.setSelected(this.drawShapes.booleanValue());
            this.drawShapesCheckBox.setActionCommand("DrawShapes");
            this.drawShapesCheckBox.addActionListener(this);
            interior.add(new JPanel());
            interior.add(this.drawShapesCheckBox);
        }

        general.add(interior, BorderLayout.NORTH);

        JPanel appearance = new JPanel(new BorderLayout());
        appearance.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
        appearance.add(general, BorderLayout.NORTH);

        JTabbedPane tabs = new JTabbedPane();
        tabs.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));

        Axis domainAxis = null;
        if (plot instanceof CategoryPlot) {
            domainAxis = ((CategoryPlot) plot).getDomainAxis();
        }
        else if (plot instanceof XYPlot) {
            domainAxis = ((XYPlot) plot).getDomainAxis();
        }
        this.domainAxisPropertyPanel 
            = DefaultAxisEditor.getInstance(domainAxis);
        if (this.domainAxisPropertyPanel != null) {
            this.domainAxisPropertyPanel.setBorder(
                BorderFactory.createEmptyBorder(2, 2, 2, 2)
            );
            tabs.add(
                localizationResources.getString("Domain_Axis"), 
                this.domainAxisPropertyPanel
            );
        }

        Axis rangeAxis = null;
        if (plot instanceof CategoryPlot) {
            rangeAxis = ((CategoryPlot) plot).getRangeAxis();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲免费视频成人| 精品国产成人系列| 国产原创一区二区三区| 国产精品亲子伦对白| 欧美在线观看视频在线| 国产精品一品二品| 日本亚洲视频在线| 亚洲欧美日韩一区| 国产精品无人区| 久久蜜桃香蕉精品一区二区三区| 91蝌蚪porny| 成人一区二区三区视频在线观看| 婷婷一区二区三区| 亚洲成人综合网站| 亚洲乱码日产精品bd| 国产精品成人免费在线| 久久综合色8888| 精品国产乱码久久久久久久久| 91视频国产资源| 99在线精品视频| 99久久免费精品| 9l国产精品久久久久麻豆| 风间由美一区二区av101| 国产精品亚洲а∨天堂免在线| 青青草成人在线观看| 日韩av中文在线观看| 日韩电影在线一区| 美女www一区二区| 极品少妇xxxx精品少妇偷拍| 美国十次综合导航| 精品无人码麻豆乱码1区2区| 国产成人综合在线观看| 成人app网站| 欧美日韩中字一区| 日韩午夜中文字幕| 久久精品视频一区二区| 国产精品久久久久一区二区三区 | 99精品在线观看视频| 91女厕偷拍女厕偷拍高清| 欧洲国产伦久久久久久久| 欧美丰满少妇xxxxx高潮对白| 日韩三级中文字幕| 国产精品久久二区二区| 日本一不卡视频| 99久久综合99久久综合网站| 欧美在线免费观看视频| 精品国产第一区二区三区观看体验| 欧美国产精品劲爆| 日韩精品电影在线| 成人久久视频在线观看| 欧美人与禽zozo性伦| 国产精品毛片a∨一区二区三区| 一区二区三区电影在线播| 国产又黄又大久久| 91精品视频网| 亚洲成a人片在线观看中文| 国产成人免费在线| 国产精品色一区二区三区| 91论坛在线播放| 色婷婷久久久亚洲一区二区三区| 欧美一级片在线| 一级特黄大欧美久久久| 粉嫩av一区二区三区粉嫩| 3d动漫精品啪啪1区2区免费| 亚洲日本va午夜在线影院| 国产毛片精品国产一区二区三区| 欧美日韩一区精品| 亚洲一区免费观看| 色综合久久久久网| 国产精品成人一区二区三区夜夜夜| 韩国毛片一区二区三区| 精品入口麻豆88视频| 三级一区在线视频先锋| 精品视频在线视频| 亚洲电影一区二区| 欧美人动与zoxxxx乱| 一区二区三区91| 欧美日韩中文一区| 日本不卡的三区四区五区| 制服丝袜在线91| 捆绑变态av一区二区三区| 日韩视频免费观看高清在线视频| 免费精品99久久国产综合精品| 3atv一区二区三区| 久久99国产精品久久99| 国产婷婷一区二区| 99久久久久免费精品国产| 亚洲国产人成综合网站| 欧美日韩三级在线| 寂寞少妇一区二区三区| 欧美国产日本韩| 在线观看亚洲专区| 免费观看在线综合色| 久久看人人爽人人| 91同城在线观看| 亚洲第一二三四区| 欧美精品一区二区在线播放| 国产精品91一区二区| 亚洲国产精品尤物yw在线观看| 日韩亚洲欧美综合| 99国产精品久| 国内精品自线一区二区三区视频| 国产亚洲1区2区3区| 欧美日韩高清一区二区| 国产精品一级黄| 五月天欧美精品| 国产网站一区二区| 91精品一区二区三区在线观看| 懂色av噜噜一区二区三区av| 日韩主播视频在线| 亚洲欧美日韩电影| 久久久久久**毛片大全| 欧美亚洲动漫精品| 不卡高清视频专区| 国产精品 欧美精品| 午夜a成v人精品| 亚洲小说欧美激情另类| 欧美经典一区二区三区| 精品伦理精品一区| 欧美成人女星排行榜| 欧美日韩一卡二卡| 在线视频你懂得一区二区三区| 成人午夜又粗又硬又大| 国产成人精品免费视频网站| 国产在线精品一区二区夜色| 日本美女一区二区三区| 日韩国产欧美在线播放| 婷婷综合久久一区二区三区| 亚洲一二三四在线| 午夜欧美2019年伦理 | 精品国产1区2区3区| 日韩欧美高清dvd碟片| 欧美精品一区二区在线观看| 久久综合九色综合欧美亚洲| 欧美精品一区二区三区很污很色的| 欧美一区二区视频观看视频| 日韩一区二区三区在线观看| 欧美xxxx在线观看| 国产精品三级久久久久三级| 亚洲免费av观看| 日本午夜精品一区二区三区电影 | 91精品国产91综合久久蜜臀| 91在线视频18| 午夜精品久久一牛影视| 日本一区二区成人| 亚洲综合在线电影| 免费精品99久久国产综合精品| 国产乱淫av一区二区三区| 99精品视频一区| 日韩一区二区电影网| 国产精品蜜臀av| 日韩精品国产欧美| 成人亚洲精品久久久久软件| 色婷婷av一区二区三区软件 | 欧美三级午夜理伦三级中视频| 欧美久久免费观看| 2023国产精品自拍| 亚洲精品国久久99热| 蜜桃视频一区二区三区| 色婷婷一区二区| 国产日韩欧美精品综合| 五月婷婷综合在线| 色婷婷香蕉在线一区二区| 久久一区二区三区国产精品| 午夜免费久久看| 色综合欧美在线视频区| 国产精品系列在线| 国产在线精品一区二区不卡了 | 国产午夜精品福利| 精一区二区三区| 制服丝袜av成人在线看| 亚洲综合在线免费观看| 色综合久久天天综合网| 国产精品久久久久久久久免费樱桃| 日韩黄色一级片| 欧美一级欧美三级在线观看| 亚洲综合在线视频| 欧美日韩精品二区第二页| 伊人婷婷欧美激情| 色综合久久综合| 亚洲国产综合在线| 制服丝袜亚洲色图| 日韩电影在线一区| 精品毛片乱码1区2区3区| 日韩av在线播放中文字幕| 99精品国产视频| 亚洲精品老司机| 欧美午夜电影一区| 日韩**一区毛片| 亚洲精品在线三区| av亚洲产国偷v产偷v自拍| 亚洲三级小视频| 欧美三片在线视频观看| 麻豆一区二区99久久久久| 久久综合久久综合亚洲| 成人福利视频在线看| 一片黄亚洲嫩模| 精品国产一区二区三区av性色| 国产不卡在线视频| 有码一区二区三区|