Interface MapRenderer.LayerRenderCondition
- All Superinterfaces:
java.util.EventListener
- Enclosing class:
- MapRenderer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface MapRenderer.LayerRenderCondition
extends java.util.EventListener
This listener interface provides a condition callback to contol whether a layer should be rendered.
Method Summary
Modifier and Type Method Description boolean
canRender(LayerRenderEvent event)
Invoked before the rendering of a layer to determine if it should be rendered.
Method Details
canRender
Invoked before the rendering of a layer to determine if it should be rendered.- Parameters:
event
- The layer render event.- Returns:
- Return true if the layer should be rendered; otherwise false.