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

All Implemented Interfaces:
    PublicCloneable, Cloneable, Serializable, XYAnnotation

A simple Shape annotation that can be placed on an XYPlot . The shape coordinates are specified in data space.
Constructor:
 public XYShapeAnnotation(Shape shape) 
    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).
 public XYShapeAnnotation(Shape shape,
    Stroke stroke,
    Paint outlinePaint) 
    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).
    stroke - the shape stroke (null permitted).
    outlinePaint - the shape color (null permitted).
 public XYShapeAnnotation(Shape shape,
    Stroke stroke,
    Paint outlinePaint,
    Paint fillPaint) 
    Creates a new annotation.
    Parameters:
    shape - the shape (null not permitted).
    stroke - the shape stroke (null permitted).
    outlinePaint - the shape color (null permitted).
    fillPaint - the paint used to fill the shape (null permitted.
Method from org.jfree.chart.annotations.XYShapeAnnotation 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.XYShapeAnnotation Detail:
 public Object clone() throws CloneNotSupportedException 
    Returns a clone.
 public  void draw(Graphics2D g2,
    XYPlot plot,
    Rectangle2D dataArea,
    ValueAxis domainAxis,
    ValueAxis rangeAxis,
    int rendererIndex,
    PlotRenderingInfo info) 
    Draws the annotation. This method is usually called by the XYPlot class, you shouldn't need to call it directly.
 public boolean equals(Object obj) 
    Tests this annotation for equality with an arbitrary object.
 public int hashCode() 
    Returns a hash code for this instance.