public class XYRawLineAnnotation extends AbstractXYAnnotation
XYPlot
.Constructor and Description |
---|
XYRawLineAnnotation(double x1,
double y1,
double x2,
double y2,
int newStrokeWidth,
java.awt.Paint paint) |
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g2,
XYPlot plot,
java.awt.geom.Rectangle2D dataArea,
ValueAxis domainAxis,
ValueAxis rangeAxis,
int rendererIndex,
PlotRenderingInfo info)
Draws the annotation.
|
void |
setLocation(double x,
double y,
XYPlot plot,
java.awt.geom.Rectangle2D dataArea) |
addEntity, equals, getToolTipText, getURL, hashCode, setToolTipText, setURL
addChangeListener, clone, fireAnnotationChanged, getNotify, hasListener, notifyListeners, removeChangeListener, setNotify
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addChangeListener, removeChangeListener
public XYRawLineAnnotation(double x1, double y1, double x2, double y2, int newStrokeWidth, java.awt.Paint paint)
public void draw(java.awt.Graphics2D g2, XYPlot plot, java.awt.geom.Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info)
draw
in interface XYAnnotation
draw
in class AbstractXYAnnotation
g2
- the graphics device.plot
- the plot.dataArea
- the data area.domainAxis
- the domain axis.rangeAxis
- the range axis.rendererIndex
- the renderer index.info
- an optional info object that will be populated with
entity information.public void setLocation(double x, double y, XYPlot plot, java.awt.geom.Rectangle2D dataArea)