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

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

?? jthermometer.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.]
 *
 * -----------------
 * JThermometer.java
 * -----------------
 * A plot that displays a single value in a thermometer type display.
 *
 * (C) Copyright 2000-2005, Australian Antarctic Division and Contributors.
 *
 * Original Author:  Bryan Scott.
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *                   Irv Thomae;
 *
 * Changes (from 17-Sep-2002)
 * --------------------------
 * 17-Sep-2002 : Reviewed with Checkstyle utility (DG);
 * 18-Sep-2003 : Integrated new methods contributed by Irv Thomae (DG);
 * 08-Jan-2004 : Renamed AbstractTitle --> Title and moved to new package (DG);
 * 31-May-2005 : Fixed typo in method name (DG);
 *
 */

package org.jfree.chart.plot;

import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.Paint;
import java.io.Serializable;
import java.text.DecimalFormat;

import javax.swing.JPanel;

import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.title.TextTitle;
import org.jfree.chart.title.Title;
import org.jfree.data.general.DefaultValueDataset;
import org.jfree.ui.RectangleInsets;

/**
 * An initial quick and dirty.  The concept behind this class would be to
 * generate a gui bean that could be used within JBuilder, Netbeans etc...
 *
 * Copyright (c) 2002
 * Australian Antarctic Division
 *
 * @author Bryan Scott
 */
public class JThermometer extends JPanel implements Serializable {

    /** For serialization. */
    private static final long serialVersionUID = 1079905665515589820L;
    
    /** The dataset. */
    private DefaultValueDataset data;

    /** The chart. */
    private JFreeChart chart;

    /** The chart panel. */
    private ChartPanel panel;

    /** The thermometer plot. */
    private ThermometerPlot plot = new ThermometerPlot();

    /**
     * Default constructor.
     */
    public JThermometer() {
        super(new CardLayout());
        this.plot.setInsets(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
        this.data = new DefaultValueDataset();
        //data.setRange(new Double(-60000), new Double(60000));
        this.plot.setDataset(this.data);
        this.chart = new JFreeChart(
            null, JFreeChart.DEFAULT_TITLE_FONT, this.plot, false
        );
        this.panel = new ChartPanel(this.chart);
        add(this.panel, "Panel");
        setBackground(getBackground());
    }

    /**
     * Adds a subtitle to the chart.
     *
     * @param subtitle  the subtitle.
     */
    public void addSubtitle(Title subtitle) {
        this.chart.addSubtitle(subtitle);
    }

    /**
     * Adds a subtitle to the chart.
     *
     * @param subtitle  the subtitle.
     */
    public void addSubtitle(String subtitle) {
        this.chart.addSubtitle(new TextTitle(subtitle));
    }

    /**
     * Adds a subtitle to the chart.
     *
     * @param subtitle  the subtitle.
     * @param font  the subtitle font.
     */
    public void addSubtitle(String subtitle, Font font) {
        this.chart.addSubtitle(new TextTitle(subtitle, font));
    }

    /**
     * Sets the value format for the thermometer.
     *
     * @param df  the formatter.
     */
    public void setValueFormat(DecimalFormat df) {
        this.plot.setValueFormat(df);
    }

    /**
     * Sets the lower and upper bounds for the thermometer.
     *
     * @param lower  the lower bound.
     * @param upper  the upper bound.
     */
    public void setRange(double lower, double upper) {
        this.plot.setRange(lower, upper);
    }

    /**
     * Sets the range.
     *
     * @param range  the range type.
     * @param displayLow  the low value.
     * @param displayHigh  the high value.
     */
    public void setSubrangeInfo(int range, double displayLow, 
                                double displayHigh) {
        this.plot.setSubrangeInfo(range, displayLow, displayHigh);
    }

    /**
     * Sets the range.
     *
     * @param range  the range type.
     * @param rangeLow  the low value for the range.
     * @param rangeHigh  the high value for the range.
     * @param displayLow  the low value for display.
     * @param displayHigh  the high value for display.
     */
    public void setSubrangeInfo(int range,
                             double rangeLow, double rangeHigh,
                             double displayLow, double displayHigh) {

        this.plot.setSubrangeInfo(range, rangeLow, rangeHigh, displayLow, 
                displayHigh);

    }

    /**
     * Sets the location at which the temperature value is displayed.
     *
     * @param loc  the location.
     */
    public void setValueLocation(int loc) {
        this.plot.setValueLocation(loc);
        this.panel.repaint();
    }

    /**
     * Sets the value paint.
     *
     * @param paint  the paint.
     */
    public void setValuePaint(Paint paint) {
        this.plot.setValuePaint(paint);
    }

    /**
     * Returns the value of the thermometer.
     *
     * @return The value.
     */
    public Number getValue() {
        if (this.data != null) {
            return this.data.getValue();
        }
        else {
            return null;
        }
    }

    /**
     * Sets the value of the thermometer.
     *
     * @param value  the value.
     */
    public void setValue(double value) {
        setValue(new Double(value));
    }

    /**
     * Sets the value of the thermometer.
     *
     * @param value  the value.
     */
    public void setValue(Number value) {
        if (this.data != null) {
            this.data.setValue(value);
        }
    }

    /**
     * Sets the unit type.
     *
     * @param i  the unit type.
     */
    public void setUnits(int i) {
        if (this.plot != null) {
            this.plot.setUnits(i);
        }
    }

    /**
     * Sets the outline paint.
     *
     * @param p  the paint.
     */
    public void setOutlinePaint(Paint p) {
        if (this.plot != null) {
            this.plot.setOutlinePaint(p);
        }
    }

    /**
     * Sets the foreground color.
     *
     * @param fg  the foreground color.
     */
    public void setForeground(Color fg) {
        super.setForeground(fg);
        if (this.plot != null) {
            this.plot.setThermometerPaint(fg);
        }
    }

    /**
     * Sets the background color.
     *
     * @param bg  the background color.
     */
    public void setBackground(Color bg) {
        super.setBackground(bg);
        if (this.plot != null) {
            this.plot.setBackgroundPaint(bg);
        }
        if (this.chart != null) {
            this.chart.setBackgroundPaint(bg);
        }
        if (this.panel != null) {
            this.panel.setBackground(bg);
        }
    }

    /**
     * Sets the value font.
     *
     * @param f  the font.
     */
    public void setValueFont(Font f) {
        if (this.plot != null) {
            this.plot.setValueFont(f);
        }
    }

    /**
     * Returns the tick label font.
     *
     * @return The tick label font.
     */
    public Font getTickLabelFont() {
        ValueAxis axis = this.plot.getRangeAxis();
        return axis.getTickLabelFont();
    }

    /**
     * Sets the tick label font.
     *
     * @param font  the font.
     */
    public void setTickLabelFont(Font font) {
        ValueAxis axis = this.plot.getRangeAxis();
        axis.setTickLabelFont(font);
    }

    /**
     * Increases or decreases the tick font size.
     *
     * @param delta  the change in size.
     */
    public void changeTickFontSize(int delta) {
        Font f = getTickLabelFont();
        String fName = f.getFontName();
        Font newFont = new Font(fName, f.getStyle(), (f.getSize() + delta));
        setTickLabelFont(newFont);
    }

    /**
     * Sets the tick font style.
     *
     * @param style  the style.
     */
    public void setTickFontStyle(int style) {
        Font f = getTickLabelFont();
        String fName = f.getFontName();
        Font newFont = new Font(fName, style, f.getSize());
        setTickLabelFont(newFont);
    }

    /**
     * Sets the flag that controls whether or not the display range follows the
     * data value.
     *
     * @param flag  the new value of the flag.
     */
    public void setFollowDataInSubranges(boolean flag) {
        this.plot.setFollowDataInSubranges(flag);
    }

    /**
     * Sets the flag that controls whether or not value lines are displayed.
     *
     * @param b  the new flag value.
     */
    public void setShowValueLines(boolean b) {
        this.plot.setShowValueLines(b);
    }

    /**
     * Sets the location for the axis.
     * 
     * @param location  the location.
     */
    public void setShowAxisLocation(int location) {
        this.plot.setAxisLocation(location);
    }

    /**
     * Returns the location for the axis.
     * 
     * @return The location.
     */
    public int getShowAxisLocation() {
      return this.plot.getAxisLocation();
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜桃视频一区二区三区在线观看 | 久久九九久久九九| 91福利精品第一导航| 国产精品18久久久久久久久久久久| 亚洲成a人v欧美综合天堂下载| 一色桃子久久精品亚洲| 国产精品久久久久久久久久免费看| 国产色产综合色产在线视频| 久久久久亚洲综合| 2020国产精品自拍| 欧美国产97人人爽人人喊| 中文av字幕一区| 亚洲手机成人高清视频| 一区二区高清在线| 天天操天天干天天综合网| 日日夜夜免费精品| 国内精品免费**视频| 丁香婷婷综合网| 色综合久久综合网欧美综合网 | 亚洲一区二区三区四区在线免费观看 | 欧美探花视频资源| 95精品视频在线| 日本二三区不卡| 69堂成人精品免费视频| 欧美xxxxxxxxx| 国产精品三级视频| 五月天婷婷综合| 国产一区二区三区四| 99精品一区二区三区| 欧美日韩国产综合一区二区三区| 日韩精品一区二区三区视频播放| 国产精品美日韩| 日韩av在线发布| 成人精品亚洲人成在线| 欧美日韩一区视频| 久久精品免视看| 亚洲成人1区2区| 国产一区二区三区不卡在线观看 | 寂寞少妇一区二区三区| 成人国产精品免费网站| 91精品国产色综合久久不卡电影 | 一区二区高清视频在线观看| 紧缚奴在线一区二区三区| 欧洲一区在线电影| 欧美一区午夜精品| 亚洲精品亚洲人成人网在线播放| 久久超碰97人人做人人爱| 91视频免费播放| 久久综合999| 日本少妇一区二区| 色哟哟一区二区| 国产精品久久久久久亚洲伦| 精品一区二区精品| 在线观看日韩高清av| 国产精品免费视频观看| 精品一区二区三区欧美| 3d动漫精品啪啪一区二区竹菊| 亚洲欧美在线aaa| 国产成人午夜视频| 欧美精品一区二区三区蜜桃| 男男视频亚洲欧美| 精品视频1区2区| 亚洲韩国一区二区三区| 91天堂素人约啪| 亚洲欧洲一区二区在线播放| 懂色av一区二区三区蜜臀| 久久欧美中文字幕| 国产中文一区二区三区| 日韩精品一区二区三区中文不卡 | 懂色av噜噜一区二区三区av| 亚洲精品一区二区三区香蕉| 男人的天堂久久精品| 91精品蜜臀在线一区尤物| 首页国产丝袜综合| 欧美精品在线一区二区三区| 亚洲sss视频在线视频| 91国偷自产一区二区开放时间 | 蜜桃久久久久久久| 日韩一区二区在线观看视频| 麻豆91在线观看| 日韩一本二本av| 国产在线视频精品一区| 国产欧美日韩在线看| 成人高清av在线| 亚洲欧洲日韩av| 欧美性欧美巨大黑白大战| 亚洲成a人v欧美综合天堂| 91精品国产美女浴室洗澡无遮挡| 日本aⅴ精品一区二区三区 | 午夜精品久久久久影视| 7777精品伊人久久久大香线蕉经典版下载 | 日韩一区二区三区视频在线| 美腿丝袜亚洲三区| 久久综合色8888| 成人自拍视频在线| 一区二区三区在线高清| 91精品国产综合久久福利| 国产美女一区二区| 日韩码欧中文字| 4438x亚洲最大成人网| 韩日av一区二区| 国产精品不卡视频| 欧美日韩免费观看一区三区| 另类的小说在线视频另类成人小视频在线 | 另类成人小视频在线| 国产日产欧美一区二区三区 | 日韩一卡二卡三卡国产欧美| 国产一区二区三区香蕉| 亚洲精品福利视频网站| 亚洲精品一线二线三线无人区| 成人午夜电影网站| 日本伊人色综合网| 国产精品美女久久久久久久| 欧美高清性hdvideosex| 福利电影一区二区| 日本网站在线观看一区二区三区| 亚洲国产精华液网站w| 在线不卡免费av| 成人福利电影精品一区二区在线观看| 一区二区三区 在线观看视频| 久久亚洲精华国产精华液| 欧美在线你懂得| 成人综合日日夜夜| 黄一区二区三区| 视频一区中文字幕| 成人欧美一区二区三区| 久久久久久一二三区| 欧美日韩在线观看一区二区 | 日韩欧美国产精品| 在线观看成人免费视频| 不卡一区中文字幕| 国产在线视频一区二区三区| 免费成人美女在线观看.| 亚洲欧洲制服丝袜| 国产欧美视频在线观看| 亚洲精品一区在线观看| 日韩欧美aaaaaa| 欧美一区二区三区四区高清| 欧美视频第二页| 在线观看日韩电影| 99精品久久99久久久久| 国产成人精品亚洲午夜麻豆| 久久国产人妖系列| 麻豆一区二区三| 免费在线看成人av| 天堂蜜桃一区二区三区| 午夜精品一区在线观看| 亚洲猫色日本管| 夜夜爽夜夜爽精品视频| 一区二区三区四区五区视频在线观看 | 精品国产99国产精品| 欧美一级国产精品| 欧美电影精品一区二区| 亚洲精品在线观看网站| 精品久久免费看| 久久婷婷久久一区二区三区| 久久久久久一级片| 中文字幕乱码久久午夜不卡 | av一区二区三区| 99久久精品久久久久久清纯| 99久久久久久| 色婷婷综合在线| 欧美三级电影网| 91精品国产品国语在线不卡| 精品久久99ma| 欧美国产欧美综合| 伊人一区二区三区| 日韩精品1区2区3区| 蜜桃av噜噜一区二区三区小说| 精品一区二区三区免费播放| 国产黄色精品网站| 99这里都是精品| 欧美视频中文一区二区三区在线观看| 欧美日韩国产免费一区二区 | 免费在线看成人av| 国产成人精品影视| 色婷婷国产精品| 欧美精品欧美精品系列| 精品国产露脸精彩对白| 中文字幕中文在线不卡住| 亚洲成人激情av| 国产美女在线观看一区| 欧美在线影院一区二区| 日韩一级完整毛片| 亚洲精品日产精品乱码不卡| 日本中文在线一区| 成人av电影观看| 日韩一区二区三区视频在线| 国产精品久久精品日日| 视频一区中文字幕国产| www.在线成人| 欧美不卡一二三| 亚洲精品免费看| 国产激情精品久久久第一区二区 | 欧美成人精品二区三区99精品| 国产视频一区不卡| 日本 国产 欧美色综合| 成人在线视频首页| 日韩欧美www| 亚洲高清在线精品|