亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲精品一区在线观看| 国产精品夜夜嗨| 丁香啪啪综合成人亚洲小说| 欧美性受xxxx黑人xyx| 久久先锋资源网| 一区二区三区在线高清| 大尺度一区二区| 日韩免费高清视频| 亚洲最快最全在线视频| 大胆欧美人体老妇| 久久免费国产精品| 麻豆成人av在线| 欧美丝袜丝交足nylons| 中文字幕佐山爱一区二区免费| 极品少妇一区二区三区精品视频 | 欧美在线不卡视频| 久久欧美中文字幕| 久久精品噜噜噜成人av农村| 欧美日韩中文字幕精品| 综合激情成人伊人| 成人av高清在线| 久久欧美中文字幕| 国精产品一区一区三区mba视频 | 日韩久久久久久| 偷拍一区二区三区| 欧美色图片你懂的| 亚洲愉拍自拍另类高清精品| 91免费精品国自产拍在线不卡| 日本一区二区视频在线| 国产精品综合视频| 国产欧美日韩激情| 成人的网站免费观看| 国产精品伦理一区二区| 丰满少妇在线播放bd日韩电影| 国产亚洲人成网站| zzijzzij亚洲日本少妇熟睡| 国产精品久久久久久户外露出 | 国产蜜臀av在线一区二区三区| 韩国精品在线观看| 欧美国产精品v| 成人av免费在线| 亚洲欧美日韩国产手机在线 | 日韩美女视频一区二区在线观看| 日本不卡一二三| 精品捆绑美女sm三区| 国产精品一区二区三区网站| 中文字幕av不卡| 色婷婷综合中文久久一本| 亚洲综合激情另类小说区| 555www色欧美视频| 狠狠色狠狠色综合系列| 国产精品免费av| 欧美色中文字幕| 蜜芽一区二区三区| 亚洲免费看黄网站| 在线观看亚洲精品视频| 日韩av网站在线观看| 2023国产精华国产精品| 91在线国产福利| 秋霞电影网一区二区| 欧美国产一区视频在线观看| 在线区一区二视频| 久久成人18免费观看| 国产精品久久99| 欧美伦理影视网| 国产成a人亚洲| 亚洲一二三四在线观看| 久久综合资源网| 色综合天天综合在线视频| 全国精品久久少妇| 中文字幕一区二区三区精华液 | 色综合色狠狠天天综合色| 日韩成人免费在线| 国产精品久久久久久户外露出 | 精品国产乱码久久久久久夜甘婷婷| 丁香六月久久综合狠狠色| 亚洲电影一级片| 中文字幕精品一区二区精品绿巨人| 欧美日韩在线播放一区| 粉嫩av亚洲一区二区图片| 天堂在线一区二区| 中文字幕在线视频一区| 88在线观看91蜜桃国自产| 99re热这里只有精品视频| 日本中文字幕一区二区视频| 国产精品白丝在线| 久久久不卡网国产精品一区| 91精品久久久久久蜜臀| 国产激情视频一区二区三区欧美 | 国内精品第一页| 亚洲国产精品综合小说图片区| 中文字幕不卡在线播放| 久久亚洲一级片| 91精品国产高清一区二区三区蜜臀| 精品一区二区三区的国产在线播放| 在线国产亚洲欧美| 国产高清成人在线| 日本欧美久久久久免费播放网| 亚洲精品欧美在线| 中文字幕亚洲精品在线观看| 久久视频一区二区| 日韩欧美国产三级电影视频| 欧美日韩中文字幕精品| 在线看国产一区二区| 91视频观看免费| 成人性生交大片免费看在线播放| 国产一区二区三区黄视频 | 成人爽a毛片一区二区免费| 美女视频黄 久久| 日韩中文字幕av电影| 亚洲久本草在线中文字幕| 3d成人动漫网站| 欧美老肥妇做.爰bbww| 在线免费观看日本欧美| 色综合天天做天天爱| 99国产精品久| av中文字幕在线不卡| www.性欧美| 色女孩综合影院| 在线观看中文字幕不卡| 欧美日韩午夜精品| 91精品国产综合久久久久久漫画| 欧美精品久久99久久在免费线| 欧美日韩高清在线播放| 91精品国产一区二区三区| 日韩欧美久久一区| 日韩欧美高清在线| 国产视频一区在线播放| 国产精品久久久久影视| 亚洲人成在线播放网站岛国| 亚洲人成伊人成综合网小说| 亚洲成年人网站在线观看| 三级一区在线视频先锋 | 久久国产福利国产秒拍| 蜜臀久久99精品久久久久久9| 久久99久国产精品黄毛片色诱| 精品一区二区三区影院在线午夜 | 奇米777欧美一区二区| 久久精品99国产精品| 狠狠色狠狠色综合| 99免费精品视频| 欧美人伦禁忌dvd放荡欲情| 欧美成人精品3d动漫h| 中文字幕精品一区二区精品绿巨人 | 97久久精品人人做人人爽50路| 99国产精品一区| 欧美日韩久久一区二区| 精品国产免费人成在线观看| 最近日韩中文字幕| 亚洲午夜视频在线观看| 国产精品亚洲一区二区三区在线| 99国产欧美久久久精品| 日韩欧美国产精品一区| 亚洲免费色视频| 国产一区二区看久久| 欧美亚洲日本一区| 国产亚洲一本大道中文在线| 亚洲图片欧美综合| 成人爽a毛片一区二区免费| 88在线观看91蜜桃国自产| 欧美激情在线一区二区三区| 亚洲国产成人porn| 成人性视频网站| 日韩欧美在线网站| 一区二区三区久久久| 国产一区二区精品在线观看| 欧美日韩国产不卡| 综合av第一页| 国产精品91一区二区| 91精品国产综合久久久久久| 亚洲欧洲日韩一区二区三区| 美国欧美日韩国产在线播放| 一本久道久久综合中文字幕| 国产女人18毛片水真多成人如厕| 首页亚洲欧美制服丝腿| av亚洲精华国产精华| 久久久久久免费网| 久久精品二区亚洲w码| 69堂国产成人免费视频| 亚洲精品自拍动漫在线| www.亚洲在线| 中文av一区特黄| 国产精品一区二区在线观看网站 | 青青草成人在线观看| 欧美色图天堂网| 亚洲女人小视频在线观看| 成人高清视频免费观看| 久久伊人中文字幕| 极品少妇xxxx偷拍精品少妇| 欧美一二三四区在线| 亚洲gay无套男同| 91精品福利在线| 亚洲你懂的在线视频| 99re视频精品| 成人欧美一区二区三区1314| av一二三不卡影片| 18欧美乱大交hd1984| 91毛片在线观看| 一区二区在线免费| 欧美日韩精品是欧美日韩精品|