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

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

?? cewolfchartfactory.java

?? jfreechart標簽庫
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
        return ChartFactory.createStackedBarChart(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.HORIZONTAL, true, false, false);
      case STACKED_VERTICAL_BAR :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createStackedBarChart(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case STACKED_VERTICAL_BAR_3D :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createStackedBarChart3D(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case VERTICAL_BAR :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createBarChart(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case VERTICAL_BAR_3D :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createBarChart3D(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case TIME_SERIES :
        check(data, XYDataset.class, chartType);
        return ChartFactory.createTimeSeriesChart(title, xAxisLabel, yAxisLabel, (XYDataset) data, true, false, false);
      case CANDLE_STICK :
        check(data, OHLCDataset.class, chartType);
        return ChartFactory.createCandlestickChart(title, xAxisLabel, yAxisLabel, (OHLCDataset) data, true);
      case HIGH_LOW :
        check(data, OHLCDataset.class, chartType);
        return ChartFactory.createHighLowChart(title, xAxisLabel, yAxisLabel, (OHLCDataset) data, true);
      case GANTT :
        check(data, IntervalCategoryDataset.class, chartType);
        return ChartFactory.createGanttChart(title, xAxisLabel, yAxisLabel, (IntervalCategoryDataset) data, true, false, false);
      case WIND :
        check(data, WindDataset.class, chartType);
        return ChartFactory.createWindPlot(title, xAxisLabel, yAxisLabel, (WindDataset) data, true, false, false);
      //case SIGNAL :
      //  check(data, SignalsDataset.class, chartType);
      //  return ChartFactory.createSignalChart(title, xAxisLabel, yAxisLabel, (SignalsDataset) data, true);
      case VERRTICAL_XY_BAR :
        check(data, IntervalXYDataset.class, chartType);
        return ChartFactory.createXYBarChart(title, xAxisLabel, true,yAxisLabel, (IntervalXYDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case PIE_3D :
        check(data, PieDataset.class, chartType);
        return ChartFactory.createPieChart3D(title, (PieDataset) data, true, false, false);
      case METER :
        check(data, ValueDataset.class, chartType);
        MeterPlot plot = new MeterPlot((ValueDataset) data);
        JFreeChart chart = new JFreeChart(title, plot);
        return chart;
      case STACKED_AREA :
        check(data, CategoryDataset.class, chartType);
        return ChartFactory.createStackedAreaChart(title, xAxisLabel, yAxisLabel, (CategoryDataset) data, PlotOrientation.VERTICAL, true, false, false);
      case BUBBLE :
        check(data, XYZDataset.class, chartType);
        return ChartFactory.createBubbleChart(title, xAxisLabel, yAxisLabel, (XYZDataset) data, PlotOrientation.VERTICAL, true, false, false);
      default :
        throw new UnsupportedChartTypeException(chartType + " is not supported.");
    }
  }

    public static JFreeChart getOverlaidChartInstance(String chartType, String title, String xAxisLabel, String yAxisLabel, int xAxisType, int yAxisType, List plotDefinitions)
    throws ChartValidationException, DatasetProduceException {
    final int chartTypeConst = getChartTypeConstant(chartType);
    final AxisFactory axisFactory = AxisFactory.getInstance();
    switch (chartTypeConst) {
      case OVERLAY_XY :
        ValueAxis domainAxis = (ValueAxis) axisFactory.createAxis(ORIENTATION_HORIZONTAL, xAxisType, xAxisLabel);
        // get main plot
        PlotDefinition mainPlotDef = (PlotDefinition) plotDefinitions.get(0);
        check((Dataset) mainPlotDef.getDataset(), XYDataset.class, chartType);
        XYPlot plot = (XYPlot) mainPlotDef.getPlot(chartTypeConst);
        plot.setDomainAxis(domainAxis);
        plot.setRangeAxis((ValueAxis) axisFactory.createAxis(ORIENTATION_VERTICAL, yAxisType, yAxisLabel));
        //plot.setRenderer(new StandardXYItemRenderer());
        // add second and later datasets to main plot
        for (int plotidx = 1;plotidx<plotDefinitions.size();plotidx++) {
          PlotDefinition subPlotDef = (PlotDefinition) plotDefinitions.get(plotidx);
          check((Dataset) subPlotDef.getDataset(), XYDataset.class, chartType);
          plot.setDataset(plotidx, (XYDataset)subPlotDef.getDataset());

          int rendererIndex = PlotTypes.getRendererIndex(subPlotDef.getType());
          XYItemRenderer rend = (XYItemRenderer) PlotTypes.getRenderer(rendererIndex);
          plot.setRenderer(plotidx, rend);
        }
        return new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot, true);
      case OVERLAY_CATEGORY ://added by lrh 2005-07-11
        CategoryAxis domainAxis2 = (CategoryAxis)axisFactory.createAxis(ORIENTATION_HORIZONTAL, xAxisType, xAxisLabel);
        // get main plot
        mainPlotDef = (PlotDefinition) plotDefinitions.get(0);
        check((Dataset) mainPlotDef.getDataset(), CategoryDataset.class, chartType);
        CategoryPlot plot2 = (CategoryPlot) mainPlotDef.getPlot(chartTypeConst);
        plot2.setDomainAxis(domainAxis2);
        plot2.setRangeAxis((ValueAxis)axisFactory.createAxis(ORIENTATION_VERTICAL, yAxisType, yAxisLabel));
        //plot.setRenderer(new StandardXYItemRenderer());
        // add second and later datasets to main plot
        for (int plotidx = 1;plotidx<plotDefinitions.size();plotidx++) {
          PlotDefinition subPlotDef = (PlotDefinition) plotDefinitions.get(plotidx);
          check((Dataset) subPlotDef.getDataset(), CategoryDataset.class, chartType);
          plot2.setDataset(plotidx, (CategoryDataset)subPlotDef.getDataset());

          int rendererIndex = PlotTypes.getRendererIndex(subPlotDef.getType()); 
          CategoryItemRenderer rend2 = (CategoryItemRenderer) PlotTypes.getRenderer(rendererIndex);
          plot2.setRenderer(plotidx, rend2);
        }
        return new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot2, true);
      default :
        throw new UnsupportedChartTypeException(chartType + " is not supported.");
    }
  }

  // [tb]
  public static JFreeChart getCombinedChartInstance(String chartType, String title, String xAxisLabel, String yAxisLabel, List plotDefinitions, String layout)
    throws ChartValidationException, DatasetProduceException {
    final int chartTypeConst = getChartTypeConstant(chartType);
    switch (chartTypeConst) {
      case COMBINED_XY :
        final int layoutConst = getLayoutConstant(layout);
        Plot plot = null;
        switch (layoutConst) {
          case DOMAIN :
            ValueAxis domainAxis = new DateAxis(xAxisLabel);
            plot = new CombinedDomainXYPlot(domainAxis);
            for (int i = 0; i < plotDefinitions.size(); i++) {
              PlotDefinition pd = (PlotDefinition) plotDefinitions.get(i);
              check((Dataset) pd.getDataset(), XYDataset.class, chartType);
              XYPlot temp = (XYPlot) pd.getPlot(chartTypeConst);
              temp.setRangeAxis(new NumberAxis(pd.getYaxislabel()));
              ((CombinedDomainXYPlot) plot).add(temp);
            }
            return new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot, true);
          case RANGE :
            ValueAxis rangeAxis = new NumberAxis(yAxisLabel);
            plot = new CombinedRangeXYPlot(rangeAxis);
            for (int i = 0; i < plotDefinitions.size(); i++) {
              PlotDefinition pd = (PlotDefinition) plotDefinitions.get(i);
              check((Dataset) pd.getDataset(), XYDataset.class, chartType);
              XYPlot temp = (XYPlot) pd.getPlot(chartTypeConst);
              temp.setDomainAxis(new DateAxis(pd.getXaxislabel()));
              ((CombinedRangeXYPlot) plot).add(temp);
            }
            return new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot, true);
          default :
            throw new AttributeValidationException(layout, " any value");
        }
      default :
        throw new UnsupportedChartTypeException(chartType);
    }
  }

  /**
   * Helper to check if the given dataset is the expected type.
   * @param data The dataset
   * @param clazz Expected type (class)
   * @param chartType The chart type string
   * @throws IncompatibleDatasetException If not the expected class
   */
  public static void check(Dataset data, Class clazz, String chartType) throws IncompatibleDatasetException {
    if (!clazz.isInstance(data)) {
      throw new IncompatibleDatasetException("Charts of type " + chartType + " " + "need datasets of type " + clazz.getName());
    }
  }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99在线视频精品| 色婷婷香蕉在线一区二区| 亚洲五月六月丁香激情| 自拍偷拍亚洲欧美日韩| 国产精品久久久久久久久搜平片| 国产亚洲欧洲一区高清在线观看| 日韩欧美国产午夜精品| 欧美va在线播放| 日本一区二区三级电影在线观看| 久久久久久97三级| 一区在线播放视频| 一区二区免费在线| 日日骚欧美日韩| 美女国产一区二区| 成人网男人的天堂| 在线精品视频免费播放| 欧美日韩精品久久久| 精品理论电影在线| 国产精品久久久久久久久果冻传媒| 亚洲视频 欧洲视频| 亚洲福利一区二区| 国产毛片精品一区| 99久久综合狠狠综合久久| 欧美亚洲尤物久久| 精品福利av导航| 亚洲男人的天堂av| 秋霞国产午夜精品免费视频| 国产99精品视频| 91福利国产成人精品照片| 日韩欧美激情在线| 最新国产成人在线观看| 日日夜夜免费精品| 大胆亚洲人体视频| 欧美午夜片在线看| 久久久精品免费免费| 亚洲人被黑人高潮完整版| 性久久久久久久久| 国产高清精品在线| 91麻豆精品国产91久久久资源速度 | 七七婷婷婷婷精品国产| 粉嫩av一区二区三区| 欧美欧美欧美欧美首页| 国产精品色在线| 舔着乳尖日韩一区| 一本大道综合伊人精品热热| 26uuu国产日韩综合| 亚洲国产一区二区在线播放| 国产99精品国产| 精品久久免费看| 婷婷成人激情在线网| 色婷婷精品久久二区二区蜜臀av| 精品国产髙清在线看国产毛片| 亚洲综合免费观看高清在线观看| 豆国产96在线|亚洲| 精品欧美久久久| 免费看日韩a级影片| 欧美日韩一区二区三区四区| 中文字幕中文乱码欧美一区二区 | 美女视频一区二区| 欧美在线你懂的| 亚洲激情自拍偷拍| 不卡的av在线| 中文字幕国产一区| 国产乱子轮精品视频| 欧美一区二区三区在线视频| 亚洲综合图片区| 在线欧美一区二区| 日日夜夜精品视频天天综合网| 91免费在线看| 亚洲色图视频免费播放| 成年人网站91| 亚洲欧美视频在线观看视频| a亚洲天堂av| 亚洲人一二三区| 一本色道**综合亚洲精品蜜桃冫| 中文字幕av一区 二区| 高清成人在线观看| 国产精品网站一区| 91亚洲精品久久久蜜桃网站 | 欧美日韩国产一二三| 亚洲日穴在线视频| 欧美无人高清视频在线观看| 亚洲精品国久久99热| 日本韩国欧美在线| 亚洲www啪成人一区二区麻豆| 欧美丝袜第三区| 蜜臂av日日欢夜夜爽一区| 欧美一区二区三区公司| 久久精品国产99| 国产精品视频第一区| 一道本成人在线| 丝袜美腿亚洲色图| 久久久久久免费网| 色综合天天视频在线观看| 午夜精品久久久| 日韩欧美国产一区在线观看| 国产福利一区二区三区视频在线 | 中文字幕一区二区三区不卡| 色天天综合色天天久久| 天堂一区二区在线| 久久综合久色欧美综合狠狠| 99久久综合99久久综合网站| 亚洲图片欧美视频| 精品国产91亚洲一区二区三区婷婷| 成熟亚洲日本毛茸茸凸凹| 亚洲一区二区在线视频| 精品日韩在线观看| 91毛片在线观看| 久久精品国内一区二区三区| 国产精品麻豆久久久| 制服.丝袜.亚洲.中文.综合| 国产美女一区二区| 亚洲高清一区二区三区| 国产欧美1区2区3区| 欧美高清一级片在线| 成人av影院在线| 天天影视网天天综合色在线播放| 国产三级欧美三级日产三级99| 色狠狠av一区二区三区| 国产精品538一区二区在线| 亚洲午夜在线观看视频在线| 久久久国产午夜精品| 欧美一区二区性放荡片| 99久久久久久| 成人性生交大合| 蜜臀av一区二区| 亚洲bt欧美bt精品777| 欧美激情在线一区二区三区| 欧美一级黄色大片| 欧美在线free| 色综合咪咪久久| 成人黄色777网| 国产成人99久久亚洲综合精品| 琪琪久久久久日韩精品| 午夜视频在线观看一区二区| 国产精品白丝在线| 国产蜜臀97一区二区三区 | 成人中文字幕电影| 理论片日本一区| 日本aⅴ亚洲精品中文乱码| 一区二区三区四区激情| 亚洲少妇中出一区| ...中文天堂在线一区| 国产女人18毛片水真多成人如厕| 久久婷婷成人综合色| 久久综合999| 国产农村妇女精品| 欧美国产一区二区在线观看| 国产亚洲综合性久久久影院| 亚洲精品一区在线观看| 日韩你懂的在线观看| 26uuu色噜噜精品一区| 亚洲精品一区二区三区在线观看| 欧美va亚洲va在线观看蝴蝶网| 日韩免费看的电影| 精品国产在天天线2019| 久久综合九色综合97婷婷| 久久综合五月天婷婷伊人| 国产网站一区二区| 国产精品久久久久久久蜜臀 | 久久99国产精品久久99| 国产一区二区三区不卡在线观看| 捆绑变态av一区二区三区| 国产乱子伦视频一区二区三区| 国产二区国产一区在线观看| youjizz久久| 在线观看av一区| 在线综合视频播放| 国产欧美综合色| 亚洲日本在线看| 午夜精品久久久| 国产在线视频一区二区| 成人a免费在线看| 欧美日韩专区在线| 日韩欧美色电影| 中文字幕亚洲一区二区av在线| 亚洲精品免费在线| 美女国产一区二区| av资源网一区| 日韩一本二本av| 国产精品久久久一区麻豆最新章节| 一区二区三区四区中文字幕| 麻豆精品一区二区| jvid福利写真一区二区三区| 4438亚洲最大| 亚洲欧洲精品一区二区三区不卡| 日韩va亚洲va欧美va久久| 懂色av一区二区三区免费观看 | 成人v精品蜜桃久久一区| 欧美日韩你懂得| 国产欧美日韩在线视频| 亚洲国产va精品久久久不卡综合| 精品一区二区在线免费观看| 91免费看`日韩一区二区| 日韩免费成人网| 亚洲一区二区三区四区的| 黑人巨大精品欧美一区| 欧美日韩一区成人| 欧美国产日韩一二三区| 日本欧美肥老太交大片|