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


Java CategoryAnnotation.draw方法代码示例

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


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

示例1: drawAnnotations

import org.jfree.chart.annotations.CategoryAnnotation; //导入方法依赖的package包/类
/**
 * Draws all the annotations for the specified layer.
 *
 * @param g2  the graphics device.
 * @param dataArea  the data area.
 * @param domainAxis  the domain axis.
 * @param rangeAxis  the range axis.
 * @param layer  the layer.
 * @param info  the plot rendering info.
 *
 * @since 1.2.0
 */
public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea,
        CategoryAxis domainAxis, ValueAxis rangeAxis, Layer layer,
        PlotRenderingInfo info) {

    Iterator iterator = null;
    if (layer.equals(Layer.FOREGROUND)) {
        iterator = this.foregroundAnnotations.iterator();
    }
    else if (layer.equals(Layer.BACKGROUND)) {
        iterator = this.backgroundAnnotations.iterator();
    }
    else {
        // should not get here
        throw new RuntimeException("Unknown layer.");
    }
    while (iterator.hasNext()) {
        CategoryAnnotation annotation = (CategoryAnnotation) iterator.next();
        annotation.draw(g2, this.plot, dataArea, domainAxis, rangeAxis,
                0, info);
    }

}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:35,代码来源:AbstractCategoryItemRenderer.java

示例2: drawAnnotations

import org.jfree.chart.annotations.CategoryAnnotation; //导入方法依赖的package包/类
/**
 * Draws the annotations...
 *
 * @param g2  the graphics device.
 * @param dataArea  the data area.
 */
protected void drawAnnotations(Graphics2D g2, Rectangle2D dataArea) {

    if (getAnnotations() != null) {
        Iterator iterator = getAnnotations().iterator();
        while (iterator.hasNext()) {
            CategoryAnnotation annotation = (CategoryAnnotation) iterator.next();
            annotation.draw(g2, this, dataArea, getDomainAxis(), getRangeAxis());
        }
    }

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:18,代码来源:CategoryPlot.java

示例3: drawAnnotations

import org.jfree.chart.annotations.CategoryAnnotation; //导入方法依赖的package包/类
/**
 * Draws the annotations...
 *
 * @param g2  the graphics device.
 * @param dataArea  the data area.
 */
protected void drawAnnotations(Graphics2D g2, Rectangle2D dataArea) {

    if (getAnnotations() != null) {
        Iterator iterator = getAnnotations().iterator();
        while (iterator.hasNext()) {
            CategoryAnnotation annotation 
                    = (CategoryAnnotation) iterator.next();
            annotation.draw(g2, this, dataArea, getDomainAxis(), 
                    getRangeAxis());
        }
    }

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:20,代码来源:CategoryPlot.java

示例4: drawAnnotations

import org.jfree.chart.annotations.CategoryAnnotation; //导入方法依赖的package包/类
/**
 * Draws the annotations.
 *
 * @param g2  the graphics device.
 * @param dataArea  the data area.
 */
protected void drawAnnotations(Graphics2D g2, Rectangle2D dataArea) {

    if (getAnnotations() != null) {
        Iterator iterator = getAnnotations().iterator();
        while (iterator.hasNext()) {
            CategoryAnnotation annotation
                    = (CategoryAnnotation) iterator.next();
            annotation.draw(g2, this, dataArea, getDomainAxis(),
                    getRangeAxis());
        }
    }

}
 
开发者ID:mdzio,项目名称:ccu-historian,代码行数:20,代码来源:CategoryPlot.java

示例5: drawAnnotations

import org.jfree.chart.annotations.CategoryAnnotation; //导入方法依赖的package包/类
/**
 * Draws the annotations.
 *
 * @param g2  the graphics device.
 * @param dataArea  the data area.
 * @param info  the plot rendering info (<code>null</code> permitted).
 */
protected void drawAnnotations(Graphics2D g2, Rectangle2D dataArea,
        PlotRenderingInfo info) {

    Iterator iterator = getAnnotations().iterator();
    while (iterator.hasNext()) {
        CategoryAnnotation annotation
                = (CategoryAnnotation) iterator.next();
        annotation.draw(g2, this, dataArea, getDomainAxis(),
                getRangeAxis(), 0, info);
    }

}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:20,代码来源:CategoryPlot.java

示例6: drawAnnotations

import org.jfree.chart.annotations.CategoryAnnotation; //导入方法依赖的package包/类
/**
 * Draws the annotations...
 *
 * @param g2  the graphics device.
 * @param dataArea  the data area.
 */
protected void drawAnnotations(Graphics2D g2, Rectangle2D dataArea) {

    if (getAnnotations() != null) {
        Iterator iterator = getAnnotations().iterator();
        while (iterator.hasNext()) {
            CategoryAnnotation annotation 
                = (CategoryAnnotation) iterator.next();
            annotation.draw(g2, this, dataArea, getDomainAxis(), 
                    getRangeAxis());
        }
    }

}
 
开发者ID:opensim-org,项目名称:opensim-gui,代码行数:20,代码来源:CategoryPlot.java


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