|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.me.parabola.mkgmap.filters.LineSplitterFilter
public class LineSplitterFilter
A filter that ensures that a line does not exceed the allowed number of points that a line can have.
Field Summary | |
---|---|
static int |
MAX_POINTS_IN_LINE
|
Constructor Summary | |
---|---|
LineSplitterFilter()
|
Method Summary | |
---|---|
void |
doFilter(MapElement element,
MapFilterChain next)
If the line is short enough then we just pass it on straight away. |
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 |
Field Detail |
---|
public static final int MAX_POINTS_IN_LINE
Constructor Detail |
---|
public LineSplitterFilter()
Method Detail |
---|
public void init(FilterConfig config)
MapFilter
init
in interface MapFilter
config
- Configuration information, giving parameters of the map
level that is being produced through this filter.public void doFilter(MapElement element, MapFilterChain next)
doFilter
in interface MapFilter
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 |