亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产精品午夜在线观看| 精品对白一区国产伦| 麻豆精品一区二区三区| 中文字幕在线不卡一区| 精品国产一二三区| 欧美精品精品一区| 粉嫩aⅴ一区二区三区四区| 亚洲三级在线观看| 国产欧美一区二区三区在线看蜜臀 | 亚洲免费在线播放| 欧美怡红院视频| 日本大胆欧美人术艺术动态| 这里只有精品免费| 成人国产精品免费观看动漫| 亚洲精品v日韩精品| 欧美一区二区福利视频| 成人精品一区二区三区中文字幕| 亚洲女爱视频在线| 欧美国产精品v| 日韩精品专区在线影院观看 | 亚洲成人精品影院| 国产精品免费丝袜| 欧美精品一区二区三区很污很色的| 国产电影一区在线| 久久精品国产亚洲5555| 亚洲第一在线综合网站| 亚洲精品国产精华液| 欧美国产精品劲爆| 欧美国产一区视频在线观看| 日韩精品影音先锋| 欧美一级理论性理论a| 7777精品伊人久久久大香线蕉的 | 日韩精品每日更新| 亚洲国产精品一区二区久久| 综合久久一区二区三区| 国产人成一区二区三区影院| 久久人人超碰精品| 亚洲精品在线电影| 日韩精品在线一区二区| 91福利在线导航| 欧美日韩一区二区三区四区五区 | 日本一区二区三区在线不卡| 久久日一线二线三线suv| 国产婷婷色一区二区三区| 久久精品一区二区| 亚洲色图一区二区三区| 视频一区二区中文字幕| 国产福利91精品一区二区三区| 国产成人午夜精品5599| heyzo一本久久综合| 欧美丰满美乳xxx高潮www| 26uuu国产电影一区二区| 亚洲欧美激情小说另类| 丝袜亚洲另类丝袜在线| 成人免费视频一区| 91精品国产入口在线| 国产精品热久久久久夜色精品三区| 国产精品视频一区二区三区不卡 | 久久久亚洲精华液精华液精华液| 国产精品热久久久久夜色精品三区| 亚洲一区二区三区四区在线观看| 天天爽夜夜爽夜夜爽精品视频| 国产福利不卡视频| 91精品久久久久久蜜臀| 一区二区三区在线视频播放| 蜜臀精品一区二区三区在线观看| a在线播放不卡| 欧美一区二区私人影院日本| 国产精品天干天干在线综合| 亚洲综合色区另类av| 99久久精品免费看国产免费软件| 91麻豆精品国产91久久久久| 亚洲精品免费一二三区| 国产精品99精品久久免费| 亚洲色图欧洲色图| 99久久综合精品| 中文字幕制服丝袜一区二区三区| 国产一区二区在线看| 亚洲精品一区二区三区影院| 日日骚欧美日韩| 欧美一区二区三区视频免费| 一区二区成人在线观看| 91激情在线视频| 婷婷成人激情在线网| 91麻豆精品国产91久久久久久久久| 日韩高清国产一区在线| 亚洲精品一线二线三线| jvid福利写真一区二区三区| 亚洲欧美一区二区不卡| 欧美久久一二三四区| 免费观看一级欧美片| 国产欧美精品在线观看| 色婷婷av一区二区三区gif| 亚洲mv在线观看| 国产情人综合久久777777| 成人国产精品免费观看| 亚洲精品成a人| 国产精品久久影院| 精品视频一区二区不卡| 成人综合在线观看| 喷水一区二区三区| 亚洲一区国产视频| 久久久久久久一区| 欧美日韩国产高清一区二区三区| 国内偷窥港台综合视频在线播放| 综合久久久久久| 精品处破学生在线二十三| 欧美日韩一区二区欧美激情| 国产成人精品aa毛片| 亚洲一区二区三区四区的| 国产欧美精品一区二区色综合| 欧美美女一区二区在线观看| 91老师片黄在线观看| 国产91色综合久久免费分享| 麻豆精品精品国产自在97香蕉| 亚洲精品国产无天堂网2021| 中文字幕不卡在线播放| 欧美夫妻性生活| 欧美一区二区久久久| 日韩美女视频在线| 久久蜜臀精品av| 国产日产欧美一区| 国产精品拍天天在线| 日韩一区有码在线| 亚洲久本草在线中文字幕| 亚洲无线码一区二区三区| 亚洲卡通欧美制服中文| 日韩高清中文字幕一区| 精品一区二区三区免费| 大白屁股一区二区视频| 在线免费观看成人短视频| 欧美性欧美巨大黑白大战| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 97精品国产露脸对白| a亚洲天堂av| 日韩午夜三级在线| 国产精品色一区二区三区| 亚洲综合丝袜美腿| 国产精品996| 制服丝袜日韩国产| 一区二区三区在线影院| 国产精品一区二区在线观看不卡 | 日韩成人精品视频| 99久久国产综合精品麻豆| 欧美日韩一区在线| 最新不卡av在线| 东方aⅴ免费观看久久av| 精品视频在线看| 亚洲午夜久久久| 94-欧美-setu| 国产精品久久久久久亚洲伦| 日韩av电影免费观看高清完整版| 亚洲影院在线观看| 成人黄页在线观看| 国产日韩欧美a| 国产麻豆视频一区| 久久久久久久久久久久久夜| 香蕉久久一区二区不卡无毒影院| 91免费小视频| 亚洲一区影音先锋| 欧美视频完全免费看| 一区二区三区色| 欧美日韩一区小说| 伦理电影国产精品| 欧美成人精品1314www| 久久99精品久久久久久动态图| 欧美一区三区四区| 日本欧美一区二区| 日韩精品在线一区| 国产精品18久久久久| 国产精品久久久久久久久免费丝袜 | 国产视频911| 91麻豆免费观看| 亚洲午夜久久久久中文字幕久| 欧美午夜理伦三级在线观看| 丝袜美腿亚洲综合| 中文av一区特黄| 欧美日韩国产片| 国产suv精品一区二区883| 亚洲精品福利视频网站| 精品久久久久久久久久久久久久久久久| 国产精品自拍网站| 亚洲韩国一区二区三区| 久久久高清一区二区三区| a美女胸又www黄视频久久| 精品无码三级在线观看视频| 亚洲欧洲精品一区二区三区| 欧美妇女性影城| 欧美最猛性xxxxx直播| 国产91精品一区二区麻豆亚洲| 亚洲mv在线观看| 亚洲欧美日韩成人高清在线一区| 7777精品伊人久久久大香线蕉经典版下载 | 日本中文字幕一区| 性做久久久久久久久| 亚洲成a天堂v人片| 亚洲成在人线免费| 日韩电影在线观看一区| 丝袜亚洲另类欧美| 日本伊人精品一区二区三区观看方式|