Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / android / source / src / java / org / libreoffice / canvas / SelectionHandleStart.java
blob66b109f86e1317c26e0811f5c9efc668f8849cb6
1 package org.libreoffice.canvas;
3 import android.content.Context;
5 import org.libreoffice.R;
7 /**
8 * Selection handle for showing and manipulating the start of a selection.
9 */
10 public class SelectionHandleStart extends SelectionHandle {
11 public SelectionHandleStart(Context context) {
12 super(getBitmapForDrawable(context, R.drawable.handle_alias_start));
15 /**
16 * Change the position of the handle on the screen. Take into account the
17 * handle alignment to the right.
19 @Override
20 public void reposition(float x, float y) {
21 super.reposition(x, y);
22 // align to the right
23 float offset = mScreenPosition.width();
24 mScreenPosition.offset(-offset, 0);
27 /**
28 * Define the type of the handle.
30 @Override
31 public HandleType getHandleType() {
32 return HandleType.START;