Module platform

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:
  • 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