Arc

open class Arc : UIElement

An Arc ui element, draws an arc and optionally its edges

Supported transformations: Scale, Rotate, Translate

Inheritors

Constructors

Link copied to clipboard
constructor()
constructor(id: String)

Properties

Link copied to clipboard
protected var angleFromDegree: Float
Link copied to clipboard
protected var angleToDegree: Float
Link copied to clipboard
protected var centerRelX: Float
Link copied to clipboard
protected var centerRelY: Float
Link copied to clipboard
protected var radiusPix: Float
Link copied to clipboard

Functions

Link copied to clipboard

Get the angle from that was defined in setArcInfo

Link copied to clipboard

Get the angle to that was defined in setArcInfo

Link copied to clipboard

Get the center x that was defined in setArcInfo

Link copied to clipboard

Get the center y that was defined in setArcInfo

Link copied to clipboard

Get the drawing direction of the arc

Link copied to clipboard

Get the radius that was defined in setArcInfo

Link copied to clipboard
open fun hideEndEdge(): Arc

Hide the end edge line with the given color

Link copied to clipboard
open fun hideStartEdge(): Arc

Hide the start edge line with the given color

Link copied to clipboard
fun isBetween(angleDeg: Float): Boolean

Returns true if the angleDeg is between the getAngleFromDeg and the getAngleToDeg, exclusive

Link copied to clipboard

Returns true if the angleDeg is between the getAngleFromDeg and the getAngleToDeg, inclusive

Link copied to clipboard
protected open override fun onDraw(canvas: CanvasBuffer)

The draw method is called to actually draw the ui element visual representation to the CanvasBuffer

Link copied to clipboard
open fun setArcInfo(centerX: Float, centerY: Float, radius: Float, angleFromDeg: Float, angleToDeg: Float): Arc

Set the arc information to be drawn on the glasses display

Link copied to clipboard
open override fun setBackgroundColor(color: Int): UIElement

Set the background color of the ui element

Link copied to clipboard
fun setDirection(rotationDirection: RotationDirection): Arc

Set the drawing direction of the arc

Link copied to clipboard
open fun showEndEdge(color: Int): Arc

Show the end edge line with the given color

Link copied to clipboard
open fun showStartEdge(color: Int): Arc

Show the start edge line with the given color