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

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

?? legendpropertyeditpanel.java

?? Web圖形化的Java庫
?? JAVA
字號:
/* ======================================
 * JFreeChart : a free Java chart library
 * ======================================
 *
 * Project Info:  http://www.jfree.org/jfreechart/index.html
 * Project Lead:  David Gilbert (david.gilbert@object-refinery.com);
 *
 * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
 *
 * 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.
 *
 * ----------------------------
 * LegendPropertyEditPanel.java
 * ----------------------------
 * (C) Copyright 2000-2003, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert;
 * Contributor(s):   Arnaud Lelievre;
 *
 * $Id: LegendPropertyEditPanel.java,v 1.5 2003/09/08 22:08:28 mungady Exp $
 *
 * Changes (from 24-Aug-2001)
 * --------------------------
 * 24-Aug-2001 : Added standard source header. Fixed DOS encoding problem (DG);
 * 07-Nov-2001 : Separated the JCommon Class Library classes, JFreeChart now requires
 *               jcommon.jar (DG);
 * 25-Jun-2002 : Revised header, removed redundant code (DG);
 * 08-Sep-2003 : Added internationalization via use of properties resourceBundle (RFE 690236) (AL); 
 *
 */

package org.jfree.chart.ui;

import java.awt.BasicStroke;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
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.JColorChooser;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

import org.jfree.chart.Legend;
import org.jfree.chart.StandardLegend;
import org.jfree.layout.LCBLayout;
import org.jfree.ui.FontChooserPanel;
import org.jfree.ui.FontDisplayField;
import org.jfree.ui.PaintSample;
import org.jfree.ui.StrokeChooserPanel;
import org.jfree.ui.StrokeSample;

/**
 * A panel for editing the properties of a {@link Legend}.
 *
 * @author David Gilbert
 */
class LegendPropertyEditPanel extends JPanel implements ActionListener {

    /** The stroke (pen) used to draw the legend outline. */
    private StrokeSample outlineStroke;

    /** The paint (color) used to draw the legend outline. */
    private PaintSample outlinePaint;

    /** The paint (color) used to fill the legend background. */
    private PaintSample backgroundPaint;

    /** The font used to draw the series names. */
    private Font seriesFont;

    /** The paint (color) used to draw the series names. */
    private PaintSample seriesPaint;

    /** An array of strokes (pens) to select from. */
    private StrokeSample[] availableStrokeSamples;

    /** A field for displaying the series label font. */
    private FontDisplayField fontDisplayField;

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

    /**
     * Standard constructor: builds a panel based on the specified legend.
     *
     * @param legend    the legend, which should be changed.
     */
    public LegendPropertyEditPanel(Legend legend) {

        StandardLegend l = (StandardLegend) legend;
        outlineStroke = new StrokeSample(l.getOutlineStroke());
        outlinePaint = new PaintSample(l.getOutlinePaint());
        backgroundPaint = new PaintSample(l.getBackgroundPaint());
        seriesFont = l.getItemFont();
        seriesPaint = new PaintSample(l.getItemPaint());

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

        setLayout(new BorderLayout());

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

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

        interior.add(new JLabel(localizationResources.getString("Outline")));
        interior.add(outlineStroke);
        JButton button = new JButton(localizationResources.getString("Select..."));
        button.setActionCommand("OutlineStroke");
        button.addActionListener(this);
        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(outlinePaint);
        interior.add(button);

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

        interior.add(new JLabel(localizationResources.getString("Series_label_font")));
        button = new JButton(localizationResources.getString("Select..."));
        button.setActionCommand("SeriesFont");
        button.addActionListener(this);
        fontDisplayField = new FontDisplayField(seriesFont);
        interior.add(fontDisplayField);
        interior.add(button);

        interior.add(new JLabel(localizationResources.getString("Series_label_paint")));
        button = new JButton(localizationResources.getString("Select..."));
        button.setActionCommand("SeriesPaint");
        button.addActionListener(this);
        interior.add(seriesPaint);
        interior.add(button);

        general.add(interior);
        add(general, BorderLayout.NORTH);
    }

    /**
     * Returns the current outline stroke.
     *
     * @return The current outline stroke.
     */
    public Stroke getOutlineStroke() {
        return outlineStroke.getStroke();
    }

    /**
     * Returns the current outline paint.
     *
     * @return The current outline paint.
     */
    public Paint getOutlinePaint() {
        return outlinePaint.getPaint();
    }

    /**
     * Returns the current background paint.
     *
     * @return The current background paint.
     */
    public Paint getBackgroundPaint() {
        return backgroundPaint.getPaint();
    }

    /**
     * Returns the current series label font.
     *
     * @return The current series label font.
     */
    public Font getSeriesFont() {
        return seriesFont;
    }

    /**
     * Returns the current series label paint.
     *
     * @return The current series label paint.
     */
    public Paint getSeriesPaint() {
        return seriesPaint.getPaint();
    }

    /**
     * Handles user interactions with the panel.
     *
     * @param event  the event.
     */
    public void actionPerformed(ActionEvent event) {
        String command = event.getActionCommand();
        if (command.equals("OutlineStroke")) {
            attemptModifyOutlineStroke();
        }
        else if (command.equals("OutlinePaint")) {
            attemptModifyOutlinePaint();
        }
        else if (command.equals("BackgroundPaint")) {
            attemptModifyBackgroundPaint();
        }
        else if (command.equals("SeriesFont")) {
            attemptModifySeriesFont();
        }
        else if (command.equals("SeriesPaint")) {
            attemptModifySeriesPaint();
        }
    }

    /**
     * Allows the user the opportunity to change the outline stroke.
     */
    private void attemptModifyOutlineStroke() {

        StrokeChooserPanel panel = new StrokeChooserPanel(outlineStroke, availableStrokeSamples);
        int result = 
            JOptionPane.showConfirmDialog(this, panel,
                                          localizationResources.getString("Pen_Stroke_Selection"),
                                          JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);

        if (result == JOptionPane.OK_OPTION) {
            outlineStroke.setStroke(panel.getSelectedStroke());
        }

    }

    /**
     * Allows the user the opportunity to change the outline paint.
     */
    private void attemptModifyOutlinePaint() {
        Color c;
        c = JColorChooser.showDialog(this, localizationResources.getString("Outline_Color"),
                                     Color.blue);
        if (c != null) {
            outlinePaint.setPaint(c);
        }
    }

    /**
     * Allows the user the opportunity to change the background paint.
     */
    private void attemptModifyBackgroundPaint() {
        Color c;
        c = JColorChooser.showDialog(this, localizationResources.getString("Background_Color"),
                                     Color.blue);
        if (c != null) {
            backgroundPaint.setPaint(c);
        }
    }

    /**
     * Allows the user the opportunity to change the series label font.
     */
    public void attemptModifySeriesFont() {

        FontChooserPanel panel = new FontChooserPanel(seriesFont);
        int result = 
            JOptionPane.showConfirmDialog(this, panel,
                                          localizationResources.getString("Font_Selection"),
                                          JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);

        if (result == JOptionPane.OK_OPTION) {
            seriesFont = panel.getSelectedFont();
            fontDisplayField.setText(seriesFont.getFontName() + ", " + seriesFont.getSize());
        }

    }

    /**
     * Allows the user the opportunity to change the series label paint.
     */
    private void attemptModifySeriesPaint() {
        Color c;
        c = JColorChooser.showDialog(this, localizationResources.getString("Series_Label_Color"),
                                     Color.blue);
        if (c != null) {
            seriesPaint.setPaint(c);
        }
    }

    /**
     * Sets the properties of the specified legend to match the properties
     * defined on this panel.
     *
     * @param legend    an instance of <code>StandardLegend</code>.
     */
    public void setLegendProperties(Legend legend) {
        if (legend instanceof StandardLegend) {
            // only supports StandardLegend at present
            StandardLegend standard = (StandardLegend) legend;
            standard.setOutlineStroke(getOutlineStroke());
            standard.setOutlinePaint(getOutlinePaint());
            standard.setBackgroundPaint(getBackgroundPaint());
            standard.setItemFont(getSeriesFont());
            standard.setItemPaint(getSeriesPaint());
        }
        else {
            // raise exception - unrecognised legend
        }
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
97久久精品人人爽人人爽蜜臀| 91色在线porny| 中文字幕一区三区| 91麻豆精品国产自产在线| 国产成人自拍高清视频在线免费播放| 一区二区欧美国产| 国产午夜精品一区二区| 4hu四虎永久在线影院成人| av电影在线不卡| 国产一区二区91| 男人的天堂久久精品| 一级精品视频在线观看宜春院 | 成人精品国产福利| 免费人成在线不卡| 五月天激情综合网| 图片区小说区国产精品视频| 亚洲天堂精品在线观看| 久久精品视频一区二区| 日韩一级高清毛片| 欧美人体做爰大胆视频| 在线视频你懂得一区二区三区| 国产成人av资源| 国产美女久久久久| 久久精品国产亚洲a| 日韩中文字幕av电影| 亚洲综合色区另类av| 最新热久久免费视频| 国产视频一区二区在线| 久久久久国产精品厨房| 精品久久久久香蕉网| 日韩精品专区在线影院重磅| 在线不卡一区二区| 欧美视频在线播放| 欧美三级日本三级少妇99| 在线免费视频一区二区| 日本乱人伦aⅴ精品| 99re在线精品| 99久久国产综合精品色伊| jlzzjlzz国产精品久久| 91视视频在线观看入口直接观看www| 成人午夜视频网站| 成人精品免费看| 成人久久视频在线观看| 国产91精品精华液一区二区三区| 国产在线视频一区二区| 国产一区二区免费在线| 丁香激情综合国产| 99精品久久久久久| 日本精品视频一区二区三区| 欧美艳星brazzers| 欧美区一区二区三区| 91精品欧美福利在线观看| 日韩一区二区三区高清免费看看| 欧美一区二区三区在线观看 | 在线观看91精品国产入口| 欧美中文字幕一区二区三区| 欧美日韩国产不卡| 日韩一区二区三区在线视频| www久久精品| 国产精品久久久久久久浪潮网站 | 精品国产乱码久久久久久图片 | 久久综合精品国产一区二区三区 | 国产白丝精品91爽爽久久| 成人app软件下载大全免费| 色婷婷亚洲精品| 91精品国产一区二区| 久久精品亚洲乱码伦伦中文| 国产精品毛片高清在线完整版| 亚洲激情av在线| 日本不卡一二三| 国产成人精品亚洲777人妖| 色88888久久久久久影院按摩| 日韩一级成人av| 国产精品午夜久久| 亚洲国产乱码最新视频| 久草精品在线观看| 91在线看国产| 91精品国产欧美一区二区| 久久综合久久综合久久| 亚洲狠狠丁香婷婷综合久久久| 日本在线不卡一区| 91丨九色丨蝌蚪丨老版| 91麻豆精品国产91| 国产精品久久久久久亚洲伦| 日韩中文欧美在线| 92国产精品观看| 精品盗摄一区二区三区| 亚洲国产综合色| 成人国产在线观看| 欧美另类变人与禽xxxxx| 国产精品视频免费看| 奇米影视在线99精品| 色狠狠av一区二区三区| 国产欧美日韩三级| 日韩制服丝袜av| 91片黄在线观看| 精品99一区二区| 丝瓜av网站精品一区二区 | 精品国产伦一区二区三区免费| 亚洲日本丝袜连裤袜办公室| 国产一区二区精品久久| 欧美日韩亚洲不卡| 亚洲欧美影音先锋| 黑人巨大精品欧美黑白配亚洲| 一道本成人在线| 国产三级精品视频| 蜜臀va亚洲va欧美va天堂| 欧美亚洲综合色| 中文字幕日韩精品一区| 国产在线播精品第三| 538在线一区二区精品国产| 一区二区三区产品免费精品久久75| 国产精品资源在线观看| 91精品国产综合久久香蕉麻豆| 亚洲精品国产a久久久久久 | 欧美高清视频www夜色资源网| 国产精品私房写真福利视频| 国产一区二区中文字幕| 日韩免费看的电影| 日日摸夜夜添夜夜添精品视频 | 国产精品久久国产精麻豆99网站 | 9色porny自拍视频一区二区| 久久综合九色欧美综合狠狠 | 亚洲国产一区二区a毛片| 99久久免费国产| 中文字幕亚洲精品在线观看 | 波波电影院一区二区三区| 国产日韩欧美一区二区三区综合| 蜜桃视频在线观看一区二区| 欧美一区二区三区男人的天堂| 亚洲bdsm女犯bdsm网站| 欧美三级一区二区| 亚洲chinese男男1069| 欧美日韩一区二区三区免费看| 亚洲美女淫视频| 91国偷自产一区二区三区成为亚洲经典 | 欧美探花视频资源| 一区二区三区**美女毛片| 在线亚洲高清视频| 亚洲国产精品久久久久婷婷884| 欧美性极品少妇| 日韩精品一二区| 日韩色视频在线观看| 久久97超碰色| 国产欧美一区视频| eeuss鲁片一区二区三区在线看| 国产精品乱码人人做人人爱| 色综合婷婷久久| 亚洲成av人片一区二区三区| 91麻豆精品国产无毒不卡在线观看| 蜜桃视频免费观看一区| 久久久欧美精品sm网站| 国产剧情av麻豆香蕉精品| 国产精品每日更新| 在线观看一区二区视频| 人妖欧美一区二区| 国产午夜精品美女毛片视频| 91在线观看免费视频| 亚洲国产成人porn| 欧美大胆人体bbbb| 丰满少妇在线播放bd日韩电影| 亚洲男帅同性gay1069| 欧美日韩国产中文| 国产一区二区三区免费看| 国产精品不卡在线观看| 欧美三级三级三级爽爽爽| 久久精品国产第一区二区三区| 国产免费久久精品| 欧美天天综合网| 国产伦精品一区二区三区免费| 中文字幕一区二区三区色视频| 欧美日韩国产成人在线免费| 国产精品一色哟哟哟| 亚洲主播在线播放| 精品国产乱码久久久久久夜甘婷婷 | 国产成人激情av| 亚洲在线视频一区| 精品国产乱码久久久久久久久| av在线一区二区三区| 午夜国产精品一区| 中文字幕精品一区二区三区精品| 欧美色视频在线观看| 国产成人一级电影| 视频一区二区三区中文字幕| 国产精品三级视频| 欧美一级淫片007| 色天天综合久久久久综合片| 激情综合色丁香一区二区| 亚洲美女视频一区| 欧美不卡一二三| 欧美日韩视频在线第一区 | 亚洲美女精品一区| 精品99久久久久久| 欧美日韩久久一区二区| 成人动漫精品一区二区| 精品一区二区三区在线观看| 亚洲综合小说图片| 国产喷白浆一区二区三区| 欧美精品tushy高清| 91一区二区三区在线播放|