Package com.myscript.iink
Interface IOffscreenGestureHandler
public interface IOffscreenGestureHandler
The listener interface for handling offscreen gesture events.
-
Method Summary
Modifier and TypeMethodDescription@NotNull OffscreenGestureActiononInsert(@NotNull OffscreenEditor editor, @NotNull String gestureStrokeId, @NotNull String[] before, @NotNull String[] after) Invoked when an insert gesture has been drawn between two portions of a text line, or at the beginning or end of a line.@NotNull OffscreenGestureActiononJoin(@NotNull OffscreenEditor editor, @NotNull String gestureStrokeId, @NotNull String[] before, @NotNull String[] after) Invoked when a join gesture has been drawn between two portions of a text line, or at the beginning or end of a line.@NotNull OffscreenGestureActiononScratch(@NotNull OffscreenEditor editor, @NotNull String gestureStrokeId, @NotNull String[] itemIds) Invoked when a portion of text has been scratched.@NotNull OffscreenGestureActiononStrikethrough(@NotNull OffscreenEditor editor, @NotNull String gestureStrokeId, @NotNull String[] itemIds) Invoked when a portion of text has been striked through.@NotNull OffscreenGestureActiononSurround(@NotNull OffscreenEditor editor, @NotNull String gestureStrokeId, @NotNull String[] itemIds) Invoked when a portion of text has been surrounded.@NotNull OffscreenGestureActiononUnderline(@NotNull OffscreenEditor editor, @NotNull String gestureStrokeId, @NotNull String[] itemIds) Invoked when a portion of text has been underlined.
-
Method Details
-
onUnderline
@NotNull @NotNull OffscreenGestureAction onUnderline(@NotNull @NotNull OffscreenEditor editor, @NotNull @NotNull String gestureStrokeId, @NotNull @NotNull String[] itemIds) Invoked when a portion of text has been underlined.- Parameters:
editor- the offscreen editor.gestureStrokeId- the id of the gesture stroke.itemIds- the underlined portion of text.- Returns:
- the OffscreenGestureAction to perform.
-
onSurround
@NotNull @NotNull OffscreenGestureAction onSurround(@NotNull @NotNull OffscreenEditor editor, @NotNull @NotNull String gestureStrokeId, @NotNull @NotNull String[] itemIds) Invoked when a portion of text has been surrounded.- Parameters:
editor- the offscreen editor.gestureStrokeId- the id of the gesture stroke.itemIds- the surrounded portion of text.- Returns:
- the OffscreenGestureAction to perform.
-
onJoin
@NotNull @NotNull OffscreenGestureAction onJoin(@NotNull @NotNull OffscreenEditor editor, @NotNull @NotNull String gestureStrokeId, @NotNull @NotNull String[] before, @NotNull @NotNull String[] after) Invoked when a join gesture has been drawn between two portions of a text line, or at the beginning or end of a line.- Parameters:
editor- the offscreen editor.gestureStrokeId- the id of the gesture stroke.before- the portion of the text line before the join gesture.after- the portion of the text line after the join gesture.- Returns:
- the OffscreenGestureAction to perform.
-
onInsert
@NotNull @NotNull OffscreenGestureAction onInsert(@NotNull @NotNull OffscreenEditor editor, @NotNull @NotNull String gestureStrokeId, @NotNull @NotNull String[] before, @NotNull @NotNull String[] after) Invoked when an insert gesture has been drawn between two portions of a text line, or at the beginning or end of a line.- Parameters:
editor- the offscreen editor.gestureStrokeId- the id of the gesture stroke.before- the portion of the text line before the insert gesture.after- the portion of the text line after the insert gesture.- Returns:
- the OffscreenGestureAction to perform.
-
onStrikethrough
@NotNull @NotNull OffscreenGestureAction onStrikethrough(@NotNull @NotNull OffscreenEditor editor, @NotNull @NotNull String gestureStrokeId, @NotNull @NotNull String[] itemIds) Invoked when a portion of text has been striked through.- Parameters:
editor- the offscreen editor.gestureStrokeId- the id of the gesture stroke.itemIds- the striked through portion of text.- Returns:
- the OffscreenGestureAction to perform.
-
onScratch
@NotNull @NotNull OffscreenGestureAction onScratch(@NotNull @NotNull OffscreenEditor editor, @NotNull @NotNull String gestureStrokeId, @NotNull @NotNull String[] itemIds) Invoked when a portion of text has been scratched.- Parameters:
editor- the offscreen editor.gestureStrokeId- the id of the gesture stroke.itemIds- the scratched portion of text.- Returns:
- the OffscreenGestureAction to perform.
-