Example usage for org.jfree.chart.plot DrawingSupplier getNextOutlineStroke

List of usage examples for org.jfree.chart.plot DrawingSupplier getNextOutlineStroke

Introduction

In this page you can find the example usage for org.jfree.chart.plot DrawingSupplier getNextOutlineStroke.

Prototype

public Stroke getNextOutlineStroke();

Source Link

Document

Returns the next Stroke object in a sequence maintained by the supplier.

Usage

From source file:KIDLYAbstractRenderer.java

/**
 * Returns the stroke used to outline the items in a series.
 *
 * @param series  the series (zero-based index).
 *
 * @return The stroke (never <code>null</code>).
 *
 * @since 1.0.6//from  w w w.j av a 2  s  .co m
 */
public Stroke lookupSeriesOutlineStroke(int series) {

    // return the override, if there is one...
    if (this.outlineStroke != null) {
        return this.outlineStroke;
    }

    // otherwise look up the stroke table
    Stroke result = getSeriesOutlineStroke(series);
    if (result == null && this.autoPopulateSeriesOutlineStroke) {
        DrawingSupplier supplier = getDrawingSupplier();
        if (supplier != null) {
            result = supplier.getNextOutlineStroke();
            setSeriesOutlineStroke(series, result, false);
        }
    }
    if (result == null) {
        result = this.baseOutlineStroke;
    }
    return result;

}