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

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

?? axis.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* ===========================================================
 * 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.]
 *
 * ---------
 * Axis.java
 * ---------
 * (C) Copyright 2000-2004, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Bill Kelemen; Nicolas Brodu
 *
 * $Id: Axis.java,v 1.11.2.2 2005/10/25 20:37:34 mungady Exp $
 *
 * Changes (from 21-Aug-2001)
 * --------------------------
 * 21-Aug-2001 : Added standard header, fixed DOS encoding problem (DG);
 * 18-Sep-2001 : Updated header (DG);
 * 07-Nov-2001 : Allow null axis labels (DG);
 *             : Added default font values (DG);
 * 13-Nov-2001 : Modified the setPlot() method to check compatibility between 
 *               the axis and the plot (DG);
 * 30-Nov-2001 : Changed default font from "Arial" --> "SansSerif" (DG);
 * 06-Dec-2001 : Allow null in setPlot() method (BK);
 * 06-Mar-2002 : Added AxisConstants interface (DG);
 * 23-Apr-2002 : Added a visible property.  Moved drawVerticalString to 
 *               RefineryUtilities.  Added fixedDimension property for use in 
 *               combined plots (DG);
 * 25-Jun-2002 : Removed unnecessary imports (DG);
 * 05-Sep-2002 : Added attribute for tick mark paint (DG);
 * 18-Sep-2002 : Fixed errors reported by Checkstyle (DG);
 * 07-Nov-2002 : Added attributes to control the inside and outside length of 
 *               the tick marks (DG);
 * 08-Nov-2002 : Moved to new package com.jrefinery.chart.axis (DG);
 * 18-Nov-2002 : Added axis location to refreshTicks() parameters (DG);
 * 15-Jan-2003 : Removed monolithic constructor (DG);
 * 17-Jan-2003 : Moved plot classes to separate package (DG);
 * 26-Mar-2003 : Implemented Serializable (DG);
 * 03-Jul-2003 : Modified reserveSpace method (DG);
 * 13-Aug-2003 : Implemented Cloneable (DG);
 * 11-Sep-2003 : Took care of listeners while cloning (NB);
 * 29-Oct-2003 : Added workaround for font alignment in PDF output (DG);
 * 06-Nov-2003 : Modified refreshTicks() signature (DG);
 * 06-Jan-2004 : Added axis line attributes (DG);
 * 16-Mar-2004 : Added plot state to draw() method (DG);
 * 07-Apr-2004 : Modified text bounds calculation (DG);
 * 18-May-2004 : Eliminated AxisConstants.java (DG);
 * 30-Sep-2004 : Moved drawRotatedString() from RefineryUtilities --> 
 *               TextUtilities (DG);
 * 04-Oct-2004 : Modified getLabelEnclosure() method to treat an empty String 
 *               the same way as a null string - see bug 1026521 (DG);
 * 21-Apr-2005 : Replaced Insets with RectangleInsets (DG);
 * 26-Apr-2005 : Removed LOGGER (DG);
 * 01-Jun-2005 : Added hasListener() method for unit testing (DG);
 * 08-Jun-2005 : Fixed equals() method to handle GradientPaint (DG);
 */

package org.jfree.chart.axis;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.AffineTransform;
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.util.Arrays;
import java.util.EventListener;
import java.util.List;

import javax.swing.event.EventListenerList;

import org.jfree.chart.event.AxisChangeEvent;
import org.jfree.chart.event.AxisChangeListener;
import org.jfree.chart.plot.Plot;
import org.jfree.chart.plot.PlotRenderingInfo;
import org.jfree.io.SerialUtilities;
import org.jfree.text.TextUtilities;
import org.jfree.ui.RectangleEdge;
import org.jfree.ui.RectangleInsets;
import org.jfree.ui.TextAnchor;
import org.jfree.util.ObjectUtilities;
import org.jfree.util.PaintUtilities;

/**
 * The base class for all axes in JFreeChart.  Subclasses are divided into 
 * those that display values ({@link ValueAxis}) and those that display 
 * categories ({@link CategoryAxis}).
 */
public abstract class Axis implements Cloneable, Serializable {

    /** For serialization. */
    private static final long serialVersionUID = 7719289504573298271L;
    
    /** The default axis visibility. */
    public static final boolean DEFAULT_AXIS_VISIBLE = true;

    /** The default axis label font. */
    public static final Font DEFAULT_AXIS_LABEL_FONT 
        = new Font("SansSerif", Font.PLAIN, 12);

    /** The default axis label paint. */
    public static final Paint DEFAULT_AXIS_LABEL_PAINT = Color.black;

    /** The default axis label insets. */
    public static final RectangleInsets DEFAULT_AXIS_LABEL_INSETS 
        = new RectangleInsets(3.0, 3.0, 3.0, 3.0);

    /** The default axis line paint. */
    public static final Paint DEFAULT_AXIS_LINE_PAINT = Color.gray;
    
    /** The default axis line stroke. */
    public static final Stroke DEFAULT_AXIS_LINE_STROKE = new BasicStroke(1.0f);

    /** The default tick labels visibility. */
    public static final boolean DEFAULT_TICK_LABELS_VISIBLE = true;

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

    /** The default tick label paint. */
    public static final Paint DEFAULT_TICK_LABEL_PAINT = Color.black;

    /** The default tick label insets. */
    public static final RectangleInsets DEFAULT_TICK_LABEL_INSETS 
        = new RectangleInsets(2.0, 4.0, 2.0, 4.0);

    /** The default tick marks visible. */
    public static final boolean DEFAULT_TICK_MARKS_VISIBLE = true;

    /** The default tick stroke. */
    public static final Stroke DEFAULT_TICK_MARK_STROKE = new BasicStroke(1);

    /** The default tick paint. */
    public static final Paint DEFAULT_TICK_MARK_PAINT = Color.gray;

    /** The default tick mark inside length. */
    public static final float DEFAULT_TICK_MARK_INSIDE_LENGTH = 0.0f;

    /** The default tick mark outside length. */
    public static final float DEFAULT_TICK_MARK_OUTSIDE_LENGTH = 2.0f;

    /** A flag indicating whether or not the axis is visible. */
    private boolean visible;

    /** The label for the axis. */
    private String label;

    /** The font for displaying the axis label. */
    private Font labelFont;

    /** The paint for drawing the axis label. */
    private transient Paint labelPaint;

    /** The insets for the axis label. */
    private RectangleInsets labelInsets;

    /** The label angle. */
    private double labelAngle;

    /** A flag that controls whether or not the axis line is visible. */
    private boolean axisLineVisible;

    /** The stroke used for the axis line. */
    private transient Stroke axisLineStroke;
    
    /** The paint used for the axis line. */
    private transient Paint axisLinePaint;
    
    /** 
     * A flag that indicates whether or not tick labels are visible for the 
     * axis. 
     */
    private boolean tickLabelsVisible;

    /** The font used to display the tick labels. */
    private Font tickLabelFont;

    /** The color used to display the tick labels. */
    private transient Paint tickLabelPaint;

    /** The blank space around each tick label. */
    private RectangleInsets tickLabelInsets;

    /** 
     * A flag that indicates whether or not tick marks are visible for the 
     * axis. 
     */
    private boolean tickMarksVisible;

    /** The length of the tick mark inside the data area (zero permitted). */
    private float tickMarkInsideLength;

    /** The length of the tick mark outside the data area (zero permitted). */
    private float tickMarkOutsideLength;

    /** The stroke used to draw tick marks. */
    private transient Stroke tickMarkStroke;

    /** The paint used to draw tick marks. */
    private transient Paint tickMarkPaint;

    /** The fixed (horizontal or vertical) dimension for the axis. */
    private double fixedDimension;

    /** 
     * A reference back to the plot that the axis is assigned to (can be 
     * <code>null</code>). 
     */
    private transient Plot plot;

    /** Storage for registered listeners. */
    private transient EventListenerList listenerList;

    /**
     * Constructs an axis, using default values where necessary.
     *
     * @param label  the axis label (<code>null</code> permitted).
     */
    protected Axis(String label) {

        this.label = label;
        this.visible = DEFAULT_AXIS_VISIBLE;
        this.labelFont = DEFAULT_AXIS_LABEL_FONT;
        this.labelPaint = DEFAULT_AXIS_LABEL_PAINT;
        this.labelInsets = DEFAULT_AXIS_LABEL_INSETS;
        this.labelAngle = 0.0;
        
        this.axisLineVisible = true;
        this.axisLinePaint = DEFAULT_AXIS_LINE_PAINT;
        this.axisLineStroke = DEFAULT_AXIS_LINE_STROKE;
        
        this.tickLabelsVisible = DEFAULT_TICK_LABELS_VISIBLE;
        this.tickLabelFont = DEFAULT_TICK_LABEL_FONT;
        this.tickLabelPaint = DEFAULT_TICK_LABEL_PAINT;
        this.tickLabelInsets = DEFAULT_TICK_LABEL_INSETS;
        
        this.tickMarksVisible = DEFAULT_TICK_MARKS_VISIBLE;
        this.tickMarkStroke = DEFAULT_TICK_MARK_STROKE;
        this.tickMarkPaint = DEFAULT_TICK_MARK_PAINT;
        this.tickMarkInsideLength = DEFAULT_TICK_MARK_INSIDE_LENGTH;
        this.tickMarkOutsideLength = DEFAULT_TICK_MARK_OUTSIDE_LENGTH;

        this.plot = null;

        this.listenerList = new EventListenerList();

    }

    /**
     * Returns <code>true</code> if the axis is visible, and 
     * <code>false</code> otherwise.
     *
     * @return A boolean.
     */
    public boolean isVisible() {
        return this.visible;
    }

    /**
     * Sets a flag that controls whether or not the axis is visible and sends 
     * an {@link AxisChangeEvent} to all registered listeners.
     *
     * @param flag  the flag.
     */
    public void setVisible(boolean flag) {
        if (flag != this.visible) {
            this.visible = flag;
            notifyListeners(new AxisChangeEvent(this));
        }
    }

    /**
     * Returns the label for the axis.
     *
     * @return The label for the axis (<code>null</code> possible).
     */
    public String getLabel() {
        return this.label;
    }

    /**
     * Sets the label for the axis and sends an {@link AxisChangeEvent} to all 
     * registered listeners.
     *
     * @param label  the new label (<code>null</code> permitted).
     */
    public void setLabel(String label) {
        
        String existing = this.label;
        if (existing != null) {
            if (!existing.equals(label)) {
                this.label = label;
                notifyListeners(new AxisChangeEvent(this));
            }
        }
        else {
            if (label != null) {
                this.label = label;
                notifyListeners(new AxisChangeEvent(this));
            }
        }

    }

    /**
     * Returns the font for the axis label.
     *
     * @return The font (never <code>null</code>).
     */
    public Font getLabelFont() {
        return this.labelFont;
    }

    /**
     * Sets the font for the axis label and sends an {@link AxisChangeEvent} 
     * to all registered listeners.
     *
     * @param font  the font (<code>null</code> not permitted).
     */
    public void setLabelFont(Font font) {
        if (font == null) {
            throw new IllegalArgumentException("Null 'font' argument.");
        }
        if (!this.labelFont.equals(font)) {
            this.labelFont = font;
            notifyListeners(new AxisChangeEvent(this));
        }
    }

    /**
     * Returns the color/shade used to draw the axis label.
     *
     * @return The paint (never <code>null</code>).
     */
    public Paint getLabelPaint() {
        return this.labelPaint;
    }

    /**
     * Sets the paint used to draw the axis label and sends an 
     * {@link AxisChangeEvent} to all registered listeners.
     *
     * @param paint  the paint (<code>null</code> not permitted).
     */
    public void setLabelPaint(Paint paint) {
        if (paint == null) {
            throw new IllegalArgumentException("Null 'paint' argument.");
        }
        this.labelPaint = paint;
        notifyListeners(new AxisChangeEvent(this));
    }

    /**
     * Returns the insets for the label (that is, the amount of blank space
     * that should be left around the label).
     *
     * @return The label insets (never <code>null</code>).
     */
    public RectangleInsets getLabelInsets() {
        return this.labelInsets;
    }

    /**
     * Sets the insets for the axis label, and sends an {@link AxisChangeEvent}
     * to all registered listeners.
     *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产91精品久久久久久久网曝门 | 无码av中文一区二区三区桃花岛| 高清在线成人网| 精品国产一区二区三区四区四| 男女性色大片免费观看一区二区 | 成人午夜视频免费看| 国产精品动漫网站| 91浏览器入口在线观看| 亚洲最新视频在线观看| 91精品久久久久久久91蜜桃| 久久99国产精品麻豆| 久久午夜羞羞影院免费观看| 成人小视频在线| 有坂深雪av一区二区精品| 91精品国产综合久久精品麻豆| 久久er精品视频| 国产亚洲一区二区在线观看| 99久久精品国产一区| 亚洲在线成人精品| 欧美一区二区三区在线看| 国产精品99久久久久久有的能看| 亚洲欧洲精品一区二区三区| 欧美日韩精品系列| 韩国v欧美v亚洲v日本v| 亚洲精选在线视频| 欧美一区二区观看视频| 成年人网站91| 亚洲免费观看在线观看| 日韩视频在线观看一区二区| 成人动漫在线一区| 日韩高清在线电影| 国产精品国产三级国产有无不卡| 欧美视频一区在线| 国产**成人网毛片九色| 午夜影院久久久| 国产婷婷一区二区| 欧美人动与zoxxxx乱| 懂色av一区二区三区免费观看| 亚洲图片欧美综合| 国产欧美日韩亚州综合| 欧美日韩国产经典色站一区二区三区 | 亚洲人妖av一区二区| 欧美精品第1页| 成人avav在线| 久久av老司机精品网站导航| 一区二区三区欧美亚洲| 国产视频一区在线观看| 91精品国产日韩91久久久久久| 成人免费观看男女羞羞视频| 麻豆精品国产91久久久久久| 一区二区在线看| 国产日产欧美一区二区视频| 4438亚洲最大| 欧美性生活久久| 91免费小视频| 国产不卡免费视频| 麻豆免费精品视频| 亚洲高清不卡在线观看| √…a在线天堂一区| 久久综合99re88久久爱| 欧美成人性福生活免费看| 欧美精选一区二区| 欧美亚洲国产一区在线观看网站 | 欧美亚洲综合另类| 不卡电影一区二区三区| 国产在线视视频有精品| 久久精品国产久精国产| 美女任你摸久久| 婷婷丁香激情综合| 五月婷婷久久综合| 亚洲成人你懂的| 亚洲一区二区视频| 亚洲一区二区三区自拍| 亚洲午夜影视影院在线观看| 一区二区视频在线看| 亚洲品质自拍视频网站| 亚洲免费高清视频在线| 亚洲靠逼com| 一区二区高清在线| 亚洲国产精品一区二区久久| 一区二区三区美女| 一区二区三区精密机械公司| 亚洲精品成人天堂一二三| 亚洲精品国产a| 亚洲一区二区三区免费视频| 天天操天天色综合| 美女一区二区视频| 国内精品久久久久影院色| 国产一区二区女| 国产福利一区在线| k8久久久一区二区三区| 91蝌蚪porny成人天涯| 91官网在线免费观看| 51精品视频一区二区三区| 欧美成人精品3d动漫h| 久久久久9999亚洲精品| 国产日韩精品视频一区| 日韩久久一区二区| 亚洲高清视频的网址| 理论电影国产精品| 国产999精品久久久久久绿帽| av电影天堂一区二区在线 | 欧美在线观看18| 91精品国产综合久久蜜臀| 久久夜色精品国产欧美乱极品| 国产日产欧美一区| 一区二区三区精品视频在线| 美女免费视频一区| 99re视频精品| 欧美疯狂做受xxxx富婆| 中文字幕综合网| 亚洲国产精品人人做人人爽| 久久99深爱久久99精品| 99久久国产综合精品色伊| 欧美日韩高清一区二区不卡| 欧美精品一区二| 成人免费一区二区三区在线观看| 亚洲成av人片在www色猫咪| 国产九色sp调教91| 在线国产亚洲欧美| 国产拍揄自揄精品视频麻豆 | 夜夜爽夜夜爽精品视频| 精品影视av免费| 91美女精品福利| 日韩三级视频在线看| 国产精品福利影院| 精品一区二区三区在线观看| 91在线porny国产在线看| 日韩一区二区在线看片| 中文字幕中文乱码欧美一区二区| 日韩电影免费在线观看网站| 91在线国内视频| 精品国产一二三区| 亚洲国产一区二区三区青草影视| 国产盗摄一区二区三区| 在线不卡a资源高清| 亚洲视频综合在线| 国产在线一区二区| 欧美顶级少妇做爰| 一区二区三区资源| 国产成人久久精品77777最新版本| 欧美日韩大陆在线| 亚洲欧美日韩系列| 成人av第一页| 国产色综合久久| 久久成人av少妇免费| 欧美日韩一区二区在线观看视频| 国产精品久久三| 精品一二线国产| 91精品啪在线观看国产60岁| 亚洲黄色性网站| 91无套直看片红桃| 欧美高清一级片在线观看| 久久99精品久久久| 日韩一区二区三区电影 | 91精品免费在线观看| 亚洲黄色性网站| 91猫先生在线| 亚洲日本一区二区三区| 成人教育av在线| 欧美激情一区二区三区在线| 国产成人小视频| 久久久噜噜噜久噜久久综合| 久久精品国产99| 日韩精品中文字幕一区| 免费在线成人网| 日韩欧美一二三四区| 久久精品国内一区二区三区| 欧美一区午夜视频在线观看 | 日产国产欧美视频一区精品| 欧美高清视频www夜色资源网| 午夜精品福利一区二区蜜股av| 日本电影欧美片| 一区二区三区在线观看欧美| 欧美色区777第一页| 亚洲高清久久久| 日韩情涩欧美日韩视频| 久久精品国产一区二区| 久久亚洲精精品中文字幕早川悠里| 卡一卡二国产精品| 国产欧美精品一区二区色综合 | 国产乱码精品1区2区3区| 国产人伦精品一区二区| 波波电影院一区二区三区| 中文字幕乱码久久午夜不卡| av动漫一区二区| 亚洲高清免费一级二级三级| 日韩一区二区三区电影在线观看| 国产中文字幕精品| 欧美极品aⅴ影院| 91亚洲精品乱码久久久久久蜜桃| 亚洲一区在线观看免费| 日韩一区二区视频| 国产高清视频一区| 亚洲精品欧美在线| 日韩区在线观看| 暴力调教一区二区三区| 亚洲成av人综合在线观看| 日韩欧美一级在线播放| 99re这里只有精品视频首页|