gpt4 book ai didi

org.jfree.chart.urls.XYURLGenerator.generateURL()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 08:09:05 32 4
gpt4 key购买 nike

本文整理了Java中org.jfree.chart.urls.XYURLGenerator.generateURL()方法的一些代码示例,展示了XYURLGenerator.generateURL()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XYURLGenerator.generateURL()方法的具体详情如下:
包路径:org.jfree.chart.urls.XYURLGenerator
类名称:XYURLGenerator
方法名:generateURL

XYURLGenerator.generateURL介绍

[英]Generates a URL for a particular item within a series. As a guideline, the URL should be valid within the context of an XHTML 1.0 document.
[中]为序列中的特定项目生成URL。作为指导原则,URL应该在XHTML 1.0文档的上下文中有效。

代码示例

代码示例来源:origin: com.atlassian.jira/jira-gadgets-plugin

TimeChart.TimeDataRow[] generateDataSet(final TimeSeriesCollection dataSet, XYURLGenerator urlGenerator, TimeZoneManager timeZoneManager)
  {
    final TimePeriodUtils timePeriodUtils = new TimePeriodUtils(timeZoneManager);
    final TimeSeries issuesSeries = dataSet.getSeries(0);
    TimeSeries totalSeries = dataSet.getSeries(1);
    TimeSeries averageSeries = dataSet.getSeries(2);
    int count = issuesSeries.getItems().size();
    ArrayList<TimeDataRow> data = new ArrayList<TimeChart.TimeDataRow>(count);
    for (int i = 0; i < count; i++)
    {
      final int issues = issuesSeries.getValue(i).intValue();
      final int total = totalSeries.getValue(i).intValue();
      final int avg = averageSeries.getValue(i).intValue();
      final String issuesLink = urlGenerator != null ? urlGenerator.generateURL(dataSet, 0, i) : null;
      final RegularTimePeriod timePeriod = issuesSeries.getTimePeriod(i);
      data.add(new TimeChart.TimeDataRow(timePeriodUtils.prettyPrint(timePeriod), issues, issuesLink, total, avg));
    }
    return data.toArray(new TimeChart.TimeDataRow[data.size()]);
  }
}

代码示例来源:origin: com.atlassian.jira/jira-gadgets-plugin

private DataRow[] generateDataSet(CategoryDataset dataset, XYURLGenerator urlGenerator, XYDataset chartdataset, boolean showTrend)
{
  final TimePeriodUtils timePeriodUtils = new TimePeriodUtils(timeZoneManager);
  final DataRow[] data = new DataRow[dataset.getColumnCount()];
  // header
  for (int col = 0; col < dataset.getColumnCount(); col++)
  {
    Object key = dataset.getColumnKey(col);
    if (key instanceof RegularTimePeriod)
    {
      key = timePeriodUtils.prettyPrint((RegularTimePeriod) key);
    }
    int createdVal = dataset.getValue(0, col).intValue();
    String createdUrl = urlGenerator.generateURL(chartdataset, 0, col);
    int resolvedVal = dataset.getValue(1, col).intValue();
    String resolvedUrl = urlGenerator.generateURL(chartdataset, 1, col);
    Integer trendCount = null;
    if (showTrend)
    {
      trendCount = dataset.getValue(2, col).intValue();
    }
    data[col] = new DataRow(key, createdUrl, createdVal, resolvedUrl, resolvedVal, trendCount);
  }
  return data;
}

代码示例来源:origin: com.atlassian.jira.ext.charting/jira-charting-plugin

List<AverageStatusDataRow> generateDataSet(XYDataset dataset, XYURLGenerator urlGenerator)
{
  TimeSeriesCollection timeSeries = (TimeSeriesCollection) dataset;
  Map<Number, AverageStatusDataRow> dataRowMap = new LinkedHashMap<Number, AverageStatusDataRow>();
  TimePeriodUtils timePeriodUtils = new TimePeriodUtils(timeZoneManager);
  for (int seriesIndex = 0, seriesCount = timeSeries.getSeriesCount(); seriesIndex < seriesCount; ++seriesIndex)
  {
    Comparable status = timeSeries.getSeriesKey(seriesIndex);
    for (int xyItemIndex = 0, itemCount = timeSeries.getItemCount(seriesIndex); xyItemIndex < itemCount; ++xyItemIndex)
    {
      TimeSeriesDataItem dataItem = timeSeries.getSeries(seriesIndex).getDataItem(xyItemIndex);
      Number periodInMillis = timeSeries.getX(seriesIndex, xyItemIndex);
      AverageStatusDataRow averageStatusDataRow = dataRowMap.containsKey(periodInMillis)
          ? dataRowMap.get(periodInMillis)
          : new AverageStatusDataRow(timePeriodUtils.prettyPrint(dataItem.getPeriod()));
      dataRowMap.put(periodInMillis, averageStatusDataRow);
      Number value = dataset.getY(seriesIndex, xyItemIndex);
      String url = urlGenerator.generateURL(dataset, seriesIndex, xyItemIndex);
      averageStatusDataRow.setStatusValue(status.toString(), value.doubleValue(), url);
    }
  }
  return new ArrayList<AverageStatusDataRow>(dataRowMap.values());
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

url = getURLGenerator().generateURL(dataset, series, item);

代码示例来源:origin: jfree/jfreechart

url = getURLGenerator().generateURL(dataset, series, item);

代码示例来源:origin: jfree/jfreechart

url = getURLGenerator().generateURL(dataset, series, item);

代码示例来源:origin: pentaho/pentaho-platform

url = getURLGenerator().generateURL( dataset, series, item );

代码示例来源:origin: ca.umontreal.iro/ssj

String url = null;
if (getURLGenerator() != null)
 url = getURLGenerator().generateURL(dataset, series, item);
XYItemEntity entity = new XYItemEntity(shape, dataset, series, item, tip, url);
entities.add(entity);

代码示例来源:origin: jfree/jfreechart

XYURLGenerator l_urlGenerator = getURLGenerator();
if (null != l_urlGenerator) {
  l_url = l_urlGenerator.generateURL(x_dataset, x_series,
      x_item);

代码示例来源:origin: jfree/jfreechart

url = getURLGenerator().generateURL(dataset, series, 
    item);

代码示例来源:origin: jfree/jfreechart

url = getURLGenerator().generateURL(dataset, series, 
    item);

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

XYURLGenerator l_urlGenerator = getURLGenerator();
if (null != l_urlGenerator) {
  l_url = l_urlGenerator.generateURL(x_dataset, x_series,
      x_item);

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

url = getURLGenerator().generateURL(dataset, series, item);

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

url = getURLGenerator().generateURL(dataset, series,
    item);

代码示例来源:origin: no.uib/jsparklines

url = getURLGenerator().generateURL(dataset, series, item);

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com