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.
See Also:
MapRenderer.addLayerRenderCondition(LayerRenderCondition)
  • Method Summary

    Modifier and TypeMethodDescription
    booleancanRender​(LayerRenderEvent event)
    Invoked before the rendering of a layer to determine if it should be rendered.
  • Method Details

    • canRender

      boolean canRender​(LayerRenderEvent event)
      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.