uk.me.parabola.mkgmap.build
Class LayerFilterChain

java.lang.Object
  extended by uk.me.parabola.mkgmap.build.LayerFilterChain
All Implemented Interfaces:
MapFilterChain

public class LayerFilterChain
extends java.lang.Object
implements MapFilterChain

This calls all the filters that are applied to an element as it is added to the map at a particular level.

Author:
Steve Ratcliffe

Constructor Summary
LayerFilterChain(FilterConfig config)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayerFilterChain

public LayerFilterChain(FilterConfig config)
Method Detail

doFilter

public void doFilter(MapElement element)
Description copied from interface: MapFilterChain
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.

Specified by:
doFilter in interface MapFilterChain
Parameters:
element - The map element.

addElement

public void addElement(MapElement element)
Description copied from interface: MapFilterChain
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.

Specified by:
addElement in interface MapFilterChain
Parameters:
element - The element to add.