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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? numberaxis.java

?? Web圖形化的Java庫
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
/* ======================================
 * 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.
 *
 * ---------------
 * NumberAxis.java
 * ---------------
 * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Laurence Vanhelsuwe;
 *
 * $Id: NumberAxis.java,v 1.18 2003/09/03 15:08:48 mungady Exp $
 *
 * Changes (from 18-Sep-2001)
 * --------------------------
 * 18-Sep-2001 : Added standard header and fixed DOS encoding problem (DG);
 * 22-Sep-2001 : Changed setMinimumAxisValue(...) and setMaximumAxisValue(...) so that they
 *               clear the autoRange flag (DG);
 * 27-Nov-2001 : Removed old, redundant code (DG);
 * 30-Nov-2001 : Added accessor methods for the standard tick units (DG);
 * 08-Jan-2002 : Added setAxisRange(...) method (since renamed setRange(...)) (DG);
 * 16-Jan-2002 : Added setTickUnit(...) method.  Extended ValueAxis to support an optional
 *               cross-hair (DG);
 * 08-Feb-2002 : Fixes bug to ensure the autorange is recalculated if the
 *               setAutoRangeIncludesZero flag is changed (DG);
 * 25-Feb-2002 : Added a new flag autoRangeStickyZero to provide further control over margins in
 *               the auto-range mechanism.  Updated constructors.  Updated import statements.
 *               Moved the createStandardTickUnits() method to the TickUnits class (DG);
 * 19-Apr-2002 : Updated Javadoc comments (DG);
 * 01-May-2002 : Updated for changes to TickUnit class, removed valueToString(...) method (DG);
 * 25-Jul-2002 : Moved the lower and upper margin attributes, and the auto-range minimum size, up
 *               one level to the ValueAxis class (DG);
 * 05-Sep-2002 : Updated constructor to match changes in Axis class (DG);
 * 01-Oct-2002 : Fixed errors reported by Checkstyle (DG);
 * 04-Oct-2002 : Moved standardTickUnits from NumberAxis --> ValueAxis (DG);
 * 24-Oct-2002 : Added a number format override (DG);
 * 08-Nov-2002 : Moved to new package com.jrefinery.chart.axis (DG);
 * 19-Nov-2002 : Removed grid settings (now controlled by the plot) (DG);
 * 14-Jan-2003 : Changed autoRangeMinimumSize from Number --> double, and moved crosshair settings
 *               to the plot classes (DG);
 * 20-Jan-2003 : Removed the monolithic constructor (DG);
 * 26-Mar-2003 : Implemented Serializable (DG);
 * 16-Jul-2003 : Reworked to allow for multiple secondary axes (DG);
 * 13-Aug-2003 : Implemented Cloneable (DG);
 *
 */

package org.jfree.chart.axis;

import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Insets;
import java.awt.font.FontRenderContext;
import java.awt.font.LineMetrics;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.io.Serializable;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Iterator;
import java.util.Locale;

import org.jfree.chart.event.AxisChangeEvent;
import org.jfree.chart.plot.Plot;
import org.jfree.chart.plot.ValueAxisPlot;
import org.jfree.data.Range;
import org.jfree.ui.RectangleEdge;
import org.jfree.ui.RefineryUtilities;
import org.jfree.util.ObjectUtils;

/**
 * An axis for displaying numerical data.
 * <P>
 * If the axis is set up to automatically determine its range to fit the data,
 * you can ensure that the range includes zero (statisticians usually prefer
 * this) by setting the <code>autoRangeIncludesZero</code> flag to <code>true</code>.
 * <P>
 * The <code>NumberAxis</code> class has a mechanism for automatically selecting a tick unit
 * that is appropriate for the current axis range.  This mechanism is an
 * adaptation of code suggested by Laurence Vanhelsuwe.
 *
 * @author David Gilbert
 */
public class NumberAxis extends ValueAxis implements Cloneable, Serializable {

    /** The default value for the autoRangeIncludesZero flag. */
    public static final boolean DEFAULT_AUTO_RANGE_INCLUDES_ZERO = true;

    /** The default value for the autoRangeStickyZero flag. */
    public static final boolean DEFAULT_AUTO_RANGE_STICKY_ZERO = true;

    /** The default tick unit. */
    public static final NumberTickUnit
        DEFAULT_TICK_UNIT = new NumberTickUnit(1.0, new DecimalFormat("0"));

    /** The default setting for the vertical tick labels flag. */
    public static final boolean DEFAULT_VERTICAL_TICK_LABELS = false;

    /**
     * A flag that affects the axis range when the range is determined
     * automatically.  If the auto range does NOT include zero and this flag
     * is TRUE, then the range is changed to include zero.
     */
    private boolean autoRangeIncludesZero;

    /**
     * A flag that affects the size of the margins added to the axis range when
     * the range is determined automatically.  If the value 0 falls within the
     * margin and this flag is TRUE, then the margin is truncated at zero.
     */
    private boolean autoRangeStickyZero;

    /** The tick unit for the axis. */
    private NumberTickUnit tickUnit;

    /** The override number format. */
    private NumberFormat numberFormatOverride;

    /** An optional band for marking regions on the axis. */
    private MarkerAxisBand markerBand;

    /**
     * Default constructor.
     */
    public NumberAxis() {
        this(null);    
    }
    
    /**
     * Constructs a number axis, using default values where necessary.
     *
     * @param label  the axis label (<code>null</code> permitted).
     */
    public NumberAxis(String label) {

        super(label, NumberAxis.createStandardTickUnits());

        this.autoRangeIncludesZero = DEFAULT_AUTO_RANGE_INCLUDES_ZERO;
        this.autoRangeStickyZero = DEFAULT_AUTO_RANGE_STICKY_ZERO;
        this.tickUnit = DEFAULT_TICK_UNIT;
        this.numberFormatOverride = null;

        this.markerBand = null;

    }
    
    /**
     * Returns the flag that indicates whether or not the automatic axis range
     * (if indeed it is determined automatically) is forced to include zero.
     *
     * @return The flag.
     */
    public boolean autoRangeIncludesZero() {
        return this.autoRangeIncludesZero;
    }

    /**
     * Sets the flag that indicates whether or not the axis range, if automatically calculated, is
     * forced to include zero.
     * <p>
     * If the flag is changed to <code>true</code>, the axis range is recalculated.
     * <p>
     * Any change to the flag will trigger an {@link AxisChangeEvent}.
     *
     * @param flag  the new value of the flag.
     */
    public void setAutoRangeIncludesZero(boolean flag) {

        if (autoRangeIncludesZero != flag) {

            this.autoRangeIncludesZero = flag;
            if (isAutoRange()) {
                autoAdjustRange();
            }
            notifyListeners(new AxisChangeEvent(this));

        }

    }

    /**
     * Returns a flag that affects the auto-range when zero falls outside the
     * data range but inside the margins defined for the axis.
     *
     * @return The flag.
     */
    public boolean autoRangeStickyZero() {
        return this.autoRangeStickyZero;
    }

    /**
     * Sets a flag that affects the auto-range when zero falls outside the data
     * range but inside the margins defined for the axis.
     *
     * @param flag  the new flag.
     */
    public void setAutoRangeStickyZero(boolean flag) {

        if (autoRangeStickyZero != flag) {

            this.autoRangeStickyZero = flag;
            if (isAutoRange()) {
                autoAdjustRange();
            }
            notifyListeners(new AxisChangeEvent(this));

        }

    }

    /**
     * Returns the tick unit for the axis.
     *
     * @return The tick unit for the axis.
     */
    public NumberTickUnit getTickUnit() {
        return this.tickUnit;
    }

    /**
     * Sets the tick unit for the axis.  This will turn off the auto tick unit selection
     * mechanism (if it is on) and send an {@link AxisChangeEvent} to all registered
     * listeners.
     *
     * @param unit  the new tick unit.
     */
    public void setTickUnit(NumberTickUnit unit) {
        setTickUnit(unit, true, true);
    }

    /**
     * Sets the tick unit for the axis.  This will turn off the auto tick unit selection
     * mechanism (if it is on) and, if requested, send an {@link AxisChangeEvent} to all
     * registered listeners.
     *
     * @param unit  the new tick unit.
     * @param notify  notify listeners?
     * @param turnOffAutoSelect  turn off the auto-tick selection?
     */
    public void setTickUnit(NumberTickUnit unit, boolean notify, boolean turnOffAutoSelect) {

        this.tickUnit = unit;
        if (turnOffAutoSelect) {
            setAutoTickUnitSelection(false, false);
        }
        if (notify) {
            notifyListeners(new AxisChangeEvent(this));
        }

    }

    /**
     * Returns the number format override.  If this is non-null, then it will be used to format
     * the numbers on the axis.
     *
     * @return The number format override.
     */
    public NumberFormat getNumberFormatOverride() {
        return this.numberFormatOverride;
    }

    /**
     * Sets the number format override.  If this is non-null, then it will be used to format
     * the numbers on the axis.
     *
     * @param formatter  the number formatter (<code>null</code> permitted).
     */
    public void setNumberFormatOverride(NumberFormat formatter) {
        this.numberFormatOverride = formatter;
        notifyListeners(new AxisChangeEvent(this));
    }

    /**
     * Returns the (optional) marker band for the axis.
     *
     * @return The marker band (possibly <code>null</code>).
     */
    public MarkerAxisBand getMarkerBand() {
        return this.markerBand;
    }

    /**
     * Sets the marker band for the axis.
     * <P>
     * The marker band is optional, leave it set to <code>null</code> if you don't require it.
     *
     * @param band the new band (<code>null<code> permitted).
     */
    public void setMarkerBand(MarkerAxisBand band) {
        this.markerBand = band;
        notifyListeners(new AxisChangeEvent(this));
    }

    /**
     * Returns true if the specified plot is compatible with the axis.
     *
     * @param plot  the plot.
     *
     * @return <code>true</code> if the specified plot is compatible with the axis.
     */
    protected boolean isCompatiblePlot(Plot plot) {
        return (plot instanceof ValueAxisPlot);
    }

    /**
     * Configures the axis to work with the specified plot.  If the axis has
     * auto-scaling, then sets the maximum and minimum values.
     */
    public void configure() {
        if (isAutoRange()) {
            autoAdjustRange();
        }
    }

    /**
     * Rescales the axis to ensure that all data is visible.
     */
    protected void autoAdjustRange() {

        Plot plot = getPlot();
        if (plot == null) {
            return;  // no plot, no data
        }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本视频在线一区| 欧美少妇bbb| 亚洲欧美另类在线| 91国产福利在线| 亚洲.国产.中文慕字在线| 在线观看91av| 国产在线国偷精品免费看| 国产精品无人区| 91福利在线免费观看| 日韩国产精品大片| 久久久亚洲国产美女国产盗摄| 成人99免费视频| 亚洲电影一级片| 精品国产乱码久久久久久图片 | 国产日韩欧美制服另类| a级精品国产片在线观看| 亚洲一二三四区不卡| 精品少妇一区二区| gogogo免费视频观看亚洲一| 亚洲成人你懂的| 久久综合五月天婷婷伊人| av网站一区二区三区| 亚洲一区二区三区影院| 精品久久免费看| 99精品视频在线观看| 视频一区二区国产| 国产欧美一区二区三区在线看蜜臀| 色又黄又爽网站www久久| 日本aⅴ亚洲精品中文乱码| 国产农村妇女毛片精品久久麻豆 | 五月婷婷激情综合| 久久天天做天天爱综合色| 91美女在线观看| 青青草国产成人av片免费| 欧美国产1区2区| 欧美日韩精品免费| 成人综合婷婷国产精品久久蜜臀 | 不卡av在线网| 日本中文字幕一区| 中文字幕亚洲电影| 91精品国产色综合久久不卡电影 | 国产免费观看久久| 欧美日韩免费高清一区色橹橹| 国产一区啦啦啦在线观看| 亚洲综合久久av| 久久久青草青青国产亚洲免观| 欧美在线你懂得| 国产美女久久久久| 天堂资源在线中文精品| 国产精品美女一区二区| 欧美一区二区三区色| 99re热这里只有精品免费视频| 午夜视黄欧洲亚洲| 自拍偷拍亚洲综合| 欧美成人三级电影在线| 欧美在线你懂得| 成人一区二区三区视频在线观看| 日本欧美一区二区三区| 亚洲欧美激情在线| 国产日韩成人精品| 日韩欧美一区二区视频| 日本丶国产丶欧美色综合| 国产成人精品一区二区三区四区 | 91老师片黄在线观看| 国产永久精品大片wwwapp| 婷婷中文字幕综合| 亚洲视频免费看| 久久久精品综合| 日韩一级在线观看| 精品视频在线免费| 91麻豆国产自产在线观看| 国产精品888| 老司机午夜精品| 午夜伦欧美伦电影理论片| 亚洲天堂精品视频| 中文字幕欧美区| 精品粉嫩超白一线天av| 69堂成人精品免费视频| 欧美亚洲综合一区| 91蜜桃在线免费视频| 成人三级在线视频| 国产精品99久久久| 韩国午夜理伦三级不卡影院| 日韩电影在线一区二区三区| 亚洲国产另类av| 亚洲男同性恋视频| 亚洲天堂a在线| 国产精品黄色在线观看| 国产女主播在线一区二区| 精品国产乱码久久久久久图片| 欧美一区二区三区色| 欧美精品日韩一本| 欧美日本在线播放| 欧美日韩美少妇| 欧美四级电影网| 精品视频资源站| 欧美日韩中文一区| 欧美日韩中文字幕精品| 欧美性大战久久久久久久| 在线视频国产一区| 在线观看91精品国产入口| 欧洲亚洲国产日韩| 欧美性感一区二区三区| 欧美午夜精品久久久久久超碰| 日本精品裸体写真集在线观看| 99精品黄色片免费大全| 91丨九色丨黑人外教| 91视频免费观看| 色婷婷av一区二区三区大白胸| 91国在线观看| 欧美日韩电影在线播放| 911精品国产一区二区在线| 欧美精品 国产精品| 欧美日韩黄视频| 欧美一区二区三区免费| 日韩一区二区三免费高清| 欧美变态tickle挠乳网站| 精品第一国产综合精品aⅴ| 久久先锋资源网| 亚洲国产精品成人久久综合一区| 国产精品乱码久久久久久| 国产精品传媒入口麻豆| 亚洲精品va在线观看| 亚洲国产欧美一区二区三区丁香婷| 亚洲v日本v欧美v久久精品| 视频一区欧美精品| 精彩视频一区二区三区| 国产剧情av麻豆香蕉精品| 成人午夜激情影院| 91蝌蚪porny| 欧美日韩免费电影| 欧美电视剧在线看免费| 国产亚洲污的网站| 自拍偷在线精品自拍偷无码专区| 亚洲综合色网站| 日韩av网站免费在线| 国产毛片精品国产一区二区三区| 成人动漫在线一区| 欧美影视一区二区三区| 日韩无一区二区| 欧美激情一区二区三区全黄| 亚洲精品视频在线| 丝袜诱惑亚洲看片| 国产精品自拍网站| 色综合久久天天综合网| 91精品国产色综合久久不卡电影 | 精品国产亚洲在线| 国产精品嫩草久久久久| 亚洲影院理伦片| 精品无人区卡一卡二卡三乱码免费卡 | 奇米影视一区二区三区| 国产精品1024| 色菇凉天天综合网| 日韩精品在线网站| 中文字幕在线观看不卡| 视频在线观看一区二区三区| 国产毛片精品视频| 91福利视频久久久久| 日韩精品在线一区二区| 最近日韩中文字幕| 蜜乳av一区二区三区| av在线播放成人| 91精品国产91久久久久久最新毛片 | 亚洲一区视频在线| 国产在线不卡视频| 欧美在线观看视频一区二区 | 亚洲一区二区三区中文字幕| 久久99精品久久久久| 91丝袜国产在线播放| 欧美大片免费久久精品三p | 国产精品沙发午睡系列990531| 亚洲国产欧美在线| 国产黄色精品网站| 欧美日韩黄视频| 欧美国产激情二区三区| 日韩有码一区二区三区| av一区二区三区| 欧美一级免费大片| 亚洲啪啪综合av一区二区三区| 蜜桃视频在线观看一区| 91看片淫黄大片一级| 精品国产人成亚洲区| 亚洲综合另类小说| 东方aⅴ免费观看久久av| 欧美高清视频一二三区| 中文字幕一区二区视频| 狠狠色伊人亚洲综合成人| 欧美无砖专区一中文字| 国产精品国产自产拍高清av| 久久aⅴ国产欧美74aaa| 欧美日韩一区二区三区免费看| 中文一区在线播放| 精品一区二区免费视频| 欧美精品在线视频| 亚洲伦在线观看| 国产 欧美在线| 亚洲精品在线网站| 日韩精品一级二级| 欧美最新大片在线看| 亚洲欧洲精品天堂一级|