Example usage for org.jfree.chart.plot PolarPlot setAngleGridlinePaint

List of usage examples for org.jfree.chart.plot PolarPlot setAngleGridlinePaint

Introduction

In this page you can find the example usage for org.jfree.chart.plot PolarPlot setAngleGridlinePaint.

Prototype

public void setAngleGridlinePaint(Paint paint) 

Source Link

Document

Sets the paint for the grid lines plotted against the angular axis.

Usage

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

private static JFreeChart createChart(XYDataset xydataset) {
    JFreeChart jfreechart = ChartFactory.createPolarChart("Polar Chart Demo 1", xydataset, true, false, false);
    jfreechart.setBackgroundPaint(Color.white);
    PolarPlot polarplot = (PolarPlot) jfreechart.getPlot();
    polarplot.setBackgroundPaint(Color.lightGray);
    polarplot.addCornerTextItem("Corner Item 1");
    polarplot.addCornerTextItem("Corner Item 2");
    polarplot.setAngleGridlinePaint(Color.white);
    polarplot.setRadiusGridlinePaint(Color.white);
    NumberAxis numberaxis = (NumberAxis) polarplot.getAxis();
    numberaxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    return jfreechart;
}

From source file:it.alus.GPSreceiver.instruments.SatelliteRadar.java

public SatelliteRadar() {
    super(null);//from  w ww  .ja  v  a2 s.c o  m
    azimuth = new int[MAX_SAT];
    elevation = new int[MAX_SAT];
    snr = new int[MAX_SAT];
    resetArray();
    satSeries = new XYSeries("Satellites");
    XYSeriesCollection seriescollection = new XYSeriesCollection();
    seriescollection.addSeries(satSeries);
    jChart = ChartFactory.createPolarChart("Satellites", seriescollection, true, false, false);
    jChart.setBackgroundPaint(Color.white);
    PolarPlot polarplot = (PolarPlot) jChart.getPlot();
    polarplot.setBackgroundPaint(Color.lightGray);
    polarplot.setAngleGridlinePaint(Color.white);
    polarplot.setRadiusGridlinePaint(Color.white);
    NumberAxis numberaxis = (NumberAxis) polarplot.getAxis();
    numberaxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    super.setChart(jChart);
    super.setMouseZoomable(false);
    super.setPreferredSize(new Dimension(500, 270));
}