Interface ILayeredDrawingSpace
- All Superinterfaces:
IPipelineInput
,IPipelineNode
A combination of multiple
IDrawingSpace
's, stacked on top to produce
layering. This produces a slight performance overhead, but allows for
easier development and combination of stuff.-
Method Summary
Modifier and TypeMethodDescriptionctx()
layer
(int index) layerOrNew
(int index) Creates a new layer on the given index of the other layers.layers()
newLayer()
Creates a new layer on top of the other layersMethods inherited from interface de.pianoman911.mapengine.api.pipeline.IPipelineInput
buffer, flush
Methods inherited from interface de.pianoman911.mapengine.api.pipeline.IPipelineNode
destroy
-
Method Details
-
layers
List<IDrawingSpace> layers()- Returns:
- all layers of this drawing space
-
resultBuffer
FullSpacedColorBuffer resultBuffer()- Returns:
- the result buffer of this drawing space
-
ctx
IPipelineContext ctx()- Specified by:
ctx
in interfaceIPipelineInput
- Returns:
- the context in which everything is drawn
-
layer
- Parameters:
index
- the index of the wanted layer- Returns:
- the layer with the given index
- Throws:
IndexOutOfBoundsException
- if the index is invalid
-
newLayer
IDrawingSpace newLayer()Creates a new layer on top of the other layers- Returns:
- the new layer
-
layerOrNew
Creates a new layer on the given index of the other layers.If the index is greater than the number of layers, the new layer will be on top of the other layers.
If layers below the given index are missing, they will be created as well- Parameters:
index
- the index of the new layer- Returns:
- the new layer
-