| java.lang.Object org.jfree.chart.annotations.AbstractXYAnnotation org.jfree.chart.annotations.XYShapeAnnotation
XYShapeAnnotation | public XYShapeAnnotation(Shape shape)(Code) | | Creates a new annotation (where, by default, the shape is drawn
with a black outline).
Parameters: shape - the shape (coordinates in data space, null not permitted). |
XYShapeAnnotation | public XYShapeAnnotation(Shape shape, Stroke stroke, Paint outlinePaint)(Code) | | Creates a new annotation where the shape is drawn as an outline using
the specified stroke and outlinePaint .
Parameters: shape - the shape (null not permitted). Parameters: stroke - the shape stroke (null permitted). Parameters: outlinePaint - the shape color (null permitted). |
XYShapeAnnotation | public XYShapeAnnotation(Shape shape, Stroke stroke, Paint outlinePaint, Paint fillPaint)(Code) | | Creates a new annotation.
Parameters: shape - the shape (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. |
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)
|
|
|