Class XYImageAnnotation

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

public class XYImageAnnotation
extends AbstractXYAnnotation
implements Cloneable, PublicCloneable, Serializable
An annotation that allows an image to be placed at some location on an XYPlot. TODO: implement serialization properly (image is not serializable).
See Also:
Serialized Form
  • Constructor Details

    • XYImageAnnotation

      public XYImageAnnotation​(double x, double y, Image image)
      Creates a new annotation to be displayed at the specified (x, y) location.
      Parameters:
      x - the x-coordinate (in data space).
      y - the y-coordinate (in data space).
      image - the image (null not permitted).
    • XYImageAnnotation

      public XYImageAnnotation​(double x, double y, Image image, RectangleAnchor anchor)
      Creates a new annotation to be displayed at the specified (x, y) location.
      Parameters:
      x - the x-coordinate (in data space).
      y - the y-coordinate (in data space).
      image - the image (null not permitted).
      anchor - the image anchor (null not permitted).
      Since:
      1.0.4
  • Method Details