LibreOffice Module android (master) 1
SelectionHandleMiddle.java
Go to the documentation of this file.
1package org.libreoffice.canvas;
2
4
5import org.libreoffice.R;
6
12 super(context, getBitmapForDrawable(context, R.drawable.handle_alias_middle));
13 }
14
19 @Override
20 public void reposition(float x, float y) {
21 super.reposition(x, y);
22 // align to the center
23 float offset = mScreenPosition.width() / 2.0f;
24 mScreenPosition.offset(-offset, 0);
25 }
26
30 @Override
32 return HandleType.MIDDLE;
33 }
34}
Main activity of the LibreOffice App.
Selection handle that is used to manipulate the cursor.
SelectionHandleMiddle(LibreOfficeMainActivity context)
void reposition(float x, float y)
Change the position of the handle on the screen.
HandleType getHandleType()
Define the type of the handle.
Selection handle is a common class for "start", "middle" and "end" types of selection handles.
float y
float x
const sal_uInt8 R