uk.me.parabola.mkgmap.filters
Interface MapFilterChain

All Known Implementing Classes:
LayerFilterChain

public interface MapFilterChain

Used to set up a filter chain for adding map elements to an area of the map at a given level.

Although this is based on servlet filters, there is a complication in that we want to be able to split up an element, this lead to the addElement(MapElement) method which in effect creates a new chain that is at the same stage as the current one and with the same final destination.

Author:
Steve Ratcliffe

Method Summary
 void addElement(MapElement element)
          Add an extra element and pass it down a copy of the chain.
 void doFilter(MapElement element)
          Pass the element on to the next filter in the chain.
 

Method Detail

doFilter

void doFilter(MapElement element)
Pass the element on to the next filter in the chain. If there are no more then it will be saved for adding to the map.

Parameters:
element - The map element.

addElement

void addElement(MapElement element)
Add an extra element and pass it down a copy of the chain. The element (if not filtered out) will end up being added to the map area too.

Parameters:
element - The element to add.