Example usage for org.jfree.chart.plot RingPlot setDirection

List of usage examples for org.jfree.chart.plot RingPlot setDirection

Introduction

In this page you can find the example usage for org.jfree.chart.plot RingPlot setDirection.

Prototype

public void setDirection(Rotation direction) 

Source Link

Document

Sets the direction in which the pie sections are drawn and sends a PlotChangeEvent to all registered listeners.

Usage

From source file:unikn.dbis.univis.visualization.chart.RingChart.java

/**
 * Makes the plot.//ww w  .  j av a  2s .  com
 */
protected void plot() {
    RingPlot plot = (RingPlot) getChart().getPlot();
    plot.setStartAngle(290);
    plot.setDirection(Rotation.CLOCKWISE);
    plot.setForegroundAlpha(0.5f);
    plot.setNoDataMessage("No data available");
    plot.setLabelGenerator(null);
    plot.setLegendLabelGenerator(new LabelGenerator(createTotal()));
}