org.geotools.renderer.lite
Class StyledShapePainter
Object
StyledShapePainter
public final class StyledShapePainter
- extends Object
A simple class that knows how to paint a Shape object onto a Graphic given a
Style2D. It's the last step of the rendering engine, and has been factored
out since both renderers do use the same painting logic.
- Author:
- Andrea Aime
- Module:
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StyledShapePainter
public StyledShapePainter(LabelCache labelCache)
- Construct
StyledShapePainter
.
paint
public void paint(Graphics2D graphics,
LiteShape2 shape,
Style2D style,
double scale)
- Invoked automatically when a polyline is about to be draw. This
implementation paints the polyline according to the rendered style
- Parameters:
graphics
- The graphics in which to draw.shape
- The polygon to draw.style
- The style to apply, or null
if none.scale
- The scale denominator for the current zoom level
debugShape
public void debugShape(Shape shape)
Copyright © 1996-2009 Geotools. All Rights Reserved.