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

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

?? meterplot.java

?? Web圖形化的Java庫
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* ======================================
 * 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.
 *
 * --------------
 * MeterPlot.java
 * --------------
 * (C) Copyright 2000-2003, by Hari and Contributors.
 *
 * Original Author:  Hari (ourhari@hotmail.com);
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *                   Bob Orchard;
 *                   Arnaud Lelievre;
 *                   Nicolas Brodu;
 *
 * $Id: MeterPlot.java,v 1.10 2003/09/11 08:13:09 mungady Exp $
 *
 * Changes
 * -------
 * 01-Apr-2002 : Version 1, contributed by Hari (DG);
 * 23-Apr-2002 : Moved dataset from JFreeChart to Plot (DG);
 * 22-Aug-2002 : Added changes suggest by Bob Orchard, changed Color to Paint for consistency,
 *               plus added Javadoc comments (DG);
 * 01-Oct-2002 : Fixed errors reported by Checkstyle (DG);
 * 23-Jan-2003 : Removed one constructor (DG);
 * 26-Mar-2003 : Implemented Serializable (DG);
 * 20-Aug-2003 : Changed dataset from MeterDataset --> ValueDataset, added equals(...) method,
 * 08-Sep-2003 : Added internationalization via use of properties resourceBundle (RFE 690236) (AL); 
 *               implemented Cloneable, and various other changes (DG);
 * 08-Sep-2003 : Added serialization methods (NB);
 *
 */

package org.jfree.chart.plot;

import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Insets;
import java.awt.Paint;
import java.awt.Polygon;
import java.awt.Shape;
import java.awt.geom.Arc2D;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.text.DecimalFormat;
import java.util.List;
import java.util.ResourceBundle;

import org.jfree.chart.ChartRenderingInfo;
import org.jfree.chart.LegendItemCollection;
import org.jfree.chart.event.PlotChangeEvent;
import org.jfree.data.DatasetChangeEvent;
import org.jfree.data.MeterDataset;
import org.jfree.data.Range;
import org.jfree.data.ValueDataset;
import org.jfree.io.SerialUtilities;
import org.jfree.util.ObjectUtils;

/**
 * A plot that displays a single value in the context of several ranges ('normal', 'warning'
 * and 'critical').
 *
 * @author Hari
 */
public class MeterPlot extends Plot implements Serializable {

    /** The default text for the normal level. */
    public static final String NORMAL_TEXT = "Normal";

    /** The default text for the warning level. */
    public static final String WARNING_TEXT = "Warning";

    /** The default text for the critical level. */
    public static final String CRITICAL_TEXT = "Critical";

    /** The default 'normal' level color. */
    static final Paint DEFAULT_NORMAL_PAINT = Color.green;

    /** The default 'warning' level color. */
    static final Paint DEFAULT_WARNING_PAINT = Color.yellow;

    /** The default 'critical' level color. */
    static final Paint DEFAULT_CRITICAL_PAINT = Color.red;

    /** The default background paint. */
    static final Paint DEFAULT_DIAL_BACKGROUND_PAINT = Color.black;

    /** The default needle paint. */
    static final Paint DEFAULT_NEEDLE_PAINT = Color.green;

    /** The default value font. */
    static final Font DEFAULT_VALUE_FONT = new Font("SansSerif", Font.BOLD, 12);

    /** The default value paint. */
    static final Paint DEFAULT_VALUE_PAINT = Color.yellow;

    /** The default meter angle. */
    public static final int DEFAULT_METER_ANGLE = 270;

    /** The default border size. */
    public static final float DEFAULT_BORDER_SIZE = 3f;

    /** The default circle size. */
    public static final float DEFAULT_CIRCLE_SIZE = 10f;

    /** The default background color. */
    public static final Paint DEFAULT_BACKGROUND_PAINT = Color.lightGray;

    /** The default label font. */
    public static final Font DEFAULT_LABEL_FONT = new Font("SansSerif", Font.BOLD, 10);

    /** Constant for the label type. */
    public static final int NO_LABELS = 0;

    /** Constant for the label type. */
    public static final int VALUE_LABELS = 1;

    /** The dataset. */
    private ValueDataset dataset;

    /** The units displayed on the dial. */    
    private String units;
    
    /** The overall range. */
    private Range range;
    
    /** The normal range. */
    private Range normalRange;
    
    /** The warning range. */
    private Range warningRange;
    
    /** The critical range. */
    private Range criticalRange;
    
    /** The outline paint. */
    private Paint dialOutlinePaint;

    /** The 'normal' level color. */
    private transient Paint normalPaint = DEFAULT_NORMAL_PAINT;

    /** The 'warning' level color. */
    private transient Paint warningPaint = DEFAULT_WARNING_PAINT;

    /** The 'critical' level color. */
    private transient Paint criticalPaint = DEFAULT_CRITICAL_PAINT;

    /** The dial shape (background shape). */
    private DialShape shape = DialShape.CIRCLE;

    /** The paint for the dial background. */
    private transient Paint dialBackgroundPaint;

    /** The paint for the needle. */
    private transient Paint needlePaint;

    /** The font for the value displayed in the center of the dial. */
    private Font valueFont;

    /** The paint for the value displayed in the center of the dial. */
    private transient Paint valuePaint;

    /** The tick label type (NO_LABELS, VALUE_LABELS). */
    private int tickLabelType;

    /** The tick label font. */
    private Font tickLabelFont;

    /** A flag that controls whether or not the border is drawn. */
    private boolean drawBorder;

    /** ??? */
    private int meterCalcAngle = -1;

    /** ??? */
    private double meterRange = -1;

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

    /** The dial extent. */
    private int meterAngle = DEFAULT_METER_ANGLE;

    /** The minimum meter value. */
    private double minMeterValue = 0.0;

    /**
     * Default constructor.
     *
     * @param dataset  The dataset.
     */
    public MeterPlot(ValueDataset dataset) {

        super();

        this.dataset = dataset;
        this.units = "Units";
        this.range = new Range(0.0, 100.0);
        this.normalRange = new Range(0.0, 60.0);
        this.warningRange = new Range(60.0, 90.0);
        this.criticalRange = new Range(90.0, 100.0);
        this.tickLabelType = MeterPlot.VALUE_LABELS;
        this.tickLabelFont = MeterPlot.DEFAULT_LABEL_FONT;

        this.dialBackgroundPaint = MeterPlot.DEFAULT_DIAL_BACKGROUND_PAINT;
        this.needlePaint = MeterPlot.DEFAULT_NEEDLE_PAINT;
        this.valueFont = MeterPlot.DEFAULT_VALUE_FONT;
        this.valuePaint = MeterPlot.DEFAULT_VALUE_PAINT;

    }

    /**
     * Returns the units for the dial.
     * 
     * @return The units.
     */
    public String getUnits() {
        return this.units;
    }
    
    /**
     * Sets the units for the dial.
     * 
     * @param units  the units.
     */
    public void setUnits(String units) {
        this.units = units;    
        notifyListeners(new PlotChangeEvent(this));
    }
    
    /**
     * Returns the overall range for the dial.
     * 
     * @return The overall range.
     */
    public Range getRange() {
        return this.range;    
    }
    
    /**
     * Sets the overall range for the dial.
     * 
     * @param range  the range.
     */
    public void setRange(Range range) {
        this.range = range;    
    }
    
    /**
     * Returns the normal range for the dial.
     * 
     * @return The normal range.
     */
    public Range getNormalRange() {
        return this.normalRange;    
    }
    
    /**
     * Sets the normal range for the dial.
     * 
     * @param range  the range.
     */
    public void setNormalRange(Range range) {
        this.normalRange = range;    
        notifyListeners(new PlotChangeEvent(this));
    }
    
    /**
     * Returns the warning range for the dial.
     * 
     * @return The warning range.
     */
    public Range getWarningRange() {
        return this.warningRange;    
    }
    
    /**
     * Sets the warning range for the dial.
     * 
     * @param range  the range.
     */
    public void setWarningRange(Range range) {
        this.warningRange = range;    
        notifyListeners(new PlotChangeEvent(this));
    }
    
    /**
     * Returns the critical range for the dial.
     * 
     * @return The critical range.
     */
    public Range getCriticalRange() {
        return this.criticalRange;    
    }
    
    /**
     * Sets the critical range for the dial.
     * 
     * @param range  the range.
     */
    public void setCriticalRange(Range range) {
        this.criticalRange = range;    
        notifyListeners(new PlotChangeEvent(this));
    }
    
    /**
     * Returns the dial shape.
     * 
     * @return The dial shape.
     */
    public DialShape getDialShape() {
        return this.shape;
    }
    
    /**
     * Sets the dial shape.
     * 
     * @param shape  the shape.
     */
    public void setDialShape(DialShape shape) {
        this.shape = shape;
        notifyListeners(new PlotChangeEvent(this));
    }
    
    /**
     * Returns the paint for the dial background.
     *
     * @return The paint.
     */
    public Paint getDialBackgroundPaint() {
        return this.dialBackgroundPaint;
    }

    /**
     * Sets the paint used to fill the dial background.
     * <P>
     * If you set this to null, it will revert to the default color.
     *
     * @param paint The paint.
     */
    public void setDialBackgroundPaint(Paint paint) {
        this.dialBackgroundPaint = paint == null ? DEFAULT_DIAL_BACKGROUND_PAINT : paint;
        notifyListeners(new PlotChangeEvent(this));
    }

    /**
     * Returns the paint for the needle.
     *
     * @return The paint.
     */
    public Paint getNeedlePaint() {
        return this.needlePaint;
    }

    /**
     * Sets the paint used to display the needle.
     * <P>
     * If you set this to null, it will revert to the default color.
     *
     * @param paint The paint.
     */
    public void setNeedlePaint(Paint paint) {
        this.needlePaint = paint == null ? DEFAULT_NEEDLE_PAINT : paint;
        notifyListeners(new PlotChangeEvent(this));
    }

    /**
     * Returns the font for the value label.
     *
     * @return The font.
     */
    public Font getValueFont() {
        return this.valueFont;
    }

    /**
     * Sets the font used to display the value label.
     * <P>
     * If you set this to null, it will revert to the default font.
     *
     * @param font The font.
     */
    public void setValueFont(Font font) {
        this.valueFont = (font == null) ? DEFAULT_VALUE_FONT : font;
        notifyListeners(new PlotChangeEvent(this));
    }

    /**
     * Returns the paint for the value label.
     *
     * @return The paint.
     */
    public Paint getValuePaint() {
        return this.valuePaint;
    }

    /**

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
五月天中文字幕一区二区| 欧美激情在线一区二区| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 欧美中文字幕亚洲一区二区va在线| 麻豆精品一区二区三区| 婷婷综合另类小说色区| 日韩电影在线一区二区三区| 首页国产丝袜综合| 久久国产精品露脸对白| 久久99久国产精品黄毛片色诱| 蜜臀av性久久久久av蜜臀妖精| 日韩一区欧美二区| 久久激情五月激情| 国产盗摄一区二区| 91亚洲精品一区二区乱码| 欧美曰成人黄网| 69精品人人人人| 精品国精品国产| 国产精品久久久久aaaa樱花 | 久久精品一二三| 欧美高清在线一区| 亚洲精品v日韩精品| 日韩激情在线观看| 精品在线播放免费| 波多野结衣视频一区| 欧美午夜精品理论片a级按摩| 欧美日韩第一区日日骚| 精品国产一区二区三区不卡 | 欧美一级在线观看| 国产欧美精品一区aⅴ影院 | 日韩国产精品久久久久久亚洲| 久久电影网电视剧免费观看| 99国产精品视频免费观看| 91成人国产精品| 欧美人动与zoxxxx乱| 精品国产一区二区国模嫣然| 国产精品理论片在线观看| 亚洲最大的成人av| 国产在线国偷精品免费看| 成人免费av网站| 欧洲在线/亚洲| 久久蜜桃一区二区| 亚洲国产色一区| 国产精品影视网| 欧美视频在线不卡| 国产精品久99| 国产揄拍国内精品对白| 欧美三电影在线| 成人免费一区二区三区视频| 免费观看久久久4p| 欧美三级日韩三级| 亚洲欧洲国产日本综合| 国产成人在线视频播放| 91精品久久久久久蜜臀| 一个色在线综合| 成人动漫视频在线| 国产日韩精品一区二区三区| 青娱乐精品视频在线| 在线亚洲人成电影网站色www| 久久精品一区四区| 国产一区二区三区四区五区入口| 欧美日精品一区视频| 亚洲女厕所小便bbb| 成人av在线一区二区三区| 久久综合av免费| 六月丁香婷婷色狠狠久久| 欧美乱妇一区二区三区不卡视频| 亚洲人亚洲人成电影网站色| 丁香婷婷综合网| 久久久欧美精品sm网站| 国精产品一区一区三区mba桃花| 欧美日韩亚洲综合| 亚洲国产一区二区a毛片| 日本道精品一区二区三区| 中文字幕中文字幕在线一区| 成人综合婷婷国产精品久久蜜臀| 久久久亚洲精品一区二区三区 | 精品国产91久久久久久久妲己 | 国产成人午夜电影网| 久久久久久久国产精品影院| 国产在线精品一区二区夜色 | 青青国产91久久久久久| 欧美丰满高潮xxxx喷水动漫| 亚洲一本大道在线| 91超碰这里只有精品国产| 丝袜诱惑亚洲看片| 精品99999| 国产91丝袜在线播放| 国产精品麻豆网站| 91美女在线视频| 亚洲高清视频在线| 日韩精品中文字幕一区二区三区| 玖玖九九国产精品| 欧美激情一区二区三区不卡| 91免费在线视频观看| 一区二区三国产精华液| 欧美一级搡bbbb搡bbbb| 狠狠色丁香久久婷婷综合_中 | 在线免费视频一区二区| 日日夜夜精品视频天天综合网| 日韩免费一区二区三区在线播放| 久久不见久久见免费视频1| 国产精品色哟哟| 欧美日韩国产高清一区二区| 狠狠色丁香久久婷婷综合_中| 国产精品久久久久影院色老大| 91在线播放网址| 人禽交欧美网站| 国产精品视频观看| 欧美日韩国产综合视频在线观看 | 久久看人人爽人人| 色综合天天综合网国产成人综合天| 亚洲一二三四在线| 久久亚洲春色中文字幕久久久| 成人app在线观看| 久久国产欧美日韩精品| 亚洲欧美日韩在线| 久久久久久夜精品精品免费| 在线观看国产日韩| 成人性视频免费网站| 首页国产丝袜综合| 亚洲欧美激情插| 久久美女艺术照精彩视频福利播放| 欧美中文字幕一二三区视频| 成人美女在线观看| 激情图区综合网| 视频一区视频二区中文| 中文字幕在线观看一区| 欧美成人精品高清在线播放| 在线观看视频欧美| 成人高清视频免费观看| 精品亚洲免费视频| 三级影片在线观看欧美日韩一区二区| 国产欧美日韩不卡| 久久久美女毛片| 日韩一区二区免费电影| 欧美剧在线免费观看网站| 91欧美一区二区| av资源网一区| 成人av电影在线网| 成人在线一区二区三区| 国产精品亚洲专一区二区三区| 日韩二区三区四区| 视频一区国产视频| 亚洲小说春色综合另类电影| 一区二区三区中文字幕精品精品 | 亚洲大片免费看| 艳妇臀荡乳欲伦亚洲一区| 中文字幕综合网| 亚洲欧洲精品天堂一级| 亚洲欧洲另类国产综合| 国产欧美精品国产国产专区| 久久久精品tv| 久久精品水蜜桃av综合天堂| 久久精品视频免费观看| 国产日韩亚洲欧美综合| 国产人成亚洲第一网站在线播放| 久久这里只有精品视频网| 国产亚洲va综合人人澡精品| 国产亚洲欧美在线| 中文字幕一区二区三区在线播放| 国产精品美女久久久久高潮| 亚洲欧洲性图库| 亚洲男人的天堂在线观看| 亚洲第一久久影院| 免费观看成人av| 国产精品一区二区三区四区| 成人综合在线网站| 欧美优质美女网站| 日韩午夜在线影院| 国产偷国产偷精品高清尤物| 欧美韩国一区二区| 樱桃视频在线观看一区| 五月天亚洲婷婷| 国产成人午夜精品影院观看视频 | 亚洲自拍偷拍九九九| 亚洲bt欧美bt精品| 奇米影视一区二区三区| 国产精品一区二区男女羞羞无遮挡 | 8v天堂国产在线一区二区| 欧美精品一区二区三区蜜臀| 中国av一区二区三区| 一区2区3区在线看| 免费观看久久久4p| youjizz国产精品| 欧美日韩一区高清| 久久久www免费人成精品| 亚洲三级久久久| 蜜臀va亚洲va欧美va天堂| 成人黄色电影在线| 欧美日本在线视频| 国产精品国产三级国产aⅴ入口| 亚洲综合丝袜美腿| 国产成人无遮挡在线视频| 国产精品18久久久久久久久久久久| 国产成人综合在线| 欧美精品久久天天躁| 国产人妖乱国产精品人妖| 视频在线观看91| 不卡一区二区中文字幕|