Interface MapShader.ShadedPiece

All Known Implementing Classes:
AreaOfEffect
Enclosing class:
MapShader
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 MapShader.ShadedPiece
Pieces that contribute to shading must implement this interface
  • Method Summary

    Modifier and Type
    Method
    Description
    getArea​(MapShader shader)
    Returns the Area to add to (or subtract from) the area drawn by the MapShader's.
  • Method Details

    • getArea

      Area getArea(MapShader shader)
      Returns the Area to add to (or subtract from) the area drawn by the MapShader's. Area is assumed to be at zoom factor 1.0
      Parameters:
      shader - Map Shader
      Returns:
      the Area contributed by the piece