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

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

Introduction

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

Prototype

public void setStartAngle(double angle) 

Source Link

Document

Sets the starting angle and sends a PlotChangeEvent to all registered listeners.

Usage

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

/**
 * Makes the plot./*  www  .  j a va2  s . c o m*/
 */
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()));
}