Class XYShapeAnnotation

    • Constructor Detail

      • XYShapeAnnotation

        public XYShapeAnnotation​(Shape shape)
        Creates a new annotation (where, by default, the shape is drawn with a black outline).
        Parameters:
        shape - the shape (coordinates in data space, null not permitted).
      • XYShapeAnnotation

        public XYShapeAnnotation​(Shape shape,
                                 Stroke stroke,
                                 Paint outlinePaint)
        Creates a new annotation where the shape is drawn as an outline using the specified stroke and outlinePaint.
        Parameters:
        shape - the shape (null not permitted).
        stroke - the shape stroke (null permitted).
        outlinePaint - the shape color (null permitted).
      • XYShapeAnnotation

        public XYShapeAnnotation​(Shape shape,
                                 Stroke stroke,
                                 Paint outlinePaint,
                                 Paint fillPaint)
        Creates a new annotation.
        Parameters:
        shape - the shape (null not permitted).
        stroke - the shape stroke (null permitted).
        outlinePaint - the shape color (null permitted).
        fillPaint - the paint used to fill the shape (null permitted.