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

All Implemented Interfaces:
    PublicCloneable, Cloneable, Serializable, XYAnnotation

A box annotation that can be placed on an XYPlot . The box coordinates are specified in data space.
Constructor:
 public XYBoxAnnotation(double x0,
    double y0,
    double x1,
    double y1) 
 public XYBoxAnnotation(double x0,
    double y0,
    double x1,
    double y1,
    Stroke stroke,
    Paint outlinePaint) 
    Creates a new annotation where the box is drawn as an outline using the specified stroke and outlinePaint.
    Parameters:
    x0 - the lower x-coordinate of the box (in data space).
    y0 - the lower y-coordinate of the box (in data space).
    x1 - the upper x-coordinate of the box (in data space).
    y1 - the upper y-coordinate of the box (in data space).
    stroke - the shape stroke (null permitted).
    outlinePaint - the shape color (null permitted).
 public XYBoxAnnotation(double x0,
    double y0,
    double x1,
    double y1,
    Stroke stroke,
    Paint outlinePaint,
    Paint fillPaint) 
    Creates a new annotation.
    Parameters:
    x0 - the lower x-coordinate of the box (in data space).
    y0 - the lower y-coordinate of the box (in data space).
    x1 - the upper x-coordinate of the box (in data space).
    y1 - the upper y-coordinate of the box (in data space).
    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.XYBoxAnnotation 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.XYBoxAnnotation 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.