Example usage for org.jfree.chart.title PaintScaleLegend getAxis

List of usage examples for org.jfree.chart.title PaintScaleLegend getAxis

Introduction

In this page you can find the example usage for org.jfree.chart.title PaintScaleLegend getAxis.

Prototype

public ValueAxis getAxis() 

Source Link

Document

Returns the axis for the paint scale.

Usage

From source file:org.gumtree.vis.hist2d.Hist2DPanel.java

@Override
public void updatePaintScaleLegend() {
    PaintScaleLegend legend = getPaintScaleLegend();
    double max = ((IXYZDataset) getDataset()).getZMax();
    double min = ((IXYZDataset) getDataset()).getZMin();
    if (legend != null) {
        ((ColorPaintScale) legend.getScale()).setLowerBound(min);
        ((ColorPaintScale) legend.getScale()).setUpperBound(max);
        legend.getAxis().setLowerBound(min);
        legend.getAxis().setUpperBound(max);
    }/*w  w  w.  j  a  v a 2s. c  o  m*/
}