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

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

?? legendtitle.java

?? 制作圖表的好工具
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* ===========================================================
 * 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.]
 * 
 * ----------------
 * LegendTitle.java
 * ----------------
 * (C) Copyright 2002-2005, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Pierre-Marie Le Biot;
 *
 * $Id: LegendTitle.java,v 1.20.2.5 2005/10/25 20:58:34 mungady Exp $
 *
 * Changes
 * -------
 * 25-Nov-2004 : First working version (DG);
 * 11-Jan-2005 : Removed deprecated code in preparation for 1.0.0 release (DG);
 * 08-Feb-2005 : Updated for changes in RectangleConstraint class (DG);
 * 11-Feb-2005 : Implemented PublicCloneable (DG);
 * 23-Feb-2005 : Replaced chart reference with LegendItemSource (DG);
 * 16-Mar-2005 : Added itemFont attribute (DG);
 * 17-Mar-2005 : Fixed missing fillShape setting (DG);
 * 20-Apr-2005 : Added new draw() method (DG);
 * 03-May-2005 : Modified equals() method to ignore sources (DG);
 * 13-May-2005 : Added settings for legend item label and graphic padding (DG);
 * 09-Jun-2005 : Fixed serialization bug (DG);
 * 01-Sep-2005 : Added itemPaint attribute (PMLB);
 * 
 */

package org.jfree.chart.title;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

import org.jfree.chart.LegendItem;
import org.jfree.chart.LegendItemCollection;
import org.jfree.chart.LegendItemSource;
import org.jfree.chart.block.Arrangement;
import org.jfree.chart.block.Block;
import org.jfree.chart.block.BlockContainer;
import org.jfree.chart.block.BorderArrangement;
import org.jfree.chart.block.CenterArrangement;
import org.jfree.chart.block.ColumnArrangement;
import org.jfree.chart.block.FlowArrangement;
import org.jfree.chart.block.LabelBlock;
import org.jfree.chart.block.RectangleConstraint;
import org.jfree.chart.event.TitleChangeEvent;
import org.jfree.io.SerialUtilities;
import org.jfree.ui.RectangleAnchor;
import org.jfree.ui.RectangleEdge;
import org.jfree.ui.RectangleInsets;
import org.jfree.ui.Size2D;
import org.jfree.util.PaintUtilities;
import org.jfree.util.PublicCloneable;

/**
 * A chart title that displays a legend for the data in the chart.
 * <P>
 * The title can be populated with legend items manually, or you can assign a
 * reference to the plot, in which case the legend items will be automatically
 * created to match the dataset(s).
 */
public class LegendTitle extends Title 
                         implements Cloneable, PublicCloneable, Serializable {

    /** For serialization. */
    private static final long serialVersionUID = 2644010518533854633L;
    
    /** The default item font. */
    public static final Font DEFAULT_ITEM_FONT 
        = new Font("SansSerif", Font.PLAIN, 12);

    /** The default item paint. */
    public static final Paint DEFAULT_ITEM_PAINT = Color.black;

    /** The sources for legend items. */
    private LegendItemSource[] sources;
    
    /** The background paint (possibly <code>null</code>). */
    private transient Paint backgroundPaint;
    
    /** The edge for the legend item graphic relative to the text. */
    private RectangleEdge legendItemGraphicEdge;
    
    /** The anchor point for the legend item graphic. */
    private RectangleAnchor legendItemGraphicAnchor;
    
    /** The legend item graphic location. */
    private RectangleAnchor legendItemGraphicLocation;
    
    /** The padding for the legend item graphic. */
    private RectangleInsets legendItemGraphicPadding;

    /** The item font. */
    private Font itemFont;
    
    /** The item paint. */
    private transient Paint itemPaint;

    /** The padding for the item labels. */
    private RectangleInsets itemLabelPadding;

    /**
     * A container that holds and displays the legend items.
     */
    private BlockContainer items;
    
    private Arrangement hLayout;
    
    private Arrangement vLayout;
    
    /** 
     * An optional container for wrapping the legend items (allows for adding
     * a title or other text to the legend). 
     */
    private BlockContainer wrapper;

    /**
     * Constructs a new (empty) legend for the specified source.
     * 
     * @param source  the source.
     */
    public LegendTitle(LegendItemSource source) {
        this(source, new FlowArrangement(), new ColumnArrangement());
    }
    
    /**
     * Creates a new legend title with the specified arrangement.
     * 
     * @param source  the source.
     * @param hLayout  the horizontal item arrangement (<code>null</code> not
     *                 permitted).
     * @param vLayout  the vertical item arrangement (<code>null</code> not
     *                 permitted).
     */
    public LegendTitle(LegendItemSource source, 
                       Arrangement hLayout, Arrangement vLayout) {
        this.sources = new LegendItemSource[] {source};
        this.items = new BlockContainer(hLayout);
        this.hLayout = hLayout;
        this.vLayout = vLayout;
        this.backgroundPaint = null;  
        this.legendItemGraphicEdge = RectangleEdge.LEFT;
        this.legendItemGraphicAnchor = RectangleAnchor.CENTER;
        this.legendItemGraphicLocation = RectangleAnchor.CENTER;
        this.legendItemGraphicPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
        this.itemFont = DEFAULT_ITEM_FONT;
        this.itemPaint = DEFAULT_ITEM_PAINT;
        this.itemLabelPadding = new RectangleInsets(2.0, 2.0, 2.0, 2.0);
    }
    
    /**
     * Returns the legend item sources.
     * 
     * @return The sources.
     */
    public LegendItemSource[] getSources() {
        return this.sources;   
    }
    
    /**
     * Sets the legend item sources and sends a {@link TitleChangeEvent} to
     * all registered listeners.
     * 
     * @param sources  the sources (<code>null</code> not permitted).
     */
    public void setSources(LegendItemSource[] sources) {
        if (sources == null) {
            throw new IllegalArgumentException("Null 'sources' argument.");   
        }
        this.sources = sources;
        notifyListeners(new TitleChangeEvent(this));
    }

    /**
     * Returns the background paint.
     * 
     * @return The background paint (possibly <code>null</code>).
     */
    public Paint getBackgroundPaint() {
        return this.backgroundPaint;   
    }
    
    /**
     * Sets the background paint for the legend and sends a 
     * {@link TitleChangeEvent} to all registered listeners.
     * 
     * @param paint  the paint (<code>null</code> permitted).
     */
    public void setBackgroundPaint(Paint paint) {
        this.backgroundPaint = paint;   
        notifyListeners(new TitleChangeEvent(this));
    }
    
    /**
     * Returns the location of the shape within each legend item. 
     * 
     * @return The location (never <code>null</code>).
     */
    public RectangleEdge getLegendItemGraphicEdge() {
        return this.legendItemGraphicEdge;
    }
    
    /**
     * Sets the location of the shape within each legend item.
     * 
     * @param edge  the edge (<code>null</code> not permitted).
     */
    public void setLegendItemGraphicEdge(RectangleEdge edge) {
        if (edge == null) {
            throw new IllegalArgumentException("Null 'edge' argument.");
        }
        this.legendItemGraphicEdge = edge;
        notifyListeners(new TitleChangeEvent(this));
    }
    
    /**
     * Returns the legend item graphic anchor.
     * 
     * @return The graphic anchor (never <code>null</code>).
     */
    public RectangleAnchor getLegendItemGraphicAnchor() {
        return this.legendItemGraphicAnchor;
    }
    
    /**
     * Sets the anchor point used for the graphic in each legend item.
     * 
     * @param anchor  the anchor point (<code>null</code> not permitted).
     */
    public void setLegendItemGraphicAnchor(RectangleAnchor anchor) {
        if (anchor == null) {
            throw new IllegalArgumentException("Null 'anchor' point.");
        }
        this.legendItemGraphicAnchor = anchor;
    }
    
    /**
     * Returns the legend item graphic location.
     * 
     * @return The location (never <code>null</code>).
     */
    public RectangleAnchor getLegendItemGraphicLocation() {
        return this.legendItemGraphicLocation;
    }
    
    /**
     * Sets the legend item graphic location.
     * 
     * @param anchor  the anchor (<code>null</code> not permitted).
     */
    public void setLegendItemGraphicLocation(RectangleAnchor anchor) {
        this.legendItemGraphicLocation = anchor;
    }
    
    /**
     * Returns the padding that will be applied to each item graphic.
     * 
     * @return The padding (never <code>null</code>).
     */
    public RectangleInsets getLegendItemGraphicPadding() {
        return this.legendItemGraphicPadding;    
    }
    
    /**
     * Sets the padding that will be applied to each item graphic in the 
     * legend and sends a {@link TitleChangeEvent} to all registered listeners.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美激情在线看| 日本亚洲电影天堂| 石原莉奈一区二区三区在线观看| 久久国产精品第一页| 白白色 亚洲乱淫| 欧美一二三四区在线| 亚洲人成在线观看一区二区| 久久精品国产999大香线蕉| 91在线免费播放| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 国产成人精品亚洲午夜麻豆| 欧美日韩国产精品自在自线| 亚洲女子a中天字幕| 国产成人免费视频网站高清观看视频 | 亚洲欧美区自拍先锋| 国产美女视频91| 日韩一区二区三区四区五区六区| 一区二区国产盗摄色噜噜| av中文字幕一区| 国产视频一区在线播放| 国产一区二区三区久久久 | 91九色最新地址| 国产精品久线在线观看| 成人污视频在线观看| 久久久美女毛片| 国产高清精品在线| 国产午夜精品一区二区三区嫩草 | 97se亚洲国产综合自在线| 欧美国产乱子伦| 国产精品99久久久久久似苏梦涵| 精品久久久久久久久久久院品网| 久久国产精品99久久人人澡| 精品欧美乱码久久久久久| 久久er99精品| 国产视频一区在线播放| 懂色中文一区二区在线播放| 国产精品久久99| 色悠悠久久综合| 亚洲综合久久久| 3atv一区二区三区| 另类综合日韩欧美亚洲| 337p粉嫩大胆色噜噜噜噜亚洲 | 欧美激情中文不卡| 94-欧美-setu| 日韩影视精彩在线| 日韩免费一区二区三区在线播放| 国产美女娇喘av呻吟久久| 国产亚洲精品超碰| 色综合久久精品| 日日噜噜夜夜狠狠视频欧美人 | 亚洲国产精品成人综合| 99久久久免费精品国产一区二区| 亚洲国产三级在线| 精品国产精品网麻豆系列| 国产剧情av麻豆香蕉精品| 日韩一区在线免费观看| 欧美无砖专区一中文字| 韩国精品久久久| 中文字幕亚洲精品在线观看| 在线观看中文字幕不卡| 国内精品免费**视频| 国产精品剧情在线亚洲| 欧美久久久久久久久久| 国产福利一区二区| 亚洲最大成人网4388xx| 精品盗摄一区二区三区| 一本一道久久a久久精品综合蜜臀| 日韩精品电影在线| 中日韩av电影| 日韩欧美一区二区久久婷婷| 懂色一区二区三区免费观看 | 7777精品久久久大香线蕉| 国产成人在线色| 五月天精品一区二区三区| 国产亚洲精品中文字幕| 欧美三级乱人伦电影| 久久97超碰国产精品超碰| 国产精品日韩成人| 欧美猛男gaygay网站| 国产一区高清在线| 亚洲午夜精品17c| 欧美国产激情二区三区| 欧美肥妇毛茸茸| 91在线观看污| 激情丁香综合五月| 亚洲6080在线| 亚洲视频在线一区观看| 久久先锋影音av| 91精品婷婷国产综合久久竹菊| 91美女精品福利| 成人精品电影在线观看| 麻豆精品国产91久久久久久| 亚洲影视在线观看| 亚洲色图欧美偷拍| 国产精品伦一区| 国产午夜久久久久| 久久久www免费人成精品| 制服丝袜一区二区三区| 欧美日韩免费观看一区三区| 91丝袜呻吟高潮美腿白嫩在线观看| 黄页视频在线91| 精品一区二区三区视频在线观看| 视频在线观看国产精品| 一区二区三区在线观看网站| 国产精品美女一区二区| 国产欧美日韩另类一区| 欧美成va人片在线观看| 日韩欧美在线一区二区三区| 欧美一区二视频| 欧美一级二级三级蜜桃| 欧美亚洲丝袜传媒另类| 在线观看av一区| 欧美色图一区二区三区| 欧美日韩亚洲综合在线 | 欧美撒尿777hd撒尿| 91丨国产丨九色丨pron| 成人午夜视频免费看| 成人美女在线观看| 96av麻豆蜜桃一区二区| 色爱区综合激月婷婷| 欧美在线观看视频一区二区| 欧美日韩亚洲高清一区二区| 欧美美女直播网站| 欧美mv日韩mv国产网站app| 久久综合999| 国产精品视频免费| 一区二区不卡在线视频 午夜欧美不卡在| 中文字幕字幕中文在线中不卡视频| 亚洲色图欧洲色图婷婷| 亚洲mv大片欧洲mv大片精品| 美日韩一级片在线观看| 国产精品1区2区| 99热国产精品| 欧美日本一区二区| 欧美大片日本大片免费观看| 久久久五月婷婷| 亚洲欧美日韩人成在线播放| 亚州成人在线电影| 国产一区二区视频在线| 92国产精品观看| 91精品国产综合久久久蜜臀图片| 2021中文字幕一区亚洲| 亚洲婷婷国产精品电影人久久| 天天综合网 天天综合色| 国产精品一区二区x88av| 色综合天天综合网天天看片| 欧美日韩国产综合一区二区 | 欧美成人精精品一区二区频| 国产欧美一区二区精品久导航| 亚洲精品欧美激情| 理论片日本一区| 91色视频在线| 26uuu亚洲综合色| 午夜伊人狠狠久久| 高清国产一区二区三区| 欧美无砖砖区免费| 国产精品久久久一区麻豆最新章节| 五月婷婷另类国产| av中文字幕在线不卡| 日韩精品一区二区三区swag| 亚洲婷婷国产精品电影人久久| 久久超碰97中文字幕| 在线中文字幕一区| 欧美极品美女视频| 蜜桃久久久久久| 欧美性受xxxx| 综合色天天鬼久久鬼色| 精品一区二区三区免费视频| 欧美三级乱人伦电影| 亚洲欧美自拍偷拍| 国产成人精品影视| 欧美tickling网站挠脚心| 亚洲永久精品国产| 色婷婷狠狠综合| 日韩一区日韩二区| 成人的网站免费观看| 久久久91精品国产一区二区三区| 石原莉奈一区二区三区在线观看| 日本乱人伦aⅴ精品| 国产精品乱码人人做人人爱| 蜜桃一区二区三区在线观看| 欧美日韩和欧美的一区二区| 一区二区三区欧美视频| 色综合天天天天做夜夜夜夜做| 国产区在线观看成人精品| 久久99精品国产91久久来源| 欧美一区二区三级| 五月婷婷欧美视频| 欧美日韩视频在线一区二区| 樱花草国产18久久久久| 色网站国产精品| 亚洲图片你懂的| 91视频免费看| 亚洲精品v日韩精品| 在线免费观看日本一区| 亚洲成av人片观看| 欧美乱妇20p| 美女视频黄频大全不卡视频在线播放| 4438成人网| 久久精品国产在热久久|