use of org.jfree.chart.event.PlotChangeEvent in project SIMVA-SoS by SESoS.
the class CategoryPlot method annotationChanged.
/**
* Receives notification of a change to an {@link Annotation} added to
* this plot.
*
* @param event information about the event (not used here).
*
* @since 1.0.14
*/
@Override
public void annotationChanged(AnnotationChangeEvent event) {
if (getParent() != null) {
getParent().annotationChanged(event);
} else {
PlotChangeEvent e = new PlotChangeEvent(this);
notifyListeners(e);
}
}
use of org.jfree.chart.event.PlotChangeEvent in project SIMVA-SoS by SESoS.
the class XYPlot method datasetChanged.
/**
* Receives notification of a change to the plot's dataset.
* <P>
* The axis ranges are updated if necessary.
*
* @param event information about the event (not used here).
*/
@Override
public void datasetChanged(DatasetChangeEvent event) {
configureDomainAxes();
configureRangeAxes();
if (getParent() != null) {
getParent().datasetChanged(event);
} else {
PlotChangeEvent e = new PlotChangeEvent(this);
e.setType(ChartChangeEventType.DATASET_UPDATED);
notifyListeners(e);
}
}
use of org.jfree.chart.event.PlotChangeEvent in project processdash by dtuma.
the class RadarPlot method setInteriorGap.
/**
* Sets the interior gap.
*
* @param percent The gap.
*/
public void setInteriorGap(double percent) {
// check arguments...
if ((percent < 0.0) || (percent > MAX_INTERIOR_GAP)) {
throw new IllegalArgumentException("RadarPlot.setInteriorGap(double): percentage " + "outside valid range.");
}
// make the change...
if (this.interiorGap != percent) {
this.interiorGap = percent;
notifyListeners(new PlotChangeEvent(this));
}
}
use of org.jfree.chart.event.PlotChangeEvent in project processdash by dtuma.
the class RadarPlot method setAxisLabelFont.
/**
* Sets the axis label font.
* <P>
* Notifies registered listeners that the plot has been changed.
* @param font The new axis label font.
*/
public void setAxisLabelFont(Font font) {
// check arguments...
if (font == null) {
throw new IllegalArgumentException("RadarPlot.setAxisLabelFont(...): " + "null font not allowed.");
}
// make the change...
if (!this.axisLabelFont.equals(font)) {
this.axisLabelFont = font;
notifyListeners(new PlotChangeEvent(this));
}
}
use of org.jfree.chart.event.PlotChangeEvent in project processdash by dtuma.
the class DiscPlot method setDiscDistributor.
/**
* @param discDistributor The discDistributor to set.
*/
public void setDiscDistributor(AbstractDiscItemDistributor discDistributor) {
if (discDistributor == null)
throw new IllegalArgumentException("Disc distributor cannot be null");
this.discDistributor = discDistributor;
this.discDistributor.setDataset(this.dataset);
notifyListeners(new PlotChangeEvent(this));
}
Aggregations