|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.annotations.XYShapeAnnotation
A simple Shape
annotation that can be placed on an XYPlot
. The
shape coordinates are specified in data space.
Constructor Summary | |
XYShapeAnnotation(java.awt.Shape shape)
Creates a new annotation. |
|
XYShapeAnnotation(java.awt.Shape shape,
java.awt.Stroke stroke,
java.awt.Paint paint)
Creates a new annotation. |
Method Summary | |
void |
draw(java.awt.Graphics2D g2,
XYPlot plot,
java.awt.geom.Rectangle2D dataArea,
ValueAxis domainAxis,
ValueAxis rangeAxis)
Draws the annotation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XYShapeAnnotation(java.awt.Shape shape)
shape
- the shape (coordinates in data space).public XYShapeAnnotation(java.awt.Shape shape, java.awt.Stroke stroke, java.awt.Paint paint)
shape
- the shape (null
not permitted).stroke
- the shape stroke (null
not permitted).paint
- the shape color (null
not permitted).Method Detail |
public void draw(java.awt.Graphics2D g2, XYPlot plot, java.awt.geom.Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis)
XYPlot
class, you
shouldn't need to call it directly.
draw
in interface XYAnnotation
g2
- the graphics device.plot
- the plot.dataArea
- the data area.domainAxis
- the domain axis.rangeAxis
- the range axis.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |