Example usage for org.jfree.chart.axis NumberAxis3D setTickLabelPaint

List of usage examples for org.jfree.chart.axis NumberAxis3D setTickLabelPaint

Introduction

In this page you can find the example usage for org.jfree.chart.axis NumberAxis3D setTickLabelPaint.

Prototype

public void setTickLabelPaint(Paint paint) 

Source Link

Document

Sets the paint used to draw tick labels (if they are showing) and sends an AxisChangeEvent to all registered listeners.

Usage

From source file:org.sonar.plugins.abacus.chart.BarChart3D.java

private void configureRangeAxis(CategoryPlot plot, String valueLabelSuffix, Font font) {
    NumberAxis3D numberAxis = new NumberAxis3D();
    numberAxis.setUpperMargin(0.3);//from  w w w  . j a v a  2s . c  o  m
    numberAxis.setTickLabelFont(font);
    numberAxis.setTickLabelPaint(OUTLINE_COLOR);
    String suffix = "";
    if (valueLabelSuffix != null && !"".equals(valueLabelSuffix)) {
        suffix = new StringBuilder().append("'").append(valueLabelSuffix).append("'").toString();
    }
    numberAxis.setNumberFormatOverride(new DecimalFormat("0" + suffix));
    numberAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    plot.setRangeAxis(numberAxis);
}