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

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

?? colorbarpropertyeditpanel.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.
 *
 * ------------------------------
 * ColorBarPropertyEditPanel.java
 * ------------------------------
 * (C) Copyright 2002, 2003, by David M. O'Donnell and Contributors.
 *
 * Original Author:  David M. O'Donnell;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *                   Arnaud Lelievre;
 *
 * $Id: ColorBarPropertyEditPanel.java,v 1.6 2003/09/08 22:08:28 mungady Exp $
 *
 * Changes
 * -------
 * 26-Nov-2002 : Version 1 contributed by David M. O'Donnell (DG);
 * 08-Sep-2003 : Added internationalization via use of properties resourceBundle (RFE 690236) (AL); 
 *
 */

package org.jfree.chart.ui;

import java.awt.event.ActionEvent;
import java.util.ResourceBundle;

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

import org.jfree.chart.axis.ColorBar;
import org.jfree.chart.axis.NumberAxis;
import org.jfree.layout.LCBLayout;


/**
 * A ColorBarPropertyEditPanel.  Extends NumberAxisPropertyEditPanel to allow change general
 * axis type parameters.
 *
 * @author David M. O'Donnell
 */
public class ColorBarPropertyEditPanel extends NumberAxisPropertyEditPanel {

    /** A checkbox that indicates whether or not the color indices should run high to low. */
    private JCheckBox invertPaletteCheckBox;

    /** Flag set by invertPaletteCheckBox. */
    private boolean invertPalette = false;

    /** A checkbox that indicates whether the palette is stepped. */
    private JCheckBox stepPaletteCheckBox;

    /** Flag set by stepPaletteCheckBox. */
    private boolean stepPalette = false;

    /** The Palette Sample displaying the current Palette. */
    private PaletteSample currentPalette;

    /** An array of availiable sample palettes. */
    private PaletteSample[] availablePaletteSamples;

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

    /**
     * Creates a new edit panel for a color bar.
     * 
     * @param colorBar  the color bar.
     */
    public ColorBarPropertyEditPanel(ColorBar colorBar) {
        super((NumberAxis) colorBar.getAxis());
        invertPalette = colorBar.getColorPalette().isInverse(); //dmo added
        stepPalette = colorBar.getColorPalette().isStepped(); //dmo added
        currentPalette = new PaletteSample(colorBar.getColorPalette());
        availablePaletteSamples = new PaletteSample[2];
        availablePaletteSamples[0] = new PaletteSample(new RainbowPalette());
        availablePaletteSamples[1] = new PaletteSample(new GreyPalette());

        JTabbedPane other = getOtherTabs();

        JPanel palettePanel = new JPanel(new LCBLayout(4));
        palettePanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));

        palettePanel.add(new JPanel());
        invertPaletteCheckBox = new JCheckBox(localizationResources.getString("Invert_Palette"),
                                              invertPalette);
        invertPaletteCheckBox.setActionCommand("invertPalette");
        invertPaletteCheckBox.addActionListener(this);
        palettePanel.add(invertPaletteCheckBox);
        palettePanel.add(new JPanel());

        palettePanel.add(new JPanel());
        stepPaletteCheckBox = new JCheckBox(localizationResources.getString("Step_Palette"),
                                            stepPalette);
        stepPaletteCheckBox.setActionCommand("stepPalette");
        stepPaletteCheckBox.addActionListener(this);
        palettePanel.add(stepPaletteCheckBox);
        palettePanel.add(new JPanel());

        palettePanel.add(new JLabel(localizationResources.getString("Palette:")));
        JButton button = new JButton(localizationResources.getString("Set_palette..."));
        button.setActionCommand("PaletteChoice");
        button.addActionListener(this);
        palettePanel.add(currentPalette);
        palettePanel.add(button);

        other.add(localizationResources.getString("Palette"), palettePanel);

    }

    /**
     * Handles actions from within the property panel.
     *
     * @param event  the event.
     */
    public void actionPerformed(ActionEvent event) {
        String command = event.getActionCommand();
        if (command.equals("PaletteChoice")) {
            attemptPaletteSelection();
        }
        else if (command.equals("invertPalette")) {
            invertPalette = invertPaletteCheckBox.isSelected();
        }
        else if (command.equals("stepPalette")) {
            stepPalette = stepPaletteCheckBox.isSelected();
        }
        else {
            super.actionPerformed(event);  // pass to the super-class for handling
        }
    }

    /**
     * Handle a palette selection.
     */
    private void attemptPaletteSelection() {
        PaletteChooserPanel panel = new PaletteChooserPanel(null, availablePaletteSamples);
        int result = 
                JOptionPane.showConfirmDialog(this, panel,
                                              localizationResources.getString("Palette_Selection"),
                                              JOptionPane.OK_CANCEL_OPTION,
                                              JOptionPane.PLAIN_MESSAGE);

        if (result == JOptionPane.OK_OPTION) {
            double zmin = currentPalette.getPalette().getMinZ();
            double zmax = currentPalette.getPalette().getMaxZ();
            currentPalette.setPalette(panel.getSelectedPalette());
            currentPalette.getPalette().setMinZ(zmin);
            currentPalette.getPalette().setMaxZ(zmax);
        }
    }

    /**
     * Sets the properties of the specified axis to match the properties defined on this panel.
     * 
     * @param colorBar  the color bar.
     */
    public void setAxisProperties(ColorBar colorBar) {
        super.setAxisProperties(colorBar.getAxis());
        colorBar.setColorPalette(currentPalette.getPalette());
        colorBar.getColorPalette().setInverse(invertPalette); //dmo added
        colorBar.getColorPalette().setStepped(stepPalette); //dmo added
    }

    /**
     * A static method that returns a panel that is appropriate for the axis
     * type.
     *
     * @param colorBar  the color bar.
     *
     * @return a panel or <code>null</code< if axis is <code>null</code>.
     */
    public static ColorBarPropertyEditPanel getInstance(ColorBar colorBar) {

        if (colorBar != null) {
            return new ColorBarPropertyEditPanel(colorBar);
        }
        else {
            return null;
        }

    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美电影一区| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 久久人人超碰精品| 亚洲一二三专区| 播五月开心婷婷综合| 日韩免费看网站| 亚洲二区在线观看| 91麻豆国产精品久久| 久久夜色精品一区| 天天色综合天天| 欧洲国产伦久久久久久久| 欧美极品aⅴ影院| 久久精品国产99国产精品| 在线免费视频一区二区| 欧美国产激情一区二区三区蜜月| 日韩电影一二三区| 欧美老女人第四色| 亚洲精选视频免费看| 成人性视频免费网站| 精品国产91乱码一区二区三区| 亚洲一区二区视频| 91蝌蚪porny九色| 中文字幕中文乱码欧美一区二区| 狠狠v欧美v日韩v亚洲ⅴ| 欧美一级欧美三级在线观看| 亚洲gay无套男同| 欧美亚洲一区三区| 亚洲国产成人tv| 在线欧美日韩精品| 亚洲综合在线免费观看| 色哟哟一区二区在线观看| 国产精品久久久久久户外露出 | 亚洲另类春色校园小说| 不卡的av电影在线观看| 国产精品久久久久久久久免费樱桃| 国产精品资源在线观看| 久久久国际精品| 盗摄精品av一区二区三区| 国产欧美日韩在线| 成+人+亚洲+综合天堂| 一区视频在线播放| 91农村精品一区二区在线| 亚洲精品免费视频| 欧美三级电影网| 全国精品久久少妇| 久久中文字幕电影| av午夜精品一区二区三区| 亚洲日本青草视频在线怡红院| 在线观看中文字幕不卡| 亚洲国产一区二区三区| 日韩一区二区三区精品视频| 麻豆成人综合网| 国产欧美中文在线| 在线观看国产日韩| 久久99精品久久只有精品| 国产日韩影视精品| 日本精品视频一区二区| 青青青伊人色综合久久| 国产亚洲欧美日韩在线一区| www.66久久| 首页欧美精品中文字幕| 26uuu欧美日本| 色狠狠色狠狠综合| 伦理电影国产精品| 自拍偷拍亚洲激情| 日韩欧美卡一卡二| av电影一区二区| 全部av―极品视觉盛宴亚洲| 亚洲国产激情av| 在线不卡免费av| 成人开心网精品视频| 亚洲成人精品在线观看| 国产亚洲一本大道中文在线| 在线观看日韩国产| 国产麻豆成人传媒免费观看| 亚洲图片欧美一区| 国产精品私房写真福利视频| 欧美日韩大陆一区二区| 福利一区二区在线观看| 天天影视色香欲综合网老头| 欧美国产成人精品| 欧美日韩www| 99久久精品一区| 久久不见久久见免费视频7| 亚洲精品一二三| 久久精品欧美一区二区三区不卡| 欧美日产国产精品| 一本久道久久综合中文字幕| 国产一区二区三区香蕉 | 九一久久久久久| 亚洲免费av网站| 国产欧美日韩不卡免费| 91精品国产手机| 欧美视频第二页| 99久久99久久精品免费观看| 国产一区二区三区免费看| 五月激情六月综合| 亚洲国产综合91精品麻豆| 亚洲色图丝袜美腿| 国产欧美一区二区三区在线老狼 | 国产欧美日韩不卡| 精品国产免费久久| 91精品国产综合久久久久久久久久| 97精品视频在线观看自产线路二| 国产精品小仙女| 国产一区二区在线免费观看| 喷水一区二区三区| 日韩国产高清影视| 午夜欧美在线一二页| 夜夜亚洲天天久久| 亚洲主播在线观看| 亚洲高清三级视频| 一区二区三区精品视频在线| 亚洲精品美腿丝袜| 综合色天天鬼久久鬼色| 国产精品久久久久精k8| 国产高清亚洲一区| 久久精品免费在线观看| 自拍偷拍亚洲激情| 亚洲综合色成人| 激情综合五月婷婷| 中文字幕一区二区三区乱码在线| 欧美三级日本三级少妇99| 麻豆国产欧美日韩综合精品二区| 亚洲色图第一区| 欧美日韩在线观看一区二区| 国产美女久久久久| 亚洲va欧美va人人爽午夜| 国产精品女同一区二区三区| 91久久精品一区二区三区| 成人黄页毛片网站| 精品国产乱码久久久久久1区2区| 91麻豆精品在线观看| 9人人澡人人爽人人精品| 国产亚洲一区二区三区| 日韩久久久久久| 中文字幕在线免费不卡| 国产精品一卡二卡在线观看| 精品一区二区三区久久久| 日韩一级二级三级| 男女男精品视频| 欧美精品18+| 一二三区精品视频| 欧洲精品在线观看| 91啦中文在线观看| 18欧美亚洲精品| 成人福利在线看| 亚洲精品一区二区三区影院 | 成人久久18免费网站麻豆| 精品在线亚洲视频| 欧美一卡二卡在线观看| 婷婷开心久久网| 欧洲精品在线观看| 国产欧美1区2区3区| 国产精品亚洲成人| 日本一区二区三区视频视频| 国产中文字幕精品| 久久影院电视剧免费观看| 中文幕一区二区三区久久蜜桃| 麻豆91小视频| 久久久国际精品| 国产亚洲欧美色| 国产精品人人做人人爽人人添| 懂色av中文字幕一区二区三区| 国产欧美日产一区| 国产欧美综合色| 不卡一区中文字幕| 色综合久久综合中文综合网| 亚洲人成在线播放网站岛国| 亚洲欧洲制服丝袜| 亚洲精品免费在线| 午夜一区二区三区在线观看| 欧美一区二区三区播放老司机| 天堂va蜜桃一区二区三区| 琪琪一区二区三区| 亚洲国产精品精华液2区45| 国产精品热久久久久夜色精品三区| 久久久久久97三级| 日韩欧美国产综合| 国产欧美一区二区三区鸳鸯浴| 亚洲欧美日韩在线| 国产日本一区二区| 亚洲国产精品人人做人人爽| 亚洲二区在线视频| 亚洲午夜久久久久久久久久久| 免费一区二区视频| 国产精品一线二线三线精华| 精品在线视频一区| 国产精品免费免费| av在线不卡电影| 亚洲aⅴ怡春院| 欧美三区在线视频| 奇米精品一区二区三区在线观看 | 777精品伊人久久久久大香线蕉| 日本在线不卡视频一二三区| 久久久五月婷婷| 日韩视频在线一区二区| 久久一区二区视频| 国产精品日日摸夜夜摸av| 91香蕉视频mp4|