org.jfree.chart.annotations.Annotation, org.jfree.chart.annotations.XYAnnotationpublic class SymbolicNameAnnotation
extends java.lang.Object
implements org.jfree.chart.annotations.XYAnnotation
| Modifier and Type | Field | Description |
|---|---|---|
static float |
MIN_LABEL_X_SPACING |
|
static int |
STYLE_DEFAULT |
|
static int |
STYLE_NO_LABELS |
| Constructor | Description |
|---|---|
SymbolicNameAnnotation(SymbolicName symbolicName,
java.util.Collection all,
int style) |
Creates an annotation for a symbolic name.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addChangeListener(org.jfree.chart.event.AnnotationChangeListener listener) |
|
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) |
|
void |
removeChangeListener(org.jfree.chart.event.AnnotationChangeListener listener) |
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_LIGHTpublic 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.XYAnnotationXYAnnotation.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)public void removeChangeListener(org.jfree.chart.event.AnnotationChangeListener listener)
removeChangeListener in interface org.jfree.chart.annotations.Annotationpublic void addChangeListener(org.jfree.chart.event.AnnotationChangeListener listener)
addChangeListener in interface org.jfree.chart.annotations.Annotation