1 package org
.libreoffice
.canvas
;
3 import org
.libreoffice
.LibreOfficeMainActivity
;
5 import org
.libreoffice
.R
;
8 * Selection handle for showing and manipulating the start of a selection.
10 public class SelectionHandleStart
extends SelectionHandle
{
11 public SelectionHandleStart(LibreOfficeMainActivity context
) {
12 super(context
, getBitmapForDrawable(context
, R
.drawable
.handle_alias_start
));
16 * Change the position of the handle on the screen. Take into account the
17 * handle alignment to the right.
20 public void reposition(float x
, float y
) {
21 super.reposition(x
, y
);
23 float offset
= mScreenPosition
.width();
24 mScreenPosition
.offset(-offset
, 0);
28 * Define the type of the handle.
31 public HandleType
getHandleType() {
32 return HandleType
.START
;