Layerable

interface Layerable

Represents an object which can contain multiple Layers which are specialized TileGraphics objects which can be displayed above each other within the Layerable object. Indexing is done from bottom to top, eg: calling addLayer with a Layerable which has only one Layer (at index 0) will add the new Layer at index 1. Layerable also implements Clearable. In this context clear can be used to remove all layers.

Types

Companion
Link copied to clipboard
common
object Companion

Functions

addLayer
Link copied to clipboard
common
abstract fun addLayer(layer: Layer): LayerHandle
Adds a layer on top of the currently present layers.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
getLayerAt
Link copied to clipboard
common
abstract fun getLayerAt(level: Int): Maybe<LayerHandle>
Returns the Layer at the given level (if present).
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
insertLayerAt
Link copied to clipboard
common
abstract fun insertLayerAt(level: Int, layer: Layer): LayerHandle
Inserts the given Layer into this Layerable at the given level.
setLayerAt
Link copied to clipboard
common
abstract fun setLayerAt(level: Int, layer: Layer): LayerHandle
Sets the given Layer in this Layerable at the given level.
toString
Link copied to clipboard
common
open fun toString(): String

Properties

layers
Link copied to clipboard
common
abstract val layers: ObservableList<out Layer>
size
Link copied to clipboard
common
abstract val size: Size
The area this Layerable covers.

Inheritors

TileGrid
Link copied to clipboard
InternalLayerable
Link copied to clipboard

Sources

(source)
Link copied to clipboard