uk.me.parabola.mkgmap.general
Class NullClipper

java.lang.Object
  extended by uk.me.parabola.mkgmap.general.NullClipper
All Implemented Interfaces:
Clipper

public class NullClipper
extends java.lang.Object
implements Clipper

Does no clipping and just adds the elements directly.

Author:
Steve Ratcliffe

Field Summary
 
Fields inherited from interface uk.me.parabola.mkgmap.general.Clipper
NULL_CLIPPER
 
Constructor Summary
NullClipper()
           
 
Method Summary
 void clipLine(MapLine line, LineAdder adder)
          Clip a line and add the resulting line or lines (if any) to the collector.
 void clipShape(MapShape shape, MapCollector collector)
          Clip a polygon and add the resulting shapes to the collector.
 boolean contains(Coord location)
          'Clip' a point - return true if the point is within the clipped region.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullClipper

public NullClipper()
Method Detail

clipLine

public void clipLine(MapLine line,
                     LineAdder adder)
Description copied from interface: Clipper
Clip a line and add the resulting line or lines (if any) to the collector.

Specified by:
clipLine in interface Clipper

clipShape

public void clipShape(MapShape shape,
                      MapCollector collector)
Description copied from interface: Clipper
Clip a polygon and add the resulting shapes to the collector.

Specified by:
clipShape in interface Clipper

contains

public boolean contains(Coord location)
Description copied from interface: Clipper
'Clip' a point - return true if the point is within the clipped region.

Specified by:
contains in interface Clipper