Example usage for org.jfree.chart.plot Crosshair setLabelBackgroundPaint

List of usage examples for org.jfree.chart.plot Crosshair setLabelBackgroundPaint

Introduction

In this page you can find the example usage for org.jfree.chart.plot Crosshair setLabelBackgroundPaint.

Prototype

public void setLabelBackgroundPaint(Paint paint) 

Source Link

Document

Sets the label background paint and sends a property change event with the name 'labelBackgroundPaint') to all registered listeners.

Usage

From source file:org.glotaran.core.datadisplayers.multispec.MultiSpecEditorTopComponent.java

private Crosshair createCroshair(Color crhColor, ImageCrosshairLabelGenerator lebelGenereator) {
    Crosshair crosshair = new Crosshair(0.0);
    crosshair.setPaint(crhColor);/*  ww w.  ja v  a2  s  .  c om*/
    if (lebelGenereator != null) {
        crosshair.setLabelGenerator(lebelGenereator);
    }
    crosshair.setLabelVisible(true);
    crosshair.setLabelAnchor(RectangleAnchor.BOTTOM_RIGHT);
    crosshair.setLabelBackgroundPaint(new Color(255, 255, 0, 100));
    return crosshair;
}