uk.me.parabola.mkgmap.filters
Class SizeFilter

java.lang.Object
  extended by uk.me.parabola.mkgmap.filters.SizeFilter
All Implemented Interfaces:
MapFilter

public class SizeFilter
extends java.lang.Object
implements MapFilter

This is a filter that dismisses elements too small for the current resolution


Constructor Summary
SizeFilter()
           
 
Method Summary
 void doFilter(MapElement element, MapFilterChain next)
          This applies to both lines and polygons.
 void init(FilterConfig config)
          Initialise the filter and pass in parameters that may be needed for the run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SizeFilter

public SizeFilter()
Method Detail

init

public void init(FilterConfig config)
Description copied from interface: MapFilter
Initialise the filter and pass in parameters that may be needed for the run.

Specified by:
init in interface MapFilter
Parameters:
config - Configuration information, giving parameters of the map level that is being produced through this filter.

doFilter

public void doFilter(MapElement element,
                     MapFilterChain next)
This applies to both lines and polygons. Elements too small for current resolution will be dropped.

Specified by:
doFilter in interface MapFilter
Parameters:
element - A map element that will be a line or a polygon.
next - This is used to pass the possibly transformed element onward.