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

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

?? jthermometer.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.
 *
 * -----------------
 * JThermometer.java
 * -----------------
 * A plot that displays a single value in a thermometer type display.
 *
 * (C) Copyright 2000-2003, Australian Antarctic Division and Contributors.
 *
 * Original Author:  Bryan Scott.
 * Contributor(s):   David Gilbert (for Object Refinery Limited).
 *
 * Changes (from 17-Sep-2002)
 * --------------------------
 * 17-Sep-2002 : Reviewed with Checkstyle utility (DG);
 *
 */

package org.jfree.chart.plot;

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

import javax.swing.JPanel;

import org.jfree.chart.AbstractTitle;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.TextTitle;
import org.jfree.data.DefaultValueDataset;

/**
 * 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 {

    /** 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());
        plot.setInsets(new Insets(5, 5, 5, 5));
        data = new DefaultValueDataset();
        //data.setRange(new Double(-60000), new Double(60000));
        plot.setDataset(data);
        chart = new JFreeChart(null, JFreeChart.DEFAULT_TITLE_FONT, plot, false);
        panel = new ChartPanel(chart);
        add(panel, "Panel");
        setBackground(getBackground());
    }

    /**
     * Adds a subtitle to the chart.
     *
     * @param subtitle  the subtitle.
     */
    public void addSubitle(AbstractTitle 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) {
        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) {
        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) {
        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) {

        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) {
        plot.setValueLocation(loc);
        panel.repaint();
    }

    /**
     * Returns the value of the thermometer.
     *
     * @return the value.
     */
    public Number getValue() {
        if (data != null) {
            return 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 (data != null) {
            data.setValue(value);
        }
    }

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

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

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

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

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

    /**
     * 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) {
        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) {
        plot.setShowValueLines(b);
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美国产一区在线观看| 欧美日韩精品是欧美日韩精品| 日本不卡视频在线观看| 亚洲国产精品视频| 亚洲免费在线电影| 一区二区三区精品视频| 亚洲综合无码一区二区| 五月天中文字幕一区二区| 日本中文字幕一区| 精品一区二区综合| 国产成人综合精品三级| 91在线视频网址| 欧美色图天堂网| 欧美精品丝袜中出| 日韩欧美国产三级电影视频| 国产亚洲欧美激情| 亚洲丝袜制服诱惑| 午夜视频一区二区| 麻豆视频一区二区| 成人黄色国产精品网站大全在线免费观看 | 亚洲男人都懂的| 亚洲1区2区3区4区| 国产一区二区调教| av电影在线观看不卡| 欧美午夜不卡在线观看免费| 久久综合九色综合久久久精品综合 | 欧美性淫爽ww久久久久无| 欧美日本一区二区| 国产女人aaa级久久久级 | 美国十次综合导航| www.视频一区| 日韩欧美精品三级| 一区二区三区四区中文字幕| 看片网站欧美日韩| 色综合久久久网| 欧美成人r级一区二区三区| 中文字幕中文字幕一区二区| 日韩电影在线观看电影| a亚洲天堂av| 久久影院电视剧免费观看| 亚洲国产成人tv| 国产成人精品亚洲777人妖 | 91在线国产福利| 精品欧美黑人一区二区三区| 夜夜精品视频一区二区| 国产91富婆露脸刺激对白| 欧美日韩电影在线播放| 亚洲美女电影在线| 成人午夜精品在线| 精品国产第一区二区三区观看体验| 亚洲精品伦理在线| 国产成人精品免费| 精品久久久网站| 蜜桃精品在线观看| 欧美日韩二区三区| 亚洲一区二区三区四区在线 | 日韩欧美在线网站| 亚洲国产美女搞黄色| 99久久久国产精品免费蜜臀| 国产欧美精品国产国产专区 | 欧美亚洲国产bt| 亚洲靠逼com| jizz一区二区| 国产精品美女久久久久久| 国产精品小仙女| 国产午夜精品久久久久久免费视| 极品少妇一区二区| 精品第一国产综合精品aⅴ| 麻豆一区二区99久久久久| 日韩一区二区麻豆国产| 日韩精品久久久久久| 欧美精品777| 久久国产精品99久久人人澡| 精品捆绑美女sm三区| 狠狠色丁香婷婷综合| 精品免费视频一区二区| 国产一区欧美日韩| 国产女人18水真多18精品一级做| 懂色中文一区二区在线播放| 国产精品美女久久久久久| 色婷婷激情久久| 夜夜嗨av一区二区三区| 欧美日韩国产一二三| 美女脱光内衣内裤视频久久影院| 日韩欧美亚洲另类制服综合在线| 另类人妖一区二区av| 国产亚洲自拍一区| 色婷婷久久久久swag精品| 天天色综合成人网| 日韩欧美国产三级| 大桥未久av一区二区三区中文| 亚洲欧美日韩国产手机在线 | 久久精品国产亚洲5555| 国产亚洲欧美日韩在线一区| 99re免费视频精品全部| 午夜视频在线观看一区| 26uuuu精品一区二区| 91视频在线看| 午夜精品aaa| 国产欧美日本一区二区三区| 91老师国产黑色丝袜在线| 蜜桃免费网站一区二区三区| 国产精品二三区| 欧美精品在线一区二区| 国产999精品久久久久久绿帽| 亚洲欧美日韩国产中文在线| 欧美成人vr18sexvr| 91亚洲国产成人精品一区二三| 亚欧色一区w666天堂| 国产视频一区二区在线观看| 欧美精品久久天天躁| 不卡高清视频专区| 免费观看一级特黄欧美大片| 国产精品天干天干在线综合| 69堂精品视频| 99久久精品免费精品国产| 久久精品国产在热久久| 玉足女爽爽91| 国产精品水嫩水嫩| 精品精品国产高清a毛片牛牛| 91黄色免费观看| 99久久精品费精品国产一区二区| 美女网站在线免费欧美精品| 亚洲国产一区二区三区| 亚洲视频一区在线| 欧美激情综合五月色丁香| 日韩欧美在线影院| 宅男噜噜噜66一区二区66| 91婷婷韩国欧美一区二区| 国产成人8x视频一区二区| 麻豆国产精品一区二区三区 | 午夜精品福利在线| 亚洲精品福利视频网站| 国产精品国产三级国产普通话99| 欧美va天堂va视频va在线| 欧美精品色一区二区三区| 欧美影片第一页| 欧美中文字幕一二三区视频| 97久久久精品综合88久久| 成人午夜又粗又硬又大| 风间由美中文字幕在线看视频国产欧美 | 午夜视频在线观看一区二区三区| 亚洲精品视频在线观看网站| 亚洲国产电影在线观看| 国产精品色在线| 国产精品久久久久aaaa| ●精品国产综合乱码久久久久| 国产亚洲婷婷免费| 国产人成亚洲第一网站在线播放| 久久精品一级爱片| 国产欧美一区二区精品性色超碰| 久久影院午夜论| 中文字幕+乱码+中文字幕一区| 国产视频一区在线观看| 久久毛片高清国产| 中文字幕免费不卡在线| 国产精品久久久久久久久免费桃花| 国产精品青草综合久久久久99| 日本一区二区久久| √…a在线天堂一区| 亚洲午夜电影在线| 青青草97国产精品免费观看 | 中文字幕一区二区在线观看| 国产精品成人免费| 亚洲永久免费视频| 奇米影视在线99精品| 麻豆精品在线看| 国产高清不卡一区二区| 9久草视频在线视频精品| 一本大道久久a久久综合婷婷| 欧美亚洲自拍偷拍| 精品国产a毛片| 欧美国产欧美综合| 亚洲午夜久久久| 国产一区二区三区av电影| hitomi一区二区三区精品| 欧美日韩国产高清一区二区三区| 精品久久久久香蕉网| 亚洲人成影院在线观看| 日韩国产欧美在线视频| 成人黄色电影在线| 欧美精品在线一区二区| 国产欧美精品一区二区色综合朱莉| 一级日本不卡的影视| 国内精品久久久久影院一蜜桃| 日本精品视频一区二区三区| 欧美电影精品一区二区| 亚洲人成网站精品片在线观看 | 亚洲图片欧美激情| 免费在线一区观看| 99精品一区二区| 日韩美女一区二区三区四区| 国产精品久久久久天堂| 久久国产婷婷国产香蕉| 日本国产一区二区| 国产目拍亚洲精品99久久精品| 五月婷婷久久综合| 色猫猫国产区一区二在线视频| 2021久久国产精品不只是精品| 亚洲成人动漫在线免费观看|