Package org.jfree.chart.panel
Class AbstractOverlay
java.lang.Object
org.jfree.chart.panel.AbstractOverlay
- Direct Known Subclasses:
CrosshairOverlay
A base class for implementing overlays for a
ChartPanel
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeListener
(OverlayChangeListener listener) Registers an object for notification of changes to the overlay.void
Sends a defaultChartChangeEvent
to all registered listeners.protected void
Sends aChartChangeEvent
to all registered listeners.void
removeChangeListener
(OverlayChangeListener listener) Deregisters an object for notification of changes to the overlay.
-
Constructor Details
-
AbstractOverlay
public AbstractOverlay()Default constructor.
-
-
Method Details
-
addChangeListener
Registers an object for notification of changes to the overlay.- Parameters:
listener
- the listener (null
not permitted).- See Also:
-
removeChangeListener
Deregisters an object for notification of changes to the overlay.- Parameters:
listener
- the listener (null
not permitted)- See Also:
-
fireOverlayChanged
Sends a defaultChartChangeEvent
to all registered listeners.This method is for convenience only.
-
notifyListeners
Sends aChartChangeEvent
to all registered listeners.- Parameters:
event
- information about the event that triggered the notification.
-