本文整理汇总了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);
}
}
示例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());
}
}
}
示例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());
}
}
}
示例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());
}
}
}
示例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);
}
}
示例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());
}
}
}