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

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

?? defaultcolorbareditor.java

?? 制作圖表的好工具
?? JAVA
字號:
/* ===========================================================
 * 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.]
 *
 * ------------------------------
 * ColorBarPropertyEditPanel.java
 * ------------------------------
 * (C) Copyright 2002-2004, by David M. O'Donnell and Contributors.
 *
 * Original Author:  David M. O'Donnell;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *                   Arnaud Lelievre;
 *
 * $Id: DefaultColorBarEditor.java,v 1.1.2.1 2005/11/24 16:11:48 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); 
 * 24-Nov-2005 : Moved and renamed: org.jfree.chart.ui.ColorBarPropertyEditPanel
 *               --> DefaultColorBarEditor (DG);
 *
 */

package org.jfree.chart.editor;

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.chart.plot.GreyPalette;
import org.jfree.chart.plot.RainbowPalette;
import org.jfree.layout.LCBLayout;


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

    /** 
     * 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. */
   protected  static ResourceBundle localizationResources = 
       ResourceBundle.getBundle("org.jfree.chart.editor.LocalizationBundle");

    /**
     * Creates a new edit panel for a color bar.
     * 
     * @param colorBar  the color bar.
     */
    public DefaultColorBarEditor(ColorBar colorBar) {
        super((NumberAxis) colorBar.getAxis());
        this.invertPalette = colorBar.getColorPalette().isInverse(); 
        this.stepPalette = colorBar.getColorPalette().isStepped(); 
        this.currentPalette = new PaletteSample(colorBar.getColorPalette());
        this.availablePaletteSamples = new PaletteSample[2];
        this.availablePaletteSamples[0] 
            = new PaletteSample(new RainbowPalette());
        this.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());
        this.invertPaletteCheckBox = new JCheckBox(
            localizationResources.getString("Invert_Palette"), 
            this.invertPalette
        );
        this.invertPaletteCheckBox.setActionCommand("invertPalette");
        this.invertPaletteCheckBox.addActionListener(this);
        palettePanel.add(this.invertPaletteCheckBox);
        palettePanel.add(new JPanel());

        palettePanel.add(new JPanel());
        this.stepPaletteCheckBox = new JCheckBox(
            localizationResources.getString("Step_Palette"),
            this.stepPalette
        );
        this.stepPaletteCheckBox.setActionCommand("stepPalette");
        this.stepPaletteCheckBox.addActionListener(this);
        palettePanel.add(this.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(this.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")) {
            this.invertPalette = this.invertPaletteCheckBox.isSelected();
        }
        else if (command.equals("stepPalette")) {
            this.stepPalette = this.stepPaletteCheckBox.isSelected();
        }
        else {
            super.actionPerformed(event);  // pass to super-class for handling
        }
    }

    /**
     * Handle a palette selection.
     */
    private void attemptPaletteSelection() {
        PaletteChooserPanel panel 
            = new PaletteChooserPanel(null, this.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 = this.currentPalette.getPalette().getMinZ();
            double zmax = this.currentPalette.getPalette().getMaxZ();
            this.currentPalette.setPalette(panel.getSelectedPalette());
            this.currentPalette.getPalette().setMinZ(zmin);
            this.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(this.currentPalette.getPalette());
        colorBar.getColorPalette().setInverse(this.invertPalette); //dmo added
        colorBar.getColorPalette().setStepped(this.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 DefaultColorBarEditor getInstance(ColorBar colorBar) {

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

    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品国产三级国产aⅴ入口| 中文字幕中文在线不卡住| 在线免费不卡视频| 国产成人无遮挡在线视频| 亚洲一区二区三区在线看| 中文字幕一区在线观看| 久久久精品黄色| 日韩欧美国产精品| 7777精品伊人久久久大香线蕉超级流畅| 99精品国产一区二区三区不卡| 国产一区高清在线| 美国av一区二区| 日韩不卡一二三区| 偷拍一区二区三区| 天天操天天色综合| 日本午夜一区二区| 亚洲免费资源在线播放| 久久久99久久| 中文幕一区二区三区久久蜜桃| 久久亚洲捆绑美女| 久久久久久日产精品| 国产午夜亚洲精品午夜鲁丝片| 欧美精品一区视频| 久久精品人人爽人人爽| 国产亚洲短视频| 国产日本亚洲高清| 久久日韩粉嫩一区二区三区| 欧美电影免费观看高清完整版在 | 视频在线观看国产精品| 亚洲成人精品在线观看| 亚洲电影一区二区| 亚洲观看高清完整版在线观看 | 日本 国产 欧美色综合| 麻豆精品蜜桃视频网站| 麻豆精品久久久| 国产精品1区2区3区在线观看| 国产黄色精品网站| 国产精品中文字幕欧美| 成人免费视频一区二区| 99久久99久久精品免费观看| 91国内精品野花午夜精品| 波多野结衣在线一区| 91在线观看成人| 欧洲色大大久久| 日韩欧美高清在线| 国产色91在线| 玉米视频成人免费看| 天堂午夜影视日韩欧美一区二区| 亚洲欧洲日韩女同| 亚洲一区日韩精品中文字幕| 全国精品久久少妇| 成人高清视频在线观看| 欧美精品xxxxbbbb| 欧美大片在线观看一区二区| 亚洲国产激情av| 亚洲一区二区成人在线观看| 日本v片在线高清不卡在线观看| 国产一区二区女| 一本一本久久a久久精品综合麻豆| 欧美日韩国产乱码电影| 精品国产乱码久久久久久久久| 国产精品不卡一区二区三区| 三级精品在线观看| 成人午夜私人影院| 91精品国产综合久久精品app| 欧美韩国日本不卡| 亚洲亚洲精品在线观看| 经典一区二区三区| 色婷婷亚洲精品| 精品免费视频.| 又紧又大又爽精品一区二区| 狠狠狠色丁香婷婷综合激情 | 午夜电影一区二区| 久久综合综合久久综合| 99久久伊人网影院| 日韩一区二区三区四区| 一个色综合av| 久久激五月天综合精品| 91女人视频在线观看| 欧美大片一区二区| 伊人性伊人情综合网| 国产综合久久久久久鬼色| 欧美三日本三级三级在线播放| 久久久99久久| 美腿丝袜一区二区三区| 色综合久久久久综合体桃花网| 精品国精品自拍自在线| 午夜精品123| 99国产精品久久久久| 精品久久久影院| 亚洲电影第三页| 日本二三区不卡| 亚洲日本成人在线观看| 国产99久久精品| 51午夜精品国产| 亚洲天堂中文字幕| 成人app软件下载大全免费| 欧美精品一区二区三区蜜桃| 日韩国产欧美视频| 欧美日韩一区在线| 一区二区三区欧美激情| 成人午夜免费视频| 久久综合久久综合亚洲| 免费看欧美美女黄的网站| 欧美四级电影在线观看| 一区二区三区欧美| av不卡免费在线观看| 国产精品私房写真福利视频| 国产一区二区毛片| 久久午夜免费电影| 精品一区二区三区日韩| 91精品欧美久久久久久动漫 | 欧美日韩一区二区三区高清| 亚洲婷婷综合色高清在线| 成人一区二区三区中文字幕| 久久无码av三级| 国产一区二区在线视频| 欧美高清你懂得| 午夜欧美2019年伦理| 欧美电影影音先锋| 麻豆久久久久久| 精品国产百合女同互慰| 激情综合色播五月| 欧美剧情片在线观看| 亚洲三级电影全部在线观看高清| 91影院在线免费观看| 亚洲免费伊人电影| 欧美怡红院视频| 无码av免费一区二区三区试看 | 在线观看日韩av先锋影音电影院| 老汉av免费一区二区三区| 亚洲欧美另类综合偷拍| 中文字幕制服丝袜成人av| 欧美亚洲一区二区在线观看| 成人天堂资源www在线| 另类小说图片综合网| 久久er精品视频| 懂色av中文字幕一区二区三区| 亚洲国产成人高清精品| 亚洲第一激情av| 日本伦理一区二区| 国产精品剧情在线亚洲| 色国产精品一区在线观看| 日本aⅴ免费视频一区二区三区| 久久久综合激的五月天| 99久久伊人精品| 免费高清在线一区| 综合精品久久久| 欧美一卡2卡三卡4卡5免费| 国产精品亚洲午夜一区二区三区| 亚洲欧美区自拍先锋| 精品久久久久久最新网址| 99久久免费视频.com| 轻轻草成人在线| 自拍偷拍国产亚洲| 精品国产a毛片| 欧美日韩一区高清| 处破女av一区二区| 日韩和的一区二区| 国产精品久久久久天堂| 日韩欧美综合在线| 91在线免费视频观看| 久久精品国产亚洲aⅴ| 亚洲精品高清在线| 久久精品人人爽人人爽| 7777精品伊人久久久大香线蕉经典版下载| 国产精品1024久久| 日本一不卡视频| 一区二区三区欧美日韩| 国产午夜精品福利| 日韩午夜电影在线观看| 欧美午夜影院一区| 91在线无精精品入口| 国产一区福利在线| 日韩av电影天堂| 亚洲欧美日韩在线不卡| 国产农村妇女毛片精品久久麻豆| 欧美精品久久一区二区三区| 97久久精品人人做人人爽| 激情偷乱视频一区二区三区| 亚洲综合偷拍欧美一区色| 日本一区二区高清| 欧日韩精品视频| 日韩美女精品在线| 国产激情91久久精品导航| 欧美美女bb生活片| 亚洲国产精品久久久久婷婷884| 91色婷婷久久久久合中文| 日韩精品中文字幕一区二区三区 | 精品一区二区在线视频| 国产精品久久久久一区二区三区| 成人性生交大合| 欧美国产日韩a欧美在线观看| 久久99国产精品尤物| 国产精品视频免费看| 337p亚洲精品色噜噜| 日韩一级黄色片| 91官网在线免费观看| 成人高清免费在线播放| 国产午夜精品一区二区三区四区|