当前位置: 首页>>代码示例>>Java>>正文


Java PolarItemRenderer.drawSeries方法代码示例

本文整理汇总了Java中org.jfree.chart.renderer.PolarItemRenderer.drawSeries方法的典型用法代码示例。如果您正苦于以下问题:Java PolarItemRenderer.drawSeries方法的具体用法?Java PolarItemRenderer.drawSeries怎么用?Java PolarItemRenderer.drawSeries使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jfree.chart.renderer.PolarItemRenderer的用法示例。


在下文中一共展示了PolarItemRenderer.drawSeries方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: render

import org.jfree.chart.renderer.PolarItemRenderer; //导入方法依赖的package包/类
/**
 * Draws a representation of the data within the dataArea region, using the
 * current m_Renderer.
 *
 * @param g2  the graphics device.
 * @param dataArea  the region in which the data is to be drawn.
 * @param info  an optional object for collection dimension
 *              information (<code>null</code> permitted).
 */
protected void render(Graphics2D g2, Rectangle2D dataArea,
        PlotRenderingInfo info) {

    // now get the data and plot it (the visual representation will depend
    // on the m_Renderer that has been set)...
    boolean hasData = false;
    int datasetCount = this.datasets.size();
    for (int i = datasetCount - 1; i >= 0; i--) {
        XYDataset dataset = getDataset(i);
        if (dataset == null) {
            continue;
        }
        PolarItemRenderer renderer = getRenderer(i);
        if (renderer == null) {
            continue;
        }
        if (!DatasetUtilities.isEmptyOrNull(dataset)) {
            hasData = true;
            int seriesCount = dataset.getSeriesCount();
            for (int series = 0; series < seriesCount; series++) {
                renderer.drawSeries(g2, dataArea, info, this, dataset,
                        series);
            }
        }
    }
    if (!hasData) {
        drawNoDataMessage(g2, dataArea);
    }
}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:39,代码来源:PolarPlot.java

示例2: render

import org.jfree.chart.renderer.PolarItemRenderer; //导入方法依赖的package包/类
/**
 * Draws a representation of the data within the dataArea region, using the
 * current m_Renderer.
 *
 * @param g2  the graphics device.
 * @param dataArea  the region in which the data is to be drawn.
 * @param info  an optional object for collection dimension
 *              information ({@code null} permitted).
 */
protected void render(Graphics2D g2, Rectangle2D dataArea,
        PlotRenderingInfo info) {

    // now get the data and plot it (the visual representation will depend
    // on the m_Renderer that has been set)...
    boolean hasData = false;
    int datasetCount = this.datasets.size();
    for (int i = datasetCount - 1; i >= 0; i--) {
        XYDataset dataset = getDataset(i);
        if (dataset == null) {
            continue;
        }
        PolarItemRenderer renderer = getRenderer(i);
        if (renderer == null) {
            continue;
        }
        if (!DatasetUtils.isEmptyOrNull(dataset)) {
            hasData = true;
            int seriesCount = dataset.getSeriesCount();
            for (int series = 0; series < seriesCount; series++) {
                renderer.drawSeries(g2, dataArea, info, this, dataset,
                        series);
            }
        }
    }
    if (!hasData) {
        drawNoDataMessage(g2, dataArea);
    }
}
 
开发者ID:jfree,项目名称:jfreechart,代码行数:39,代码来源:PolarPlot.java


注:本文中的org.jfree.chart.renderer.PolarItemRenderer.drawSeries方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。