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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? defaultploteditor.java

?? jfreechart1.0.1 jsp繪制圖表的開發(fā)包
?? 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();

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91在线观看一区二区| 日韩经典中文字幕一区| 国产精品1区2区3区在线观看| 日韩一区二区在线看| 奇米精品一区二区三区在线观看一| 欧美日韩精品一区二区在线播放 | 久久综合国产精品| 激情综合亚洲精品| 中文子幕无线码一区tr| 一本到高清视频免费精品| 一级日本不卡的影视| 欧美日韩黄视频| 狠狠狠色丁香婷婷综合激情 | 91成人国产精品| 婷婷综合五月天| 精品国产三级a在线观看| 成人综合婷婷国产精品久久蜜臀| 亚洲视频一二区| 91精品国产综合久久久蜜臀粉嫩 | 欧美一区二区在线看| 国产在线视频一区二区| 自拍偷拍欧美激情| 69堂国产成人免费视频| 国产精品小仙女| 亚洲午夜三级在线| 久久亚洲二区三区| 欧美亚洲丝袜传媒另类| 精品亚洲国产成人av制服丝袜| 亚洲色图清纯唯美| 日韩欧美一级精品久久| 91一区一区三区| 久久精品国产久精国产爱| 国产精品久久看| 欧美一区欧美二区| 色一区在线观看| 国产乱子轮精品视频| 亚洲一区二区欧美| 国产精品伦理一区二区| 欧美一区二区三区成人| av综合在线播放| 国产乱人伦偷精品视频免下载| 夜夜嗨av一区二区三区| 奇米一区二区三区| 亚洲欧美一区二区三区孕妇| 精品国产乱码久久久久久影片| 91丨九色丨蝌蚪富婆spa| 久久成人综合网| 亚洲国产欧美在线人成| 国产精品久久精品日日| 欧美变态tickling挠脚心| 欧美日韩一区二区电影| bt7086福利一区国产| 国产乱子伦一区二区三区国色天香 | 国产精品久久久久久久久晋中 | av一区二区三区黑人| 久久精品999| 日日夜夜精品免费视频| 亚洲精品成人天堂一二三| 国产日韩av一区| 欧美一级二级在线观看| 6080日韩午夜伦伦午夜伦| 色老汉一区二区三区| caoporm超碰国产精品| 成人小视频在线| 国产激情一区二区三区桃花岛亚洲| 麻豆一区二区三区| 日产国产欧美视频一区精品 | 国产一区在线观看麻豆| 另类小说视频一区二区| 奇米影视一区二区三区小说| 日产欧产美韩系列久久99| 亚洲不卡在线观看| 香蕉久久一区二区不卡无毒影院| 樱花草国产18久久久久| 亚洲精品国产精华液| 亚洲视频在线观看三级| 亚洲精品videosex极品| 亚洲精品美国一| 亚洲一区二区三区自拍| 亚洲伊人伊色伊影伊综合网| 洋洋av久久久久久久一区| 午夜婷婷国产麻豆精品| 天天做天天摸天天爽国产一区| 日韩精品亚洲专区| 久久99久久久久| 国内精品视频666| 粉嫩av一区二区三区在线播放| 国产另类ts人妖一区二区| 国产成人在线视频网站| 成人h精品动漫一区二区三区| voyeur盗摄精品| 色婷婷综合久久久久中文 | 大白屁股一区二区视频| 99久久综合国产精品| 91在线视频免费91| 欧美裸体一区二区三区| 日韩午夜中文字幕| 国产午夜亚洲精品午夜鲁丝片 | 久久亚洲一级片| 中文字幕一区免费在线观看| 一卡二卡三卡日韩欧美| 久久精品国产久精国产| 丁香天五香天堂综合| 色一情一伦一子一伦一区| 欧洲视频一区二区| 日韩欧美久久一区| 国产精品美女久久久久久久网站| 一区二区三区不卡视频| 激情综合网天天干| 91丨九色丨蝌蚪丨老版| 日韩三级高清在线| 国产精品毛片高清在线完整版| 亚洲一区二区三区视频在线| 久久99日本精品| 99精品国产热久久91蜜凸| 欧美另类一区二区三区| 国产亚洲福利社区一区| 亚洲午夜免费电影| 9191成人精品久久| 国产欧美一区二区三区在线看蜜臀| 亚洲丝袜制服诱惑| 激情国产一区二区| 欧美三区在线视频| 国产精品麻豆久久久| 久久99久久99精品免视看婷婷| 不卡一区二区在线| 欧美va亚洲va| 亚洲国产美女搞黄色| 成人国产精品免费观看视频| 日韩欧美亚洲国产另类| 一区二区高清在线| 丁香六月久久综合狠狠色| 91精品国产免费| 一区二区三区波多野结衣在线观看| 麻豆成人久久精品二区三区红| 91福利国产精品| 国产精品久久久久婷婷| 国产揄拍国内精品对白| 91精品综合久久久久久| 亚洲午夜久久久久久久久电影院| 丁香另类激情小说| 久久精品免视看| 免费xxxx性欧美18vr| 欧美日韩国产三级| 亚洲最新视频在线播放| 不卡的av电影在线观看| 久久久亚洲欧洲日产国码αv| 无码av中文一区二区三区桃花岛| 成人三级伦理片| 久久综合久久久久88| 欧美aⅴ一区二区三区视频| 欧美色偷偷大香| 一区二区三区四区高清精品免费观看| 国产成人午夜电影网| 欧美xxxx老人做受| 久久精品国产**网站演员| 91精品一区二区三区久久久久久 | 日韩一区二区精品在线观看| 亚洲二区在线观看| 欧美精品日韩综合在线| 亚洲风情在线资源站| 欧美日韩黄色影视| 日韩高清一区二区| 日韩午夜在线影院| 九色porny丨国产精品| 亚洲精品一区在线观看| 精品一区二区三区久久久| www国产成人| 成人中文字幕在线| 中国av一区二区三区| 福利91精品一区二区三区| 日本一区二区三区免费乱视频| 高潮精品一区videoshd| 欧美经典一区二区| 99re6这里只有精品视频在线观看| 中日韩av电影| 欧美艳星brazzers| 日韩av高清在线观看| 精品国产成人系列| 国产激情视频一区二区在线观看| 国产精品久久夜| 日本韩国精品一区二区在线观看| 亚洲国产精品人人做人人爽| 4438x亚洲最大成人网| 国产一区二区三区日韩| 中文成人综合网| 日本高清视频一区二区| 日韩高清一级片| 国产午夜亚洲精品理论片色戒| 91在线播放网址| 青娱乐精品视频| 亚洲国产高清在线观看视频| 色综合久久久网| 日本视频在线一区| 国产欧美日韩综合精品一区二区 | 视频在线在亚洲| 精品国一区二区三区| 99精品国产一区二区三区不卡| 亚洲高清不卡在线| 久久久久青草大香线综合精品|