Interface TouchSelection.Host
- Enclosing class:
TouchSelection
public static interface TouchSelection.Host
What the chrome needs from the editor it decorates.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanEdit()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.voidtoolbarAction(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,PASTEorSELECT_ALL
-
chromeFont
Font chromeFont()The font the toolbar labels are drawn in and the handles are sized from.
Returns
the font
-