Example usage for org.jfree.chart.plot.dial DialLayerChangeEvent DialLayerChangeEvent

List of usage examples for org.jfree.chart.plot.dial DialLayerChangeEvent DialLayerChangeEvent

Introduction

In this page you can find the example usage for org.jfree.chart.plot.dial DialLayerChangeEvent DialLayerChangeEvent.

Prototype

public DialLayerChangeEvent(DialLayer layer) 

Source Link

Document

Creates a new instance.

Usage

From source file:net.sf.jasperreports.chartthemes.spring.ScaledDialPointer.java

/**
 * Sets the fill paint and sends a {@link DialLayerChangeEvent} to all
 * registered listeners./*from w  ww. j  ava 2 s.c o m*/
 *
 * @param paint  the paint (<code>null</code> not permitted).
 *
 * @see #getFillPaint()
 *
 * @since 1.0.8
 */
@Override
public void setFillPaint(Paint paint) {
    if (paint == null) {
        throw new IllegalArgumentException("Null 'paint' argument.");
    }
    this.fillPaint = paint;
    notifyListeners(new DialLayerChangeEvent(this));
}

From source file:net.sf.fspdfs.chartthemes.spring.ScaledDialPointer.java

/**
 * Sets the fill paint and sends a {@link DialLayerChangeEvent} to all
 * registered listeners./*from w  w w. j  ava  2  s . c o m*/
 *
 * @param paint  the paint (<code>null</code> not permitted).
 *
 * @see #getFillPaint()
 *
 * @since 1.0.8
 */
public void setFillPaint(Paint paint) {
    if (paint == null) {
        throw new IllegalArgumentException("Null 'paint' argument.");
    }
    this.fillPaint = paint;
    notifyListeners(new DialLayerChangeEvent(this));
}