Interface PaintListener

All Superinterfaces:
EventListener, SWTEventListener
All Known Implementing Classes:
AnnotationPainter, HyperlinkHandler, MarginPainter, MatchingCharacterPainter, WhitespaceCharacterPainter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PaintListener extends SWTEventListener
Classes which implement this interface provide methods that deal with the events that are generated when the control needs to be painted.

After creating an instance of a class that implements this interface it can be added to a control using the addPaintListener method and removed using the removePaintListener method. When a paint event occurs, the paintControl method will be invoked.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sent when a paint event occurs for the control.
  • Method Details

    • paintControl

      void paintControl(PaintEvent e)
      Sent when a paint event occurs for the control.
      Parameters:
      e - an event containing information about the paint