Search in sources :

Example 1 with PlotChangeEvent

use of org.jfree.chart.event.PlotChangeEvent in project processdash by dtuma.

the class RadarPlot method setAxisLabelGap.

/**
     * Sets the axis label gap percent.
     */
public void setAxisLabelGap(double percent) {
    // check arguments...
    if ((percent < 0.0) || (percent > MAX_AXIS_LABEL_GAP)) {
        throw new IllegalArgumentException("RadarPlot.setAxisLabelGap(double): " + "percentage outside valid range.");
    }
    // make the change...
    if (this.axisLabelGap != percent) {
        this.axisLabelGap = percent;
        notifyListeners(new PlotChangeEvent(this));
    }
}
Also used : PlotChangeEvent(org.jfree.chart.event.PlotChangeEvent)

Example 2 with PlotChangeEvent

use of org.jfree.chart.event.PlotChangeEvent in project processdash by dtuma.

the class RadarPlot method setRadius.

/**
     * Sets the radius.
     *
     * @param percent  the new value.
     */
public void setRadius(double percent) {
    // check arguments...
    if ((percent <= 0.0) || (percent > MAX_RADIUS)) {
        throw new IllegalArgumentException("RadarPlot.setRadius(double): percentage " + "outside valid range.");
    }
    // make the change (if necessary)...
    if (this.radius != percent) {
        this.radius = percent;
        notifyListeners(new PlotChangeEvent(this));
    }
}
Also used : PlotChangeEvent(org.jfree.chart.event.PlotChangeEvent)

Example 3 with PlotChangeEvent

use of org.jfree.chart.event.PlotChangeEvent in project processdash by dtuma.

the class RadarPlot method setPlotLinePaint.

/**
     * Sets the plot line paint.
     * <P>
     * Notifies registered listeners that the plot has been changed.
     * @param paint The new plot line paint.
     */
public void setPlotLinePaint(Paint paint) {
    // check arguments...
    if (paint == null) {
        throw new IllegalArgumentException("RadarPlot.setPlotPaint(...): " + "null paint not allowed.");
    }
    // make the change...
    if (!this.plotLinePaint.equals(paint)) {
        this.plotLinePaint = paint;
        notifyListeners(new PlotChangeEvent(this));
    }
}
Also used : PlotChangeEvent(org.jfree.chart.event.PlotChangeEvent)

Example 4 with PlotChangeEvent

use of org.jfree.chart.event.PlotChangeEvent in project processdash by dtuma.

the class RadarPlot method setShowAxisLabels.

/**
     * Sets the show axis labels flag.
     * <P>
     * Notifies registered listeners that the plot has been changed.
     *
     * @param flag  the new show axis labels flag.
     */
public void setShowAxisLabels(boolean flag) {
    if (this.showAxisLabels != flag) {
        this.showAxisLabels = flag;
        notifyListeners(new PlotChangeEvent(this));
    }
}
Also used : PlotChangeEvent(org.jfree.chart.event.PlotChangeEvent)

Example 5 with PlotChangeEvent

use of org.jfree.chart.event.PlotChangeEvent in project processdash by dtuma.

the class RadarPlot method setAxisLabelPaint.

/**
     * Sets the axis label paint.
     * <P>
     * Notifies registered listeners that the plot has been changed.
     * @param paint The new axis label paint.
     */
public void setAxisLabelPaint(Paint paint) {
    // check arguments...
    if (paint == null) {
        throw new IllegalArgumentException("RadarPlot.setAxisLabelPaint(...): " + "null paint not allowed.");
    }
    // make the change...
    if (!this.axisLabelPaint.equals(paint)) {
        this.axisLabelPaint = paint;
        notifyListeners(new PlotChangeEvent(this));
    }
}
Also used : PlotChangeEvent(org.jfree.chart.event.PlotChangeEvent)

Aggregations

PlotChangeEvent (org.jfree.chart.event.PlotChangeEvent)21 ValueAxis (org.jfree.chart.axis.ValueAxis)1 RendererChangeListener (org.jfree.chart.event.RendererChangeListener)1