DrawLine

open class DrawLine : Draw

绘制直线

Author

Jenly

Follow me

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open var paint: Paint

Functions

Link copied to clipboard
open fun actionDown(canvas: Canvas, x: Float, y: Float)
按下
Link copied to clipboard
open fun actionMove(canvas: Canvas, x: Float, y: Float)
移动
Link copied to clipboard
open fun actionUp(canvas: Canvas, x: Float, y: Float)
松开
Link copied to clipboard
open fun canMove(x: Float, y: Float): Boolean
是否可移动
Link copied to clipboard
open fun draw(canvas: Canvas)
Link copied to clipboard
获取边界框
Link copied to clipboard
open fun setArrowSize(arrowSize: Float)
设置绘制的箭头大小
Link copied to clipboard
open fun setDrawArrow(drawArrow: Boolean)
设置是否绘制箭头;默认为:false;当设置为:true时,绘制直线时,结尾处将会带有箭头。
Link copied to clipboard
open fun setPoint(point: PointF)
设置点
open fun setPoint(fromPoint: PointF, toPoint: PointF)