LibreOffice Module android (master)
1
android
source
src
java
org
libreoffice
canvas
SelectionHandleMiddle.java
Go to the documentation of this file.
1
package
org.libreoffice.canvas;
2
3
import
org
.
libreoffice
.
LibreOfficeMainActivity
;
4
5
import
org
.
libreoffice
.R;
6
10
public
class
SelectionHandleMiddle
extends
SelectionHandle
{
11
public
SelectionHandleMiddle
(
LibreOfficeMainActivity
context) {
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
31
public
HandleType
getHandleType
() {
32
return
HandleType
.
MIDDLE
;
33
}
34
}
org.libreoffice.LibreOfficeMainActivity
Main activity of the LibreOffice App.
Definition:
LibreOfficeMainActivity.java:60
org.libreoffice.canvas.SelectionHandleMiddle
Selection handle that is used to manipulate the cursor.
Definition:
SelectionHandleMiddle.java:10
org.libreoffice.canvas.SelectionHandleMiddle.SelectionHandleMiddle
SelectionHandleMiddle(LibreOfficeMainActivity context)
Definition:
SelectionHandleMiddle.java:11
org.libreoffice.canvas.SelectionHandleMiddle.reposition
void reposition(float x, float y)
Change the position of the handle on the screen.
Definition:
SelectionHandleMiddle.java:20
org.libreoffice.canvas.SelectionHandleMiddle.getHandleType
HandleType getHandleType()
Define the type of the handle.
Definition:
SelectionHandleMiddle.java:31
org.libreoffice.canvas.SelectionHandle
Selection handle is a common class for "start", "middle" and "end" types of selection handles.
Definition:
SelectionHandle.java:14
y
float y
x
float x
org.libreoffice.canvas.SelectionHandle.HandleType
Definition:
SelectionHandle.java:72
org.libreoffice.canvas.SelectionHandle.HandleType.MIDDLE
MIDDLE
Definition:
SelectionHandle.java:72
org.libreoffice
org
R
const sal_uInt8 R
Generated on Sun Jul 30 2023 04:39:27 for LibreOffice Module android (master) by
1.9.3