commonMain.GroupElement.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of element Show documentation
Show all versions of element Show documentation
A collection of drawing/charting utilities
package com.juul.krayon.element
import com.juul.krayon.kanvas.Kanvas
public class GroupElement : Element() {
override val tag: String get() = "group"
override fun draw(kanvas: Kanvas) {
children.forEach { it.draw(kanvas) }
}
public companion object : ElementBuilder, ElementSelector {
override fun build(): GroupElement = GroupElement()
override fun trySelect(element: Element): GroupElement? = element as? GroupElement
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy