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

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

Introduction

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

Prototype

public void setUpperMargin(double margin) 

Source Link

Document

Sets the upper margin for the axis (as a percentage of the axis range) 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);
    numberAxis.setTickLabelFont(font);/*from   w  w w  . j a va 2 s . c  om*/
    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);
}