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

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

?? cewolfchartfactory.java

?? jfreechart標簽庫
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* ================================================================
 * Cewolf : Chart enabling Web Objects Framework
 * ================================================================
 *
 * Project Info:  http://cewolf.sourceforge.net
 * Project Lead:  Guido Laures (guido@laures.de);
 *
 * (C) Copyright 2002, by Guido Laures
 *
 * 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.
 */

package de.laures.cewolf.taglib;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.axis.CategoryAxis;
import org.jfree.chart.axis.DateAxis;
import org.jfree.chart.axis.NumberAxis;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.CombinedDomainXYPlot;
import org.jfree.chart.plot.CombinedRangeXYPlot;
import org.jfree.chart.plot.MeterPlot;
import org.jfree.chart.plot.Plot;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.XYPlot;
import org.jfree.chart.renderer.category.CategoryItemRenderer;
import org.jfree.chart.renderer.xy.XYItemRenderer;
import org.jfree.data.category.CategoryDataset;
import org.jfree.data.category.IntervalCategoryDataset;
import org.jfree.data.general.Dataset;
import org.jfree.data.general.PieDataset;
import org.jfree.data.general.ValueDataset;
import org.jfree.data.xy.IntervalXYDataset;
import org.jfree.data.xy.OHLCDataset;
import org.jfree.data.xy.WindDataset;
import org.jfree.data.xy.XYDataset;
import org.jfree.data.xy.XYZDataset;

import de.laures.cewolf.ChartValidationException;
import de.laures.cewolf.DatasetProduceException;

/**
 * Chart factory creates Jfreechart instances. To add a new factory use the
 * <code>
 * 		CewolfChartFactory.registerFactory(new CewolfChartFactory() {...});
 * </code>
 * method.
 *
 * @author  Guido Laures
 */
public abstract class CewolfChartFactory implements ChartConstants, AxisConstants, LayoutConstants {

    // chart type string
  protected String chartType;
  // map contains registered factories, (String) chartType->CewolfChartFactory mappings
  private static Map factories = new HashMap();

    /** Creates a new instance of ChartFactory */
  protected CewolfChartFactory(String chartType) {
      this.chartType = chartType;
  }

  /**
   * Callback when the chart instance to be created.
     * @param title The title of chart
     * @param xAxisLabel label on x axis
     * @param yAxisLabel label on y axis
     * @param data The dataset to create chart for
     * @return The newly created JFreeChart instance
     *
     * @throws IncompatibleDatasetException If the incoming data is not compatible with this factory
     */
    public abstract JFreeChart getChartInstance(String title, String xAxisLabel, String yAxisLabel, Dataset data) throws IncompatibleDatasetException;

    //////////////// static part ///////////////////////

  /**
   * Register a new chart factory instance.
   * @param factory The factory to register
   */
  public static void registerFactory(CewolfChartFactory factory) {
      factories.put(factory.chartType, factory);
  }

  private static final int getChartTypeConstant(String type) {
    final int res = ChartTypes.typeList.indexOf(type.toLowerCase());
    if (res < 0) {
      throw new RuntimeException("unsupported chart type " + type);
    }
    return res;
  }

  private static final int getLayoutConstant(String layout) {
    return LayoutTypes.typeList.indexOf(layout.toLowerCase());
  }
  
  static {
    // histogram chart type
    registerFactory(new CewolfChartFactory("histogram") {
	    public JFreeChart getChartInstance(String title, String xAxisLabel, String yAxisLabel, Dataset data) throws IncompatibleDatasetException {
	        check(data, IntervalXYDataset.class, this.chartType);
	        return ChartFactory.createHistogram(title, xAxisLabel, yAxisLabel, (IntervalXYDataset) data, PlotOrientation.VERTICAL, true, false, false);
	     }
    });
  }

  public static JFreeChart getChartInstance(String chartType, String title, String xAxisLabel, String yAxisLabel, Dataset data) throws ChartValidationException {
      // first check the dynamically registered chart types
      CewolfChartFactory factory = (CewolfChartFactory) factories.get(chartType);
      if (factory != null) {
          // custom factory found, use it
          return factory.getChartInstance(title, xAxisLabel, yAxisLabel, data);
      }

    switch (getChartTypeConstant(chartType)) {
      case XY :
        check(data, XYDataset.class, chartType);
        return ChartFactory.createXYLineChart(title, xAxisLabel, yAxisLabel, (XYDataset) data, PlotOrientation.VERTICAL, true, true, true);
      case PIE :
        check(data, PieDataset.class, chartType);
        return ChartFactory.createPieChart(title, (PieDataset) data, true, true, true);
      case AREA_XY :
        check(data, XYDataset.class, chartType);
        return ChartFactory.createXYAreaChart(title, xAxisLabel, yAxisLabel, (XYDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case SCATTER :
        check(data, XYDataset.class, chartType);
        return ChartFactory.createScatterPlot(title, xAxisLabel, yAxisLabel, (XYDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case AREA :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createAreaChart(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case HORIZONTAL_BAR :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createBarChart(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.HORIZONTAL, true, false, false);
      case HORIZONTAL_BAR_3D :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createBarChart3D(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.HORIZONTAL, true, false, false);
      case LINE :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createLineChart(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case STACKED_HORIZONTAL_BAR :
        check(data, CategoryDataset.class, chartType);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产在线观看| 久久99国产精品麻豆| 午夜av电影一区| 丝袜亚洲精品中文字幕一区| 极品瑜伽女神91| 欧美最猛性xxxxx直播| 日韩欧美高清一区| 夜夜精品视频一区二区| 丰满放荡岳乱妇91ww| 欧美丰满少妇xxxbbb| 亚洲欧美另类图片小说| 欧美群妇大交群中文字幕| 午夜成人免费电影| 在线视频欧美精品| 中文字幕一区在线观看视频| 欧美色老头old∨ideo| 欧美亚洲尤物久久| 中文字幕不卡在线| 国产一区二区三区免费在线观看| 欧美日韩精品一区二区三区| 中文字幕亚洲一区二区av在线| 国产一区二区看久久| 欧美zozozo| 麻豆91在线播放免费| 欧美一区二区在线观看| 天涯成人国产亚洲精品一区av| 色欧美88888久久久久久影院| 国产精品色眯眯| 成人性生交大合| 欧美国产视频在线| 五月激情综合网| 国产一区二区三区四区五区入口| 久久99久久久欧美国产| 69久久99精品久久久久婷婷| 亚洲一区二区综合| 欧洲一区在线电影| 亚洲成人一区二区| 欧美色图12p| 五月婷婷另类国产| 欧美精品aⅴ在线视频| 免费一级片91| 久久久久久麻豆| 东方aⅴ免费观看久久av| 国产精品伦理在线| 色综合天天做天天爱| 亚洲一区二区三区激情| 欧美疯狂性受xxxxx喷水图片| 奇米四色…亚洲| 国产日韩av一区| 色一情一伦一子一伦一区| 亚洲国产成人91porn| 欧美日韩高清一区二区三区| 欧美精品久久久久久久多人混战| 国产人成亚洲第一网站在线播放| 国产一区 二区| 国产日韩欧美综合一区| 国产福利一区在线观看| 久久久影院官网| 国产精品亚洲人在线观看| 久久久午夜电影| 国产91精品久久久久久久网曝门| 在线精品视频一区二区| 精品国产sm最大网站免费看| 视频一区免费在线观看| 在线播放日韩导航| 奇米影视一区二区三区小说| 日韩欧美123| 国产成人亚洲综合a∨婷婷| 国产午夜精品福利| 99久久国产综合精品女不卡| 国产精品成人在线观看| 一本久久a久久精品亚洲| 亚洲最大成人网4388xx| 在线中文字幕一区二区| 91麻豆精品国产自产在线观看一区| 欧美一区三区二区| 欧美性猛片aaaaaaa做受| 亚洲欧美日韩一区二区| 欧美亚州韩日在线看免费版国语版 | 精品人在线二区三区| 国产最新精品精品你懂的| 国产精品美女久久久久久久| 色综合久久综合网欧美综合网 | 欧美国产视频在线| 色嗨嗨av一区二区三区| 日本欧美一区二区| 欧美国产精品一区| 欧美日韩亚洲不卡| 国产麻豆精品theporn| 成人欧美一区二区三区小说| 欧美日韩成人一区| 国产传媒久久文化传媒| 亚洲成av人片在线观看无码| 国产精品美女久久久久av爽李琼| 偷拍与自拍一区| 欧美久久一二区| 精品一区二区成人精品| 亚洲人成在线播放网站岛国| 欧美电视剧在线看免费| 色综合久久综合| 国产乱码精品一区二区三| 久久久高清一区二区三区| 69精品人人人人| av一二三不卡影片| 蜜臀av一区二区在线观看| 亚洲欧美在线高清| 精品国产免费久久| 欧美特级限制片免费在线观看| 国产精品123| 日日摸夜夜添夜夜添国产精品| 国产精品久久久久久妇女6080| 欧美日韩一区在线| 91在线国内视频| 国产精品18久久久久久久久| 亚洲午夜免费福利视频| 亚洲国产成人av好男人在线观看| 欧美亚洲动漫精品| 中文久久乱码一区二区| 在线成人av网站| 欧美视频中文一区二区三区在线观看| 国产成人综合在线观看| 日本午夜精品视频在线观看| 亚洲激情欧美激情| 中文字幕欧美国产| 欧美变态tickle挠乳网站| 精品成人一区二区| 欧美一区二区三区精品| 欧美日韩视频一区二区| fc2成人免费人成在线观看播放| 国产在线播放一区| 麻豆成人综合网| 免费av网站大全久久| 日日夜夜一区二区| 亚洲国产精品一区二区久久 | 免费成人av在线| 亚洲一二三区在线观看| 喷白浆一区二区| 精品伊人久久久久7777人| 国产色产综合产在线视频| 一区二区三区不卡视频在线观看| 欧美男生操女生| 欧美日韩性生活| 欧美精品九九99久久| 欧美美女视频在线观看| 5858s免费视频成人| 欧美一区二视频| 欧美成人video| 日韩三级伦理片妻子的秘密按摩| 久久精品无码一区二区三区| 久久精品视频一区| 国产精品久久久久毛片软件| 中文在线资源观看网站视频免费不卡| 日本一区二区三区视频视频| 国产精品国产三级国产普通话蜜臀| 国产精品国产a| 一区二区三区欧美| 日本中文字幕一区| 天堂影院一区二区| 亚洲成av人影院| 国内精品视频666| 99久久免费视频.com| 国产成人精品午夜视频免费| 91精彩视频在线观看| 中文字幕欧美日韩一区| 国产视频一区在线观看| 国产精品三级av| 日本韩国一区二区| 欧美日韩电影在线播放| 日韩一区二区免费高清| 正在播放亚洲一区| 中文天堂在线一区| 午夜亚洲国产au精品一区二区| 精品一区二区三区久久| 懂色av一区二区三区蜜臀| 日本精品一区二区三区高清 | 欧美色图激情小说| 欧美mv和日韩mv国产网站| 国产午夜三级一区二区三| 久久久久久久久一| 五月婷婷激情综合网| 久久99精品国产.久久久久久| 91精品国产欧美日韩| 欧美特级限制片免费在线观看| 欧美大黄免费观看| 亚洲黄色录像片| 国产主播一区二区三区| 欧美三级欧美一级| 中文字幕国产一区| 老司机精品视频线观看86| 91麻豆文化传媒在线观看| 精品成人免费观看| 亚洲综合小说图片| 成人午夜精品在线| 欧美一级高清片在线观看| 欧美—级在线免费片| 国产精品久久网站| 成人激情综合网站| 久久久精品tv| 青青草国产成人99久久| 在线观看欧美日本|