Class XYDrawableAnnotation

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

public class XYDrawableAnnotation extends AbstractXYAnnotation implements Cloneable, PublicCloneable, Serializable
A general annotation that can be placed on an XYPlot.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For serialization.
      See Also:
    • drawScaleFactor

      private double drawScaleFactor
      The scaling factor.
    • x

      private double x
      The x-coordinate.
    • y

      private double y
      The y-coordinate.
    • displayWidth

      private double displayWidth
      The width.
    • displayHeight

      private double displayHeight
      The height.
    • drawable

      private Drawable drawable
      The drawable object.
  • Constructor Details

    • XYDrawableAnnotation

      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).
    • XYDrawableAnnotation

      public XYDrawableAnnotation(double x, double y, double displayWidth, double displayHeight, double drawScaleFactor, Drawable drawable)
      Creates a new annotation to be displayed within the given area. If you specify a drawScaleFactor of 2.0, the drawable will be drawn at twice the requested display size then scaled down to fit the space.
      Parameters:
      x - the x-coordinate for the area.
      y - the y-coordinate for the area.
      displayWidth - the width of the area.
      displayHeight - the height of the area.
      drawScaleFactor - the scaling factor for drawing.
      drawable - the drawable object (null not permitted).
  • Method Details