Class DefaultDrawingSupplier

    • Field Detail

      • DEFAULT_PAINT_SEQUENCE

        public static final Paint[] DEFAULT_PAINT_SEQUENCE
        The default fill paint sequence.
      • DEFAULT_OUTLINE_PAINT_SEQUENCE

        public static final Paint[] DEFAULT_OUTLINE_PAINT_SEQUENCE
        The default outline paint sequence.
      • DEFAULT_FILL_PAINT_SEQUENCE

        public static final Paint[] DEFAULT_FILL_PAINT_SEQUENCE
        The default fill paint sequence.
      • DEFAULT_STROKE_SEQUENCE

        public static final Stroke[] DEFAULT_STROKE_SEQUENCE
        The default stroke sequence.
      • DEFAULT_OUTLINE_STROKE_SEQUENCE

        public static final Stroke[] DEFAULT_OUTLINE_STROKE_SEQUENCE
        The default outline stroke sequence.
      • DEFAULT_SHAPE_SEQUENCE

        public static final Shape[] DEFAULT_SHAPE_SEQUENCE
        The default shape sequence.
    • Constructor Detail

      • DefaultDrawingSupplier

        public DefaultDrawingSupplier()
        Creates a new supplier, with default sequences for fill paint, outline paint, stroke and shapes.
      • DefaultDrawingSupplier

        public DefaultDrawingSupplier​(Paint[] paintSequence,
                                      Paint[] outlinePaintSequence,
                                      Stroke[] strokeSequence,
                                      Stroke[] outlineStrokeSequence,
                                      Shape[] shapeSequence)
        Creates a new supplier.
        Parameters:
        paintSequence - the fill paint sequence.
        outlinePaintSequence - the outline paint sequence.
        strokeSequence - the stroke sequence.
        outlineStrokeSequence - the outline stroke sequence.
        shapeSequence - the shape sequence.
      • DefaultDrawingSupplier

        public DefaultDrawingSupplier​(Paint[] paintSequence,
                                      Paint[] fillPaintSequence,
                                      Paint[] outlinePaintSequence,
                                      Stroke[] strokeSequence,
                                      Stroke[] outlineStrokeSequence,
                                      Shape[] shapeSequence)
        Creates a new supplier.
        Parameters:
        paintSequence - the paint sequence.
        fillPaintSequence - the fill paint sequence.
        outlinePaintSequence - the outline paint sequence.
        strokeSequence - the stroke sequence.
        outlineStrokeSequence - the outline stroke sequence.
        shapeSequence - the shape sequence.
        Since:
        1.0.6
    • Method Detail

      • getNextPaint

        public Paint getNextPaint()
        Returns the next paint in the sequence.
        Specified by:
        getNextPaint in interface DrawingSupplier
        Returns:
        The paint.
      • getNextFillPaint

        public Paint getNextFillPaint()
        Returns the next fill paint in the sequence.
        Specified by:
        getNextFillPaint in interface DrawingSupplier
        Returns:
        The paint.
        Since:
        1.0.6
      • getNextShape

        public Shape getNextShape()
        Returns the next shape in the sequence.
        Specified by:
        getNextShape in interface DrawingSupplier
        Returns:
        The shape.
      • createStandardSeriesShapes

        public static Shape[] createStandardSeriesShapes()
        Creates an array of standard shapes to display for the items in series on charts.
        Returns:
        The array of shapes.
      • equals

        public boolean equals​(Object obj)
        Tests this object for equality with another object.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.