Interface TouchSelection.Host

Enclosing class:
TouchSelection

public static interface TouchSelection.Host
What the chrome needs from the editor it decorates.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether Cut and Paste are offered.
    The font the toolbar labels are drawn in and the handles are sized from.
    int[]
    edgeRect(boolean start)
    Where an end of the selection is, in coordinates relative to the editor's own origin.
    void
    toolbarAction(int action)
    Runs a toolbar action.
  • Method Details

    • edgeRect

      int[] edgeRect(boolean start)

      Where an end of the selection is, in coordinates relative to the editor's own origin.

      Parameters
      • start: true for the start of the selection, false for its end
      Returns

      {x, top, height} of the caret at that end

    • canEdit

      boolean canEdit()

      Whether Cut and Paste are offered.

      Returns

      true when the content can be changed

    • toolbarAction

      void toolbarAction(int action)

      Runs a toolbar action.

      Parameters
      • action: COPY, CUT, PASTE or SELECT_ALL
    • chromeFont

      Font chromeFont()

      The font the toolbar labels are drawn in and the handles are sized from.

      Returns

      the font