-
- All Implemented Interfaces:
-
java.io.Serializable
public interface LayerToFunctionMapper implements Serializable
Defines an object capable of mapping a Layer to a Function<* in P, * out Number>.
-
-
Method Summary
Modifier and Type Method Description <T extends Any, P extends Position2D<P>> Unit
prepare(DrawLayersValues effect, Collection<Layer<T, P>> toDraw, Environment<T, P> environment, Graphics2D g, Wormhole2D<P> wormhole)
Prepare the mapping (if necessary). abstract <T extends Any, P extends Position2D<P>> Collection<Function<in P, out Number>>
map(Collection<Layer<T, P>> layers)
Effectively map the given layers, layers may be filtered too if the mapper is only able to map certain types of layers. abstract <T extends Any, P extends Position2D<P>> Stream<Function<in P, out Number>>
map(Stream<Layer<T, P>> layers)
see LayerToFunctionMapper.map. -
-
Method Detail
-
prepare
<T extends Any, P extends Position2D<P>> Unit prepare(DrawLayersValues effect, Collection<Layer<T, P>> toDraw, Environment<T, P> environment, Graphics2D g, Wormhole2D<P> wormhole)
Prepare the mapping (if necessary).
-
map
abstract <T extends Any, P extends Position2D<P>> Collection<Function<in P, out Number>> map(Collection<Layer<T, P>> layers)
Effectively map the given layers, layers may be filtered too if the mapper is only able to map certain types of layers.
-
-
-
-