toggle menu
drawboard
1.1.0
androidJvm
switch theme
search in API
drawboard
/
com.king.drawboard.draw
/
DrawLine
Draw
Line
open
class
DrawLine
:
Draw
绘制直线
Author
Jenly
Follow me
Members
Constructors
Draw
Line
Link copied to clipboard
constructor
(
)
Properties
paint
Link copied to clipboard
open
var
paint
:
Paint
Functions
action
Down
Link copied to clipboard
open
fun
actionDown
(
canvas
:
Canvas
,
x
:
Float
,
y
:
Float
)
按下
action
Move
Link copied to clipboard
open
fun
actionMove
(
canvas
:
Canvas
,
x
:
Float
,
y
:
Float
)
移动
action
Up
Link copied to clipboard
open
fun
actionUp
(
canvas
:
Canvas
,
x
:
Float
,
y
:
Float
)
松开
can
Move
Link copied to clipboard
open
fun
canMove
(
x
:
Float
,
y
:
Float
)
:
Boolean
是否可移动
draw
Link copied to clipboard
open
fun
draw
(
canvas
:
Canvas
)
get
Bounding
Box
Link copied to clipboard
@
Nullable
open
fun
getBoundingBox
(
)
:
RectF
获取边界框
set
Arrow
Size
Link copied to clipboard
open
fun
setArrowSize
(
arrowSize
:
Float
)
设置绘制的箭头大小
set
Draw
Arrow
Link copied to clipboard
open
fun
setDrawArrow
(
drawArrow
:
Boolean
)
设置是否绘制箭头;默认为:false;当设置为:true时,绘制直线时,结尾处将会带有箭头。
set
Point
Link copied to clipboard
open
fun
setPoint
(
point
:
PointF
)
设置点
open
fun
setPoint
(
fromPoint
:
PointF
,
toPoint
:
PointF
)