public class SymbolicNameAnnotation
extends java.lang.Object
implements org.jfree.chart.annotations.XYAnnotation
Modifier and Type | Field and Description |
---|---|
static float |
MIN_LABEL_X_SPACING |
static int |
STYLE_DEFAULT |
static int |
STYLE_NO_LABELS |
Constructor and Description |
---|
SymbolicNameAnnotation(SymbolicName symbolicName,
java.util.Collection all,
int style)
Creates an annotation for a symbolic name.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List |
createAnnotations(java.util.Collection symbolicNames) |
static java.util.List |
createAnnotations(java.util.Collection symbolicNames,
int style) |
void |
draw(java.awt.Graphics2D g2d,
org.jfree.chart.plot.XYPlot xyPlot,
java.awt.geom.Rectangle2D dataArea,
org.jfree.chart.axis.ValueAxis domainAxis,
org.jfree.chart.axis.ValueAxis rangeAxis,
int rendererIndex,
org.jfree.chart.plot.PlotRenderingInfo info) |
public static final int STYLE_DEFAULT
public static final int STYLE_NO_LABELS
public static final float MIN_LABEL_X_SPACING
public SymbolicNameAnnotation(SymbolicName symbolicName, java.util.Collection all, int style)
symbolicName
- style
- #STYLE_HEAVY
or #STYLE_LIGHT
public static java.util.List createAnnotations(java.util.Collection symbolicNames)
public static java.util.List createAnnotations(java.util.Collection symbolicNames, int style)
public void draw(java.awt.Graphics2D g2d, org.jfree.chart.plot.XYPlot xyPlot, java.awt.geom.Rectangle2D dataArea, org.jfree.chart.axis.ValueAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis, int rendererIndex, org.jfree.chart.plot.PlotRenderingInfo info)
draw
in interface org.jfree.chart.annotations.XYAnnotation
XYAnnotation.draw(java.awt.Graphics2D, org.jfree.chart.plot.XYPlot, java.awt.geom.Rectangle2D, org.jfree.chart.axis.ValueAxis, org.jfree.chart.axis.ValueAxis, int, org.jfree.chart.plot.PlotRenderingInfo)