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

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

?? polarchartpanel.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? 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.]
 *
 * --------------------
 * PolarChartPanel.java
 * --------------------
 * (C) Copyright 2004, by Solution Engineering, Inc. and Contributors.
 *
 * Original Author:  Daniel Bridenbecker, Solution Engineering, Inc.;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *
 * $Id: PolarChartPanel.java,v 1.2.2.1 2005/10/25 16:50:20 mungady Exp $
 *
 * Changes
 * -------
 * 19-Jan-2004 : Version 1, contributed by DB with minor changes by DG (DG);
 *
 */

package org.jfree.chart;

import java.awt.Component;
import java.awt.event.ActionEvent;

import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;

import org.jfree.chart.plot.Plot;
import org.jfree.chart.plot.PolarPlot;

/**
 * <code>PolarChartPanel</code> is the top level object for using the 
 * {@link PolarPlot}. Since this class has a <code>JPanel</code> in the 
 * inheritance hierarchy, one uses this class to integrate the Polar plot into 
 * their application.
 * <p>
 * The main modification to <code>ChartPanel</code> is the popup menu.  It 
 * removes <code>ChartPanel</code>'s versions of:
 * <ul>
 *    <li><code>Zoom In</code></li>
 *    <li><code>Zoom Out</code></li>
 *    <li><code>Auto Range</code></li>
 * </ul>
 * and replaces them with versions more appropriate for {@link PolarPlot}.
 *
 * @author  Daniel Bridenbecker, Solution Engineering, Inc.
 */
public class PolarChartPanel extends ChartPanel {

    // -----------------
    // --- Constants ---
    // -----------------   
    
    /** Zoom in command string. */
    private static final String POLAR_ZOOM_IN_ACTION_COMMAND = "Polar Zoom In";
    
    /** Zoom out command string. */
    private static final String POLAR_ZOOM_OUT_ACTION_COMMAND 
        = "Polar Zoom Out";
    
    /** Auto range command string. */
    private static final String POLAR_AUTO_RANGE_ACTION_COMMAND 
        = "Polar Auto Range";
   
    // ------------------------
    // --- Member Variables ---
    // ------------------------
   
    // --------------------
    // --- Constructors ---
    // --------------------
    /**
     * Constructs a JFreeChart panel.
     *
     * @param chart  the chart.
     */
    public PolarChartPanel(JFreeChart chart) {
        this(chart, true);
    }

    /**
     * Creates a new panel.
     * 
     * @param chart  the chart.
     * @param useBuffer  buffered?
     */
    public PolarChartPanel(JFreeChart chart, boolean useBuffer) {
        super(chart, useBuffer);
        checkChart(chart);
        setMinimumDrawWidth(200);
        setMinimumDrawHeight(200);
        setMaximumDrawWidth(2000);
        setMaximumDrawHeight(2000);
    }
   
    // --------------------------
    // --- ChartPanel Methods ---
    // --------------------------
    /**
     * Sets the chart that is displayed in the panel.
     *
     * @param chart  The chart.
     */
    public void setChart(JFreeChart chart) {
        checkChart(chart);
        super.setChart(chart);
    }
   
    /**
     * Creates a popup menu for the panel.
     *
     * @param properties  include a menu item for the chart property editor.
     * @param save  include a menu item for saving the chart.
     * @param print  include a menu item for printing the chart.
     * @param zoom  include menu items for zooming.
     *
     * @return The popup menu.
     */
    protected JPopupMenu createPopupMenu(boolean properties,
                                         boolean save, 
                                         boolean print, 
                                         boolean zoom) {
        
       JPopupMenu result = super.createPopupMenu(properties, save, print, zoom);
       int zoomInIndex  = getPopupMenuItem(result, "Zoom In");
       int zoomOutIndex = getPopupMenuItem(result, "Zoom Out");
       int autoIndex     = getPopupMenuItem(result, "Auto Range");
       if (zoom) {
           JMenuItem zoomIn = new JMenuItem("Zoom In");
           zoomIn.setActionCommand(POLAR_ZOOM_IN_ACTION_COMMAND);
           zoomIn.addActionListener(this);
          
           JMenuItem zoomOut = new JMenuItem("Zoom Out");
           zoomOut.setActionCommand(POLAR_ZOOM_OUT_ACTION_COMMAND);
           zoomOut.addActionListener(this);
          
           JMenuItem auto = new JMenuItem("Auto Range");
           auto.setActionCommand(POLAR_AUTO_RANGE_ACTION_COMMAND);
           auto.addActionListener(this);
          
           if (zoomInIndex != -1) {
               result.remove(zoomInIndex);
           }
           else {
               zoomInIndex = result.getComponentCount() - 1;
           }
           result.add(zoomIn, zoomInIndex);
           if (zoomOutIndex != -1) {
               result.remove(zoomOutIndex);
           }
           else {
               zoomOutIndex = zoomInIndex + 1;
           }
           result.add(zoomOut, zoomOutIndex);
           if (autoIndex != -1) {
               result.remove(autoIndex);
           }
           else {
               autoIndex = zoomOutIndex + 1;
           }
           result.add(auto, autoIndex);
       }
       return result;
    }
   
    /**
     * Handles action events generated by the popup menu.
     *
     * @param event  the event.
     */
    public void actionPerformed(ActionEvent event) {
       String command = event.getActionCommand();
       
       if (command.equals(POLAR_ZOOM_IN_ACTION_COMMAND)) {
           PolarPlot plot = (PolarPlot) getChart().getPlot();
           plot.zoom(0.5);
       }
       else if (command.equals(POLAR_ZOOM_OUT_ACTION_COMMAND)) {
           PolarPlot plot = (PolarPlot) getChart().getPlot();
           plot.zoom(2.0);
       }
       else if (command.equals(POLAR_AUTO_RANGE_ACTION_COMMAND)) {
           PolarPlot plot = (PolarPlot) getChart().getPlot();
           plot.getAxis().setAutoRange(true);
       }
       else {
           super.actionPerformed(event);
       }
    }

    // ----------------------
    // --- Public Methods ---
    // ----------------------

    // -----------------------
    // --- Private Methods ---
    // -----------------------
   
    /**
     * Test that the chart is using an xy plot with time as the domain axis.
     * 
     * @param chart  the chart.
     */
    private void checkChart(JFreeChart chart) {
        Plot plot = chart.getPlot();
        if (!(plot instanceof PolarPlot)) {
            throw new IllegalArgumentException("plot is not a PolarPlot");
       }
    }
   
    /**
     * Returns the index of an item in a popup menu.
     * 
     * @param menu  the menu.
     * @param text  the label.
     * 
     * @return The item index.
     */
    private int getPopupMenuItem(JPopupMenu menu, String text) {
        int index = -1;
        for (int i = 0; (index == -1) && (i < menu.getComponentCount()); i++) {
            Component comp = menu.getComponent(i);
            if (comp instanceof JMenuItem) {
                JMenuItem item = (JMenuItem) comp;
                if (text.equals(item.getText())) {
                    index = i;
                }
            }
       }
       return index;
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美va亚洲va香蕉在线| 欧美一区二区福利视频| 青青国产91久久久久久| 国产精品久久久久久久久图文区| 欧美日韩免费在线视频| 成人动漫一区二区| 蜜桃av一区二区三区| 亚洲精品你懂的| 久久久久久久网| 777奇米成人网| 色噜噜夜夜夜综合网| 国产精品白丝av| 久久精品国产精品青草| 亚洲综合一区二区| 中文字幕av不卡| 日韩精品一区二区三区视频| 欧美日韩一区二区三区在线 | 丁香激情综合国产| 日本在线不卡视频| 一区二区三区在线播| 久久精品欧美日韩| 日韩欧美一二区| 欧美精品久久久久久久多人混战| www.性欧美| kk眼镜猥琐国模调教系列一区二区 | 色综合久久66| 不卡免费追剧大全电视剧网站| 狠狠色狠狠色综合| 国产精品一区专区| 色久优优欧美色久优优| 99精品视频一区二区三区| 国产剧情av麻豆香蕉精品| 奇米精品一区二区三区在线观看一 | 日韩三级伦理片妻子的秘密按摩| 精品1区2区3区| 在线日韩国产精品| 91视频在线看| av欧美精品.com| 成人精品一区二区三区中文字幕| 国产成a人亚洲| 国产成人精品免费看| 国产一区二区三区久久悠悠色av| 国模一区二区三区白浆| 极品尤物av久久免费看| 国产老肥熟一区二区三区| 国产精品99久久久久久久女警| 韩国成人在线视频| 国产精品一区二区免费不卡| 国产精品99久久久久| 成人国产精品免费观看视频| av在线综合网| 欧美性生活影院| 91精品免费观看| 欧美成人精品3d动漫h| 久久伊人蜜桃av一区二区| 久久精品视频在线免费观看| 国产精品丝袜久久久久久app| 国产精品三级av在线播放| 18成人在线观看| 午夜久久久影院| 激情小说欧美图片| www.欧美色图| 欧美伦理视频网站| 久久久久久久久久看片| 亚洲欧洲三级电影| 亚洲成人激情自拍| 狠狠色丁香婷婷综合| 成+人+亚洲+综合天堂| 欧美日韩中字一区| ww久久中文字幕| 亚洲色图20p| 秋霞电影一区二区| 波多野结衣视频一区| 欧美日韩免费一区二区三区 | 欧美丝袜丝交足nylons图片| 欧美三级乱人伦电影| 国产一区二区女| 在线免费观看日韩欧美| 欧美伦理视频网站| 精品日韩av一区二区| 国产日韩成人精品| 国产精品麻豆久久久| 亚洲高清一区二区三区| 免费日韩伦理电影| 91免费看视频| 777午夜精品视频在线播放| 国产视频在线观看一区二区三区| 日韩一区在线播放| 蜜臀av在线播放一区二区三区| 亚洲欧美中日韩| 在线成人免费观看| 久久久噜噜噜久久中文字幕色伊伊 | 欧美xxxxx裸体时装秀| 国产亚洲成年网址在线观看| 亚洲一区二区三区四区不卡| 亚洲与欧洲av电影| 国产麻豆精品95视频| 国产成人免费视| 555www色欧美视频| 国产欧美一区二区三区鸳鸯浴 | 久久精品免视看| 亚洲乱码国产乱码精品精小说| 亚洲一级不卡视频| 成人毛片在线观看| 91精品欧美久久久久久动漫| 日本一区二区三区高清不卡| 亚洲综合精品久久| 国产一区二区在线免费观看| 色爱区综合激月婷婷| 欧美va在线播放| 国产精品美女久久福利网站 | 国内欧美视频一区二区| 色妞www精品视频| 2023国产精品| 午夜精品福利久久久| www.色精品| 26uuu国产在线精品一区二区| 丝袜诱惑制服诱惑色一区在线观看 | 国产成人精品亚洲日本在线桃色| 欧美日韩一区二区不卡| 国产精品污www在线观看| 免费欧美日韩国产三级电影| 一本色道久久综合狠狠躁的推荐| 精品国产乱码久久久久久牛牛 | 欧美性受极品xxxx喷水| 国产精品私房写真福利视频| 麻豆国产精品777777在线| 色婷婷av久久久久久久| 日本一区二区三区免费乱视频| 蜜臀久久99精品久久久久宅男| 欧美午夜理伦三级在线观看| 国产精品久久久久久久第一福利| 国产在线视频不卡二| 91精品国产综合久久久蜜臀图片 | 欧美一区二区三区人| 亚洲三级视频在线观看| 国产露脸91国语对白| 精品国产自在久精品国产| 久久成人免费电影| 日韩一区二区免费在线电影| 日韩中文欧美在线| 69p69国产精品| 久久成人18免费观看| 精品久久99ma| 欧美一级二级三级乱码| 亚洲成人激情综合网| 欧美午夜在线一二页| 五月天亚洲婷婷| 99麻豆久久久国产精品免费| 国产精品全国免费观看高清 | 亚洲综合在线视频| 色婷婷综合久色| ㊣最新国产の精品bt伙计久久| 99re亚洲国产精品| 综合电影一区二区三区 | 日本一区二区三区在线观看| 国产高清不卡一区二区| 日本一区二区三区久久久久久久久不| 国内精品伊人久久久久av一坑| 日韩免费看的电影| 亚洲综合激情小说| 欧美精品三级日韩久久| 婷婷丁香久久五月婷婷| 欧美成人性福生活免费看| 久久99国产精品免费| 久久免费精品国产久精品久久久久| 久久99精品一区二区三区| 精品国产不卡一区二区三区| 国产一区在线视频| 亚洲欧美中日韩| 欧美三级日本三级少妇99| 日韩黄色片在线观看| 欧美精品一区二区三区一线天视频| 激情综合网av| 精品福利二区三区| 91免费看`日韩一区二区| 一级特黄大欧美久久久| 91.麻豆视频| 国产精品自产自拍| 中文字幕一区二区不卡| av一区二区三区在线| 日本欧美肥老太交大片| 精品乱码亚洲一区二区不卡| 国产精品原创巨作av| 国产精品久久精品日日| 欧美偷拍一区二区| 日韩精品色哟哟| 国产精品久久久久久久久图文区 | 久久99久久精品欧美| 亚洲国产成人一区二区三区| 亚洲成a人片在线不卡一二三区 | 日韩三级视频中文字幕| 国产精品一区在线观看乱码| 中文字幕亚洲不卡| 日韩一区二区在线观看| www.在线成人| 卡一卡二国产精品| 国产精品久久福利| 欧美日韩黄视频| 99精品热视频|