Interface MovementListener

All Superinterfaces:
EventListener, SWTEventListener

public interface MovementListener extends SWTEventListener
This listener is invoked when a new offset is required based on the current offset and a movement type.
Since:
3.3
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method is called when a new offset is required based on the current offset and a movement type.
    void
    This method is called when a new offset is required based on the current offset and a movement type.
  • Method Details

    • getNextOffset

      void getNextOffset(MovementEvent event)
      This method is called when a new offset is required based on the current offset and a movement type.

      The following event fields are used:

      • event.lineOffset line start offset (input)
      • event.lineText line text (input)
      • event.movement the movement type (input)
      • event.offset the current offset (input)
      • event.newOffset the new offset (input, output)
      Parameters:
      event - the event
      See Also:
    • getPreviousOffset

      void getPreviousOffset(MovementEvent event)
      This method is called when a new offset is required based on the current offset and a movement type.

      The following event fields are used:

      • event.lineOffset line start offset (input)
      • event.lineText line text (input)
      • event.movement the movement type (input)
      • event.offset the current offset (input)
      • event.newOffset the new offset (input, output)
      Parameters:
      event - the event
      See Also: