ResourceLayoutElement

@Serializable
data class ResourceLayoutElement(val resourceName: String, val position: LayoutPoint, val size: Double = 20.0, val idleColor: String = "#2ca02c", val busyColor: String = "#d62728", val failedColor: String = "#7f7f7f", val inactiveColor: String = "#cccccc", val idleImage: String? = null, val busyImage: String? = null, val failedImage: String? = null, val inactiveImage: String? = null, val showValue: Boolean = false)(source)

Where to draw a resource and the colors for its states. Keyed by resourceName. Each state may also carry an optional image (idleImage/busyImage/failedImage/inactiveImage); when present the renderer draws the image for that state and the matching color is the fallback (10.7).

Constructors

Link copied to clipboard
constructor(resourceName: String, position: LayoutPoint, size: Double = 20.0, idleColor: String = "#2ca02c", busyColor: String = "#d62728", failedColor: String = "#7f7f7f", inactiveColor: String = "#cccccc", idleImage: String? = null, busyImage: String? = null, failedImage: String? = null, inactiveImage: String? = null, showValue: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

When true, draw a live "busy/capacity" read-out next to the glyph (P4), positionable via its value label.

Link copied to clipboard