| java.lang.Object org.jfree.chart.annotations.AbstractXYAnnotation org.jfree.chart.annotations.XYImageAnnotation
XYImageAnnotation | public class XYImageAnnotation extends AbstractXYAnnotation implements Cloneable,PublicCloneable,Serializable(Code) | | An annotation that allows an image to be placed at some location on
an
XYPlot .
TODO: implement serialization properly (image is not serializable).
|
Constructor Summary | |
public | XYImageAnnotation(double x, double y, Image image) Creates a new annotation to be displayed at the specified (x, y)
location. | public | XYImageAnnotation(double x, double y, Image image, RectangleAnchor anchor) Creates a new annotation to be displayed at the specified (x, y)
location. |
Method Summary | |
public Object | clone() Returns a clone of the annotation. | public void | draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info) Draws the annotation. | public boolean | equals(Object obj) Tests this object for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public Image | getImage() Returns the image for the annotation. | public RectangleAnchor | getImageAnchor() Returns the image anchor for the annotation. | public double | getX() Returns the x-coordinate (in data space) for the annotation. | public double | getY() Returns the y-coordinate (in data space) for the annotation. | public int | hashCode() Returns a hash code for this object. |
XYImageAnnotation | public XYImageAnnotation(double x, double y, Image image)(Code) | | Creates a new annotation to be displayed at the specified (x, y)
location.
Parameters: x - the x-coordinate (in data space). Parameters: y - the y-coordinate (in data space). Parameters: image - the image (null not permitted). |
XYImageAnnotation | public XYImageAnnotation(double x, double y, Image image, RectangleAnchor anchor)(Code) | | Creates a new annotation to be displayed at the specified (x, y)
location.
Parameters: x - the x-coordinate (in data space). Parameters: y - the y-coordinate (in data space). Parameters: image - the image (null not permitted). Parameters: anchor - the image anchor (null not permitted). since: 1.0.4 |
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 drawing code in the
XYPlot class, you don't normally need to call this method
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 - 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 (null permitted). A boolean. |
getImage | public Image getImage()(Code) | | Returns the image for the annotation.
The image. since: 1.0.4 |
getImageAnchor | public RectangleAnchor getImageAnchor()(Code) | | Returns the image anchor for the annotation.
The image anchor. since: 1.0.4 |
getX | public double getX()(Code) | | Returns the x-coordinate (in data space) for the annotation.
The x-coordinate. since: 1.0.4 |
getY | public double getY()(Code) | | Returns the y-coordinate (in data space) for the annotation.
The y-coordinate. since: 1.0.4 |
hashCode | public int hashCode()(Code) | | Returns a hash code for this object.
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)
|
|
|