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

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

Introduction

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

Prototype

public void setRoseCenterPaint(Paint paint) 

Source Link

Document

Sets the paint used to fill the inner background area 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 w  w w . jav  a  2s  .  c o m*/
    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;
}