Module platform

Class AbstractOverlay

java.lang.Object
org.jfree.chart.panel.AbstractOverlay
Direct Known Subclasses:
CrosshairOverlay

public class AbstractOverlay extends Object
A base class for implementing overlays for a ChartPanel.
  • Constructor Details

    • AbstractOverlay

      public AbstractOverlay()
      Default constructor.
  • Method Details

    • addChangeListener

      public void addChangeListener(OverlayChangeListener listener)
      Registers an object for notification of changes to the overlay.
      Parameters:
      listener - the listener (null not permitted).
      See Also:
    • removeChangeListener

      public void removeChangeListener(OverlayChangeListener listener)
      Deregisters an object for notification of changes to the overlay.
      Parameters:
      listener - the listener (null not permitted)
      See Also:
    • fireOverlayChanged

      public void fireOverlayChanged()
      Sends a default ChartChangeEvent to all registered listeners.

      This method is for convenience only.

    • notifyListeners

      protected void notifyListeners(OverlayChangeEvent event)
      Sends a ChartChangeEvent to all registered listeners.
      Parameters:
      event - information about the event that triggered the notification.