Example usage for org.jfree.chart.axis NumberAxis setAttributedLabel

List of usage examples for org.jfree.chart.axis NumberAxis setAttributedLabel

Introduction

In this page you can find the example usage for org.jfree.chart.axis NumberAxis setAttributedLabel.

Prototype

public void setAttributedLabel(String label) 

Source Link

Document

Sets the attributed label for the axis and sends an AxisChangeEvent to all registered listeners.

Usage

From source file:sentimentanalyzer.ChartController.java

public void updateTheIntervalString_counts() {
    NumberAxis domainAxis = (NumberAxis) this.plot_counter.getDomainAxis();
    domainAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
    domainAxis.setAttributedLabel("Intervals of: " + this.interval + " hours");
}