Save This Page
Home » jcommon-1.0.13 » org.jfree » chart » annotations » [javadoc | source]
org.jfree.chart.annotations
public class: XYDrawableAnnotation [javadoc | source]
java.lang.Object
   org.jfree.chart.annotations.AbstractXYAnnotation
      org.jfree.chart.annotations.XYDrawableAnnotation

All Implemented Interfaces:
    PublicCloneable, Cloneable, Serializable, XYAnnotation

A general annotation that can be placed on an XYPlot .
Constructor:
 public XYDrawableAnnotation(double x,
    double y,
    double width,
    double height,
    Drawable drawable) 
    Creates a new annotation to be displayed within the given area.
    Parameters:
    x - the x-coordinate for the area.
    y - the y-coordinate for the area.
    width - the width of the area.
    height - the height of the area.
    drawable - the drawable object (null not permitted).
Method from org.jfree.chart.annotations.XYDrawableAnnotation Summary:
clone,   draw,   equals,   hashCode
Methods from org.jfree.chart.annotations.AbstractXYAnnotation:
addEntity,   draw,   equals,   getToolTipText,   getURL,   hashCode,   setToolTipText,   setURL
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.chart.annotations.XYDrawableAnnotation Detail:
 public Object clone() throws CloneNotSupportedException 
    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 annotation for equality with an arbitrary object.
 public int hashCode() 
    Returns a hash code.