RectZone

data class RectZone(topLeft: Point, bottomRight: Point) : Zone

A Zone shaped as a rectangle, used to indicate interactive zones in a Chart.

See also

Constructors

RectZone
Link copied to clipboard
common
fun RectZone(rect: Rect)
RectZone
Link copied to clipboard
common
fun RectZone(rect: Rect, offset: Point)
RectZone
Link copied to clipboard
common
fun RectZone(topLeft: Point, bottomRight: Point)

Functions

contains
Link copied to clipboard
common
open override fun contains(point: Point): Boolean
Does this Zone contains the given Point?
getAnchorPoint
Link copied to clipboard
common
open override fun getAnchorPoint(layoutPosition: LayoutPosition): Point
Define an "anchor point" at the given LayoutPosition, useful to place labels or tooltips over a Zone.

Properties

bottomRight
Link copied to clipboard
common
val bottomRight: Point
This RectZone bottom-right coordinates relative to the main charting zone.
bounds
Link copied to clipboard
common
open override val bounds: RectGeom
The bounds of this Zone as a Rect.
center
Link copied to clipboard
common
open override val center: Point
The geometric center coordinates of this Zone.
topLeft
Link copied to clipboard
common
val topLeft: Point
This RectZone top-left coordinates relative to the main charting zone.