Example usage for org.jfree.chart.plot CompassPlot setRosePaint

List of usage examples for org.jfree.chart.plot CompassPlot setRosePaint

Introduction

In this page you can find the example usage for org.jfree.chart.plot CompassPlot setRosePaint.

Prototype

public void setRosePaint(Paint paint) 

Source Link

Document

Sets the paint used to fill the outer circle of the compass, and sends a PlotChangeEvent to all registered listeners.

Usage

From source file:org.jfree.chart.demo.CompassDemo1.java

private static JFreeChart createChart(ValueDataset valuedataset) {
    CompassPlot compassplot = new CompassPlot(valuedataset);
    compassplot.setSeriesNeedle(7);//from www  .jav a  2s  . c  om
    compassplot.setSeriesPaint(0, Color.black);
    compassplot.setSeriesOutlinePaint(0, Color.black);
    compassplot.setRosePaint(Color.red);
    compassplot.setRoseHighlightPaint(Color.gray);
    compassplot.setRoseCenterPaint(Color.white);
    compassplot.setDrawBorder(false);
    JFreeChart jfreechart = new JFreeChart(compassplot);
    return jfreechart;
}