Class XYDataImageAnnotation

All Implemented Interfaces:
Serializable, Cloneable, Annotation, XYAnnotation, XYAnnotationBoundsInfo, PublicCloneable

public class XYDataImageAnnotation
extends AbstractXYAnnotation
implements Cloneable, PublicCloneable, XYAnnotationBoundsInfo
An annotation that allows an image to be placed within a rectangle specified in data coordinates on an XYPlot. Note that this annotation is not currently serializable, so don't use it if you plan on serializing your chart(s).
Since:
1.0.11
See Also:
Serialized Form
  • Constructor Details

    • XYDataImageAnnotation

      public XYDataImageAnnotation​(Image image, double x, double y, double w, double h)
      Creates a new annotation to be displayed within the specified rectangle.
      Parameters:
      image - the image (null not permitted).
      x - the x-coordinate (in data space).
      y - the y-coordinate (in data space).
      w - the image display area width.
      h - the image display area height.
    • XYDataImageAnnotation

      public XYDataImageAnnotation​(Image image, double x, double y, double w, double h, boolean includeInDataBounds)
      Creates a new annotation to be displayed within the specified rectangle.
      Parameters:
      image - the image (null not permitted).
      x - the x-coordinate (in data space).
      y - the y-coordinate (in data space).
      w - the image display area width.
      h - the image display area height.
      includeInDataBounds - a flag that controls whether or not the annotation is included in the data bounds for the axis autoRange.
      Since:
      1.0.13
  • Method Details