uk.me.parabola.mkgmap.general
Interface Clipper

All Known Implementing Classes:
AreaClipper, NullClipper

public interface Clipper

For clipping lines and polygons.

Author:
Steve Ratcliffe

Field Summary
static Clipper NULL_CLIPPER
           
 
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.
 

Field Detail

NULL_CLIPPER

static final Clipper NULL_CLIPPER
Method Detail

clipLine

void clipLine(MapLine line,
              LineAdder adder)
Clip a line and add the resulting line or lines (if any) to the collector.


clipShape

void clipShape(MapShape shape,
               MapCollector collector)
Clip a polygon and add the resulting shapes to the collector.


contains

boolean contains(Coord location)
'Clip' a point - return true if the point is within the clipped region.