| java.lang.Object org.jfree.chart.annotations.AbstractXYAnnotation org.jfree.chart.annotations.XYPolygonAnnotation
Constructor Summary | |
public | XYPolygonAnnotation(double[] polygon) Creates a new annotation (where, by default, the polygon is drawn
with a black outline). | public | XYPolygonAnnotation(double[] polygon, Stroke stroke, Paint outlinePaint) Creates a new annotation where the box is drawn as an outline using
the specified stroke and outlinePaint . | public | XYPolygonAnnotation(double[] polygon, Stroke stroke, Paint outlinePaint, Paint fillPaint) Creates a new annotation. |
XYPolygonAnnotation | public XYPolygonAnnotation(double[] polygon)(Code) | | Creates a new annotation (where, by default, the polygon is drawn
with a black outline). The array of polygon coordinates must contain
an even number of coordinates (each pair is an (x, y) location on the
plot) and the last point is automatically joined back to the first point.
Parameters: polygon - the coordinates of the polygon's vertices (null not permitted). |
XYPolygonAnnotation | public XYPolygonAnnotation(double[] polygon, Stroke stroke, Paint outlinePaint)(Code) | | Creates a new annotation where the box is drawn as an outline using
the specified stroke and outlinePaint .
The array of polygon coordinates must contain an even number of
coordinates (each pair is an (x, y) location on the plot) and the last
point is automatically joined back to the first point.
Parameters: polygon - the coordinates of the polygon's vertices (null not permitted). Parameters: stroke - the shape stroke (null permitted). Parameters: outlinePaint - the shape color (null permitted). |
XYPolygonAnnotation | public XYPolygonAnnotation(double[] polygon, Stroke stroke, Paint outlinePaint, Paint fillPaint)(Code) | | Creates a new annotation. The array of polygon coordinates must
contain an even number of coordinates (each pair is an (x, y) location
on the plot) and the last point is automatically joined back to the
first point.
Parameters: polygon - the coordinates of the polygon's vertices (null not permitted). 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. |
getFillPaint | public Paint getFillPaint()(Code) | | Returns the fill paint.
The fill paint (possibly null ). since: 1.0.2 |
getOutlinePaint | public Paint getOutlinePaint()(Code) | | Returns the outline paint.
The outline paint (possibly null ). since: 1.0.2 |
getOutlineStroke | public Stroke getOutlineStroke()(Code) | | Returns the outline stroke.
The outline stroke (possibly null ). since: 1.0.2 |
getPolygonCoordinates | public double[] getPolygonCoordinates()(Code) | | Returns the coordinates of the polygon's vertices. The returned array
is a copy, so it is safe to modify without altering the annotation's
state.
The coordinates of the polygon's vertices. since: 1.0.2 |
hashCode | public int hashCode()(Code) | | Returns a hash code for this instance.
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)
|
|
|