|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MapFilter
Used for filtering the elements that are added to the levels. We make several transformations, such as smoothing lines and splitting them so they do not overflow limitations for example.
Method Summary | |
---|---|
void |
doFilter(MapElement element,
MapFilterChain next)
Filter an element. |
void |
init(FilterConfig config)
Initialise the filter and pass in parameters that may be needed for the run. |
Method Detail |
---|
void init(FilterConfig config)
config
- Configuration information, giving parameters of the map
level that is being produced through this filter.void doFilter(MapElement element, MapFilterChain next)
MapFilterChain.doFilter(MapElement)
method.
The filter may modify the element or create a new element or even more than one element and pass them all to the next part of the chain.
It is allowed to call the next doFilter more than once (this is used to split elements for example). You are also allowed to not call it at all, in which case the element will not appear in the map at that level.
element
- A map element.next
- This is used to pass the possibly transformed element onward.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |