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

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

?? periodaxislabelinfo.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
字號:
/* ===========================================================
 * 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.]
 *
 * ------------------------
 * PeriodAxisLabelInfo.java
 * ------------------------
 * (C) Copyright 2004, 2005, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: PeriodAxisLabelInfo.java,v 1.6.2.1 2005/10/25 20:37:34 mungady Exp $
 *
 * Changes
 * -------
 * 01-Jun-2004 : Version 1 (DG);
 * 23-Feb-2005 : Replaced Spacer with RectangleInsets (DG);
 * 01-Mar-2005 : Modified constructors to accept DateFormat (DG);
 * 20-May-2005 : Added default constants and null argument checks in the 
 *               constructor (DG);
 * 
 */

package org.jfree.chart.axis;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.Paint;
import java.awt.Stroke;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.lang.reflect.Constructor;
import java.text.DateFormat;
import java.util.Date;
import java.util.TimeZone;

import org.jfree.data.time.RegularTimePeriod;
import org.jfree.io.SerialUtilities;
import org.jfree.ui.RectangleInsets;

/**
 * A record that contains information for one "band" of date labels in 
 * a {@link PeriodAxis}.
 */
public class PeriodAxisLabelInfo implements Cloneable, Serializable {
    
    // TODO: this class is mostly immutable, so implementing Cloneable isn't
    // really necessary.  But there is still a hole in that you can get the
    // dateFormat and modify it.  We could return a copy, but that would slow
    // things down. Needs resolving.
    
    /** For serialization. */
    private static final long serialVersionUID = 5710451740920277357L;
    
    /** The default insets. */
    public static final RectangleInsets DEFAULT_INSETS 
        = new RectangleInsets(2, 2, 2, 2);
    
    /** The default font. */
    public static final Font DEFAULT_FONT 
        = new Font("SansSerif", Font.PLAIN, 10);
    
    /** The default label paint. */
    public static final Paint DEFAULT_LABEL_PAINT = Color.black;
    
    /** The default divider stroke. */
    public static final Stroke DEFAULT_DIVIDER_STROKE = new BasicStroke(0.5f);
    
    /** The default divider paint. */
    public static final Paint DEFAULT_DIVIDER_PAINT = Color.gray;

    /** The subclass of {@link RegularTimePeriod} to use for this band. */
    private Class periodClass;
    
    /** Controls the gaps around the band. */
    private RectangleInsets padding;
    
    /** The date formatter. */
    private DateFormat dateFormat;
    
    /** The label font. */
    private Font labelFont;
    
    /** The label paint. */
    private transient Paint labelPaint;
    
    /** A flag that controls whether or not dividers are visible. */
    private boolean drawDividers;
    
    /** The stroke used to draw the dividers. */
    private transient Stroke dividerStroke;
    
    /** The paint used to draw the dividers. */
    private transient Paint dividerPaint;
        
    /**
     * Creates a new instance.
     * 
     * @param periodClass  the subclass of {@link RegularTimePeriod} to use 
     *                     (<code>null</code> not permitted).
     * @param dateFormat  the date format (<code>null</code> not permitted).
     */
    public PeriodAxisLabelInfo(Class periodClass, DateFormat dateFormat) {
        this(
            periodClass, dateFormat, DEFAULT_INSETS, DEFAULT_FONT, 
            DEFAULT_LABEL_PAINT, true, DEFAULT_DIVIDER_STROKE, 
            DEFAULT_DIVIDER_PAINT
        );
    }
    
    /**
     * Creates a new instance.
     * 
     * @param periodClass  the subclass of {@link RegularTimePeriod} to use
     *                     (<code>null</code> not permitted).
     * @param dateFormat  the date format (<code>null</code> not permitted).
     * @param padding  controls the space around the band (<code>null</code> 
     *                 not permitted).
     * @param labelFont  the label font (<code>null</code> not permitted).
     * @param labelPaint  the label paint (<code>null</code> not permitted).
     * @param drawDividers  a flag that controls whether dividers are drawn.
     * @param dividerStroke  the stroke used to draw the dividers 
     *                       (<code>null</code> not permitted).
     * @param dividerPaint  the paint used to draw the dividers 
     *                      (<code>null</code> not permitted).
     */
    public PeriodAxisLabelInfo(Class periodClass, DateFormat dateFormat, 
                               RectangleInsets padding,
                               Font labelFont, Paint labelPaint, 
                               boolean drawDividers, Stroke dividerStroke, 
                               Paint dividerPaint) {
        if (periodClass == null) {
            throw new IllegalArgumentException("Null 'periodClass' argument.");   
        }
        if (dateFormat == null) {
            throw new IllegalArgumentException("Null 'dateFormat' argument.");   
        }
        if (padding == null) {
            throw new IllegalArgumentException("Null 'padding' argument.");   
        }
        if (labelFont == null) {
            throw new IllegalArgumentException("Null 'labelFont' argument.");   
        }
        if (labelPaint == null) {
            throw new IllegalArgumentException("Null 'labelPaint' argument.");   
        }
        if (dividerStroke == null) {
            throw new IllegalArgumentException("Null 'dividerStroke' argument.");   
        }
        if (dividerPaint == null) {
            throw new IllegalArgumentException("Null 'dividerPaint' argument.");   
        }
        this.periodClass = periodClass;
        this.dateFormat = dateFormat;
        this.padding = padding;
        this.labelFont = labelFont;
        this.labelPaint = labelPaint;
        this.drawDividers = drawDividers;
        this.dividerStroke = dividerStroke;
        this.dividerPaint = dividerPaint;
    }
    
    /**
     * Returns the subclass of {@link RegularTimePeriod} that should be used 
     * to generate the date labels.
     * 
     * @return The class.
     */
    public Class getPeriodClass() {
        return this.periodClass;   
    }
    
    /**
     * Returns the date formatter.
     * 
     * @return The date formatter (never <code>null</code>).
     */
    public DateFormat getDateFormat() {
        return this.dateFormat;   
    }
    
    /**
     * Returns the padding for the band.
     * 
     * @return The padding.
     */
    public RectangleInsets getPadding() {
        return this.padding;   
    }
    
    /**
     * Returns the label font.
     * 
     * @return The label font (never <code>null</code>).
     */
    public Font getLabelFont() {
        return this.labelFont;   
    }
    
    /**
     * Returns the label paint.
     * 
     * @return The label paint.
     */
    public Paint getLabelPaint() {
        return this.labelPaint;   
    }
    
    /**
     * Returns a flag that controls whether or not dividers are drawn.
     * 
     * @return A flag.
     */
    public boolean getDrawDividers() {
        return this.drawDividers;   
    }
    
    /**
     * Returns the stroke used to draw the dividers.
     * 
     * @return The stroke.
     */
    public Stroke getDividerStroke() {
        return this.dividerStroke;   
    }
    
    /**
     * Returns the paint used to draw the dividers.
     * 
     * @return The paint.
     */
    public Paint getDividerPaint() {
        return this.dividerPaint;   
    }
    
    /**
     * Creates a time period that includes the specified millisecond, assuming
     * the given time zone.
     * 
     * @param millisecond  the time.
     * @param zone  the time zone.
     * 
     * @return The time period.
     */
    public RegularTimePeriod createInstance(Date millisecond, TimeZone zone) {
        RegularTimePeriod result = null;
        try {
            Constructor c = this.periodClass.getDeclaredConstructor(
                new Class[] {Date.class, TimeZone.class}
            );
            result = (RegularTimePeriod) c.newInstance(
                new Object[] {millisecond, zone}
            );   
        }
        catch (Exception e) {
            // do nothing            
        }
        return result;  
    }

    /**
     * Tests this object for equality with an arbitrary object.
     * 
     * @param obj  the object to test against (<code>null</code> permitted).
     * 
     * @return A boolean.
     */
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;   
        }
        if (obj instanceof PeriodAxisLabelInfo) {
            PeriodAxisLabelInfo info = (PeriodAxisLabelInfo) obj;
            if (!info.periodClass.equals(this.periodClass)) {
                return false;   
            }
            if (!info.dateFormat.equals(this.dateFormat)) {
                return false;   
            }
            if (!info.padding.equals(this.padding)) {
                return false;   
            }
            if (!info.labelFont.equals(this.labelFont)) {
                return false;
            }
            if (!info.labelPaint.equals(this.labelPaint)) {
                return false;   
            }
            if (info.drawDividers != this.drawDividers) {
                return false;   
            }
            if (!info.dividerStroke.equals(this.dividerStroke)) {
                return false;   
            }
            if (!info.dividerPaint.equals(this.dividerPaint)) {
                return false;   
            }
            return true;
        }
        return false;
    }
    
    /**
     * Returns a hash code for this object.
     * 
     * @return A hash code.
     */
    public int hashCode() {
        int result = 41;
        result = 37 * this.periodClass.hashCode();
        result = 37 * this.dateFormat.hashCode();
        return result;
    }
    
    /**
     * Returns a clone of the object.
     * 
     * @return A clone.
     * 
     * @throws CloneNotSupportedException if cloning is not supported.
     */
    public Object clone() throws CloneNotSupportedException {
        Object clone = (PeriodAxisLabelInfo) super.clone();
        return clone;
    }
    
    /**
     * Provides serialization support.
     *
     * @param stream  the output stream.
     *
     * @throws IOException  if there is an I/O error.
     */
    private void writeObject(ObjectOutputStream stream) throws IOException {
        stream.defaultWriteObject();
        SerialUtilities.writePaint(this.labelPaint, stream);
        SerialUtilities.writeStroke(this.dividerStroke, stream);
        SerialUtilities.writePaint(this.dividerPaint, stream);
    }

    /**
     * Provides serialization support.
     *
     * @param stream  the input stream.
     *
     * @throws IOException  if there is an I/O error.
     * @throws ClassNotFoundException  if there is a classpath problem.
     */
    private void readObject(ObjectInputStream stream) 
        throws IOException, ClassNotFoundException {
        stream.defaultReadObject();
        this.labelPaint = SerialUtilities.readPaint(stream);
        this.dividerStroke = SerialUtilities.readStroke(stream);
        this.dividerPaint = SerialUtilities.readPaint(stream);
    }
   
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩av午夜在线观看| 1024成人网| 欧美日韩大陆一区二区| 日本高清成人免费播放| 色综合欧美在线| 欧美在线观看一区二区| 精品污污网站免费看| 欧美性videosxxxxx| 777久久久精品| 欧美一区二区精品久久911| 欧美变态tickle挠乳网站| 精品电影一区二区| 欧美激情一区二区在线| 国产精品三级视频| 一区二区三区在线免费视频| 一区二区免费看| 日韩成人免费电影| 国内成人精品2018免费看| 成人免费观看视频| 在线观看av一区二区| 欧美一区二区三区在线观看视频| 日韩午夜激情av| 国产色一区二区| 亚洲一区在线电影| 美腿丝袜亚洲三区| 成人午夜又粗又硬又大| 欧美主播一区二区三区| 欧美大片在线观看一区二区| 中文成人综合网| 亚洲国产日韩在线一区模特| 久久超级碰视频| av电影一区二区| 欧美一级二级在线观看| 国产日韩av一区二区| 亚洲午夜久久久久| 国产69精品一区二区亚洲孕妇| 一本在线高清不卡dvd| 欧美电视剧在线观看完整版| 亚洲欧洲成人自拍| 激情久久久久久久久久久久久久久久| 风间由美性色一区二区三区| 欧美日本在线一区| 国产精品色呦呦| 狠狠色狠狠色综合系列| 91精彩视频在线| 国产精品久久久久久久第一福利 | 成人午夜免费电影| 欧美视频自拍偷拍| 亚洲欧洲国产专区| 国产精品中文有码| 欧美一区二区网站| 亚洲一区二区3| 99久久99久久精品免费看蜜桃| 3d动漫精品啪啪1区2区免费| 一区在线播放视频| 国产91露脸合集magnet| 欧美白人最猛性xxxxx69交| 久久成人免费日本黄色| 欧美日韩精品欧美日韩精品| 欧美国产精品一区二区三区| 卡一卡二国产精品 | 91精品免费观看| 亚洲一区二三区| 91视频在线观看| 欧美高清在线一区二区| 黄页网站大全一区二区| 欧美成人综合网站| 日韩黄色小视频| 51精品国自产在线| 天天影视色香欲综合网老头| 91官网在线免费观看| 亚洲精品国产视频| 一本大道久久精品懂色aⅴ| 中文字幕永久在线不卡| av色综合久久天堂av综合| 国产精品三级av| 91年精品国产| 一区二区免费在线播放| 欧美日韩中字一区| 蜜臀久久久久久久| 日韩精品影音先锋| 国产精品一区二区三区网站| 国产香蕉久久精品综合网| 风间由美性色一区二区三区| 国产精品丝袜久久久久久app| 成人视屏免费看| 亚洲欧美色图小说| 在线视频一区二区免费| 五月综合激情网| 日韩一区二区不卡| 国产精品一区在线| 亚洲色图色小说| 欧美日韩国产首页| 久久精品99国产精品日本| 国产午夜亚洲精品理论片色戒 | 正在播放亚洲一区| 国产在线精品一区二区| 国产精品久久久久久久久免费相片 | 青青草成人在线观看| 精品国产髙清在线看国产毛片| 国产精品一区二区男女羞羞无遮挡| 久久久久久免费网| 日本丰满少妇一区二区三区| 日韩av二区在线播放| 久久久九九九九| 欧美吞精做爰啪啪高潮| 久久精品国产亚洲5555| 日韩毛片高清在线播放| 91精品国产色综合久久不卡蜜臀 | 成人欧美一区二区三区| 777午夜精品免费视频| 国产成人免费xxxxxxxx| 亚洲综合色视频| 久久久不卡影院| 欧美视频精品在线观看| 国产成人高清视频| 韩国女主播成人在线观看| 亚洲欧美日韩电影| 精品国产一区二区三区av性色| aaa欧美大片| 精品一区二区三区影院在线午夜| 国产精品不卡在线观看| 日韩一区二区电影网| 欧美亚洲禁片免费| 成人h动漫精品一区二| 精品一区二区三区av| 亚洲成av人片在www色猫咪| 国产精品人妖ts系列视频| 欧美一区二区三区在| 欧美日韩免费在线视频| 91丝袜美腿高跟国产极品老师| 久久国产精品99精品国产| 亚洲无人区一区| 一区二区免费视频| 亚洲日本在线看| 中文av一区特黄| 久久日韩粉嫩一区二区三区| 3d动漫精品啪啪| 欧美区视频在线观看| 在线免费观看视频一区| 99久久国产综合精品女不卡 | 国产精品乱码一区二区三区软件| 日韩欧美国产系列| 欧美大黄免费观看| 欧美一级日韩免费不卡| 欧美一区二区福利视频| 欧美精品日韩综合在线| 欧美亚洲一区三区| 欧美亚洲国产一卡| 欧美在线一二三四区| 欧美综合一区二区| 欧美色图片你懂的| 在线精品视频一区二区| 在线免费一区三区| 欧美性高清videossexo| 欧美视频在线一区| 91精品国产手机| 精品国产一区二区国模嫣然| 精品欧美乱码久久久久久1区2区| 日韩一区二区三免费高清| 欧美一级xxx| 日韩女优视频免费观看| 久久久久久一级片| 亚洲欧美在线另类| 一区二区三区久久| 午夜久久电影网| 麻豆精品视频在线| 国产成人精品aa毛片| 97成人超碰视| 欧美群妇大交群中文字幕| 精品久久久久香蕉网| 亚洲国产精品精华液2区45| 国产精品久久久久毛片软件| 一区二区在线观看免费视频播放| 午夜av一区二区三区| 国产中文字幕一区| av爱爱亚洲一区| 欧美精品在线观看一区二区| 欧美mv日韩mv国产| 国产精品国产三级国产普通话99 | 成人免费电影视频| 91黄视频在线| 日韩欧美亚洲一区二区| 国产精品久久久久桃色tv| 亚洲电影你懂得| 国产盗摄女厕一区二区三区| 色综合色狠狠综合色| 欧美大度的电影原声| 成人免费小视频| 日本不卡视频在线观看| av中文一区二区三区| 欧美精品乱码久久久久久| 中国av一区二区三区| 视频在线观看国产精品| 成人激情黄色小说| 欧美一级久久久| 亚洲综合色丁香婷婷六月图片| 国产在线观看一区二区| 欧美午夜精品久久久久久超碰| 久久久久久一二三区|