Interface ActiveLineRangeListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
Gutter.TextAreaListener

public interface ActiveLineRangeListener extends EventListener
Listens for "active line range" events from an RSyntaxTextArea. If a text area contains some semantic knowledge of the programming language being edited, it may broadcast ActiveLineRangeEvents whenever the caret moves into a new "block" of code. Listeners can listen for these events and respond accordingly.

See the RSTALanguageSupport project at https://github.com/bobbylight/RSTALanguageSupport for some LanguageSupport implementations that may broadcast these events. Note that if an RSTA/LanguageSupport does not support broadcasting these events, the listener will simply never receive any notifications.

Version:
1.0
  • Method Details

    • activeLineRangeChanged

      void activeLineRangeChanged(ActiveLineRangeEvent e)
      Called whenever the "active line range" changes.
      Parameters:
      e - Information about the line range change. If there is no longer an "active line range," the "minimum" and "maximum" line values should both be -1.