| java.lang.Object org.jfree.chart.annotations.AbstractXYAnnotation org.jfree.chart.annotations.XYLineAnnotation
Constructor Summary | |
public | XYLineAnnotation(double x1, double y1, double x2, double y2) Creates a new annotation that draws a line from (x1, y1) to (x2, y2)
where the coordinates are measured in data space (that is, against the
plot's axes). | public | XYLineAnnotation(double x1, double y1, double x2, double y2, Stroke stroke, Paint paint) Creates a new annotation that draws a line from (x1, y1) to (x2, y2)
where the coordinates are measured in data space (that is, against the
plot's axes). |
XYLineAnnotation | public XYLineAnnotation(double x1, double y1, double x2, double y2)(Code) | | Creates a new annotation that draws a line from (x1, y1) to (x2, y2)
where the coordinates are measured in data space (that is, against the
plot's axes).
Parameters: x1 - the x-coordinate for the start of the line. Parameters: y1 - the y-coordinate for the start of the line. Parameters: x2 - the x-coordinate for the end of the line. Parameters: y2 - the y-coordinate for the end of the line. |
XYLineAnnotation | public XYLineAnnotation(double x1, double y1, double x2, double y2, Stroke stroke, Paint paint)(Code) | | Creates a new annotation that draws a line from (x1, y1) to (x2, y2)
where the coordinates are measured in data space (that is, against the
plot's axes).
Parameters: x1 - the x-coordinate for the start of the line. Parameters: y1 - the y-coordinate for the start of the line. Parameters: x2 - the x-coordinate for the end of the line. Parameters: y2 - the y-coordinate for the end of the line. Parameters: stroke - the line stroke (null not permitted). Parameters: paint - the line color (null not permitted). |
draw | public void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info)(Code) | | Draws the annotation. This method is called by the
XYPlot
class, you won't normally need to call it yourself.
Parameters: g2 - the graphics device. Parameters: plot - the plot. Parameters: dataArea - the data area. Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: rendererIndex - the renderer index. Parameters: info - if supplied, this info object will be populated withentity information. |
equals | public boolean equals(Object obj)(Code) | | Tests this object for equality with an arbitrary object.
Parameters: obj - the object to test against (null permitted). true or false . |
hashCode | public int hashCode()(Code) | | Returns a hash code.
A hash code. |
Methods inherited from org.jfree.chart.annotations.AbstractXYAnnotation | protected void addEntity(PlotRenderingInfo info, Shape hotspot, int rendererIndex, String toolTipText, String urlText)(Code)(Java Doc) abstract public void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public String getToolTipText()(Code)(Java Doc) public String getURL()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public void setToolTipText(String text)(Code)(Java Doc) public void setURL(String url)(Code)(Java Doc)
|
|
|