Class TranscriptEditorCaretHookAdapter

java.lang.Object
ca.phon.app.session.editor.view.transcript.TranscriptEditorCaretHookAdapter
All Implemented Interfaces:
TranscriptEditorCaretHook
Direct Known Subclasses:
TierChangeCaretHook

public class TranscriptEditorCaretHookAdapter extends Object implements TranscriptEditorCaretHook
Adapter class for TranscriptEditorCaretHook.
  • Constructor Details

    • TranscriptEditorCaretHookAdapter

      public TranscriptEditorCaretHookAdapter()
  • Method Details

    • beforeSetDot

      public boolean beforeSetDot(int oldDot, int newDot)
      Description copied from interface: TranscriptEditorCaretHook
      Called before the caret is moved.
      Specified by:
      beforeSetDot in interface TranscriptEditorCaretHook
      Parameters:
      oldDot - the old caret position
      newDot - the new caret position to move to
      Returns:
      true if the caret should be moved, false otherwise
    • afterSetDot

      public void afterSetDot(int oldDot, int newDot)
      Description copied from interface: TranscriptEditorCaretHook
      Called after the caret is moved.
      Specified by:
      afterSetDot in interface TranscriptEditorCaretHook
      Parameters:
      oldDot - the old caret position
      newDot - the new caret position
    • caretFrozen

      public void caretFrozen(boolean frozen)
      Description copied from interface: TranscriptEditorCaretHook
      Called when the caret is frozen or unfrozen.
      Specified by:
      caretFrozen in interface TranscriptEditorCaretHook
      Parameters:
      frozen - true if the caret is frozen, false if unfrozen
    • beforeMoveCaret

      public boolean beforeMoveCaret(int dot, int moveTo)
      Description copied from interface: TranscriptEditorCaretHook
      Called when the caret is moved to a new location.
      Specified by:
      beforeMoveCaret in interface TranscriptEditorCaretHook
      Parameters:
      dot - the previous location of the caret
      moveTo - the move location of the caret
      Returns:
      true if the caret should be moved, false otherwise
    • afterMoveCaret

      public void afterMoveCaret(int dot, int moveTo)
      Description copied from interface: TranscriptEditorCaretHook
      Called when the caret is moved to a new location.
      Specified by:
      afterMoveCaret in interface TranscriptEditorCaretHook
      Parameters:
      dot - the previous location of the caret
      moveTo - the move location of the caret