Example usage for org.jfree.chart.plot IntervalMarker getPaint

List of usage examples for org.jfree.chart.plot IntervalMarker getPaint

Introduction

In this page you can find the example usage for org.jfree.chart.plot IntervalMarker getPaint.

Prototype

public Paint getPaint() 

Source Link

Document

Returns the paint.

Usage

From source file:com.googlecode.logVisualizer.chart.turnrundownGantt.GanttChartBuilder.java

private void addFamiliarMarkers(final CategoryPlot plot) {
    final LookAheadIterator<FamiliarChange> index = new LookAheadIterator<FamiliarChange>(
            getLogData().getFamiliarChanges().iterator());
    while (index.hasNext()) {
        final FamiliarChange currentItem = index.next();
        final int intervalEnd = index.hasNext() ? index.peek().getTurnNumber() : lastTurnNumber;
        final IntervalMarker familiarUsage = new IntervalMarker(currentItem.getTurnNumber(), intervalEnd);
        familiarUsage.setPaint(getColor(currentItem.getFamiliarName()));
        if (!familiarUsage.getPaint().equals(Color.white))
            plot.addRangeMarker(familiarUsage, Layer.BACKGROUND);
    }//from   www  .  jav  a  2 s.com
}