| java.lang.Object org.jfree.chart.annotations.AbstractXYAnnotation org.jfree.chart.annotations.XYBoxAnnotation
Constructor Summary | |
public | XYBoxAnnotation(double x0, double y0, double x1, double y1) Creates a new annotation (where, by default, the box is drawn
with a black outline). | public | XYBoxAnnotation(double x0, double y0, double x1, double y1, Stroke stroke, Paint outlinePaint) Creates a new annotation where the box is drawn as an outline using
the specified stroke and outlinePaint . | public | XYBoxAnnotation(double x0, double y0, double x1, double y1, Stroke stroke, Paint outlinePaint, Paint fillPaint) Creates a new annotation. |
XYBoxAnnotation | public XYBoxAnnotation(double x0, double y0, double x1, double y1)(Code) | | Creates a new annotation (where, by default, the box is drawn
with a black outline).
Parameters: x0 - the lower x-coordinate of the box (in data space). Parameters: y0 - the lower y-coordinate of the box (in data space). Parameters: x1 - the upper x-coordinate of the box (in data space). Parameters: y1 - the upper y-coordinate of the box (in data space). |
XYBoxAnnotation | public XYBoxAnnotation(double x0, double y0, double x1, double y1, Stroke stroke, Paint outlinePaint)(Code) | | Creates a new annotation where the box is drawn as an outline using
the specified stroke and outlinePaint .
Parameters: x0 - the lower x-coordinate of the box (in data space). Parameters: y0 - the lower y-coordinate of the box (in data space). Parameters: x1 - the upper x-coordinate of the box (in data space). Parameters: y1 - the upper y-coordinate of the box (in data space). Parameters: stroke - the shape stroke (null permitted). Parameters: outlinePaint - the shape color (null permitted). |
XYBoxAnnotation | public XYBoxAnnotation(double x0, double y0, double x1, double y1, Stroke stroke, Paint outlinePaint, Paint fillPaint)(Code) | | Creates a new annotation.
Parameters: x0 - the lower x-coordinate of the box (in data space). Parameters: y0 - the lower y-coordinate of the box (in data space). Parameters: x1 - the upper x-coordinate of the box (in data space). Parameters: y1 - the upper y-coordinate of the box (in data space). Parameters: stroke - the shape stroke (null permitted). Parameters: outlinePaint - the shape color (null permitted). Parameters: fillPaint - the paint used to fill the shape (null 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 usually called by the
XYPlot class, you shouldn't need to call it directly.
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 - the plot rendering info. |
equals | public boolean equals(Object obj)(Code) | | Tests this annotation for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
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)
|
|
|