|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.renderer.geom.Clipper
The clipping area to apply on a Geometry
object. A Clipper
object
contains the clip as a Rectangle2D
and its CoordinateSystem
.
Geometry.clip(org.geotools.renderer.geom.Clipper)
Constructor Summary | |
Clipper(java.awt.geom.Rectangle2D mapClip,
CoordinateSystem mapCS)
Constructs a clipping area. |
Method Summary | |
protected Polyline |
clip(Polyline polyline)
Returns a polyline which only contains the points of polyline that appear
in the rectangle specified to the constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Clipper(java.awt.geom.Rectangle2D mapClip, CoordinateSystem mapCS)
mapClip
- The limits of the region to keep.mapCS
- The clip
's coordinate system.Method Detail |
protected Polyline clip(Polyline polyline)
polyline
that appear
in the rectangle specified to the constructor. If none of the polyline's points appear
inside clip
, this method returns null
. If all the polyline's
points appear inside clip
, this method returns polyline
.
Otherwise, this method returns a polyline that contains the points that appear inside
clip
. These polylines will share the same data as polyline
where possible, so that memory consumption should remain reasonable.
polyline
- Polyline to clip in a region.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |