-
- All Implemented Interfaces:
public interface LayerToFunctionMapperDefines 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>> Unitprepare(DrawLayersValues effect, Collection<Layer<T, P>> toDraw, Environment<T, P> env, 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> env, 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.
-
-
-
-