Class XYBoxAnnotation

    • Constructor Detail

      • XYBoxAnnotation

        public XYBoxAnnotation​(double x0,
                               double y0,
                               double x1,
                               double y1)
        Creates a new annotation (where, by default, the box is drawn with a black outline).
        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).
      • XYBoxAnnotation

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

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