Package org.geotools.renderer.lite
Class StyledShapePainter
- Object
- 
- StyledShapePainter
 
- 
 public 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
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classStyledShapePainter.TextureAnchorKey
 - 
Field SummaryFields Modifier and Type Field Description static booleanOPTIMIZE_VECTOR_HATCH_FILLSWhether to apply the new vector hatch fill optimization, or not (on by default, this is just a safeguard)static booleanROUND_ICON_COORDSWhether icon centers should be matched to a pixel center, or notstatic RenderingHints.KeyTEXTURE_ANCHOR_HINT_KEY
 - 
Constructor SummaryConstructors Constructor Description StyledShapePainter()StyledShapePainter(LabelCache cache)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpaint(Graphics2D graphics, LiteShape2 shape, GraphicLegend legend, double symbolScale, boolean isLabelObstacle)Paints a GraphicLegend in the supplied graphicsvoidpaint(Graphics2D graphics, LiteShape2 shape, Style2D style, double scale)voidpaint(Graphics2D graphics, LiteShape2 shape, Style2D style, double scale, boolean isLabelObstacle)Invoked automatically when a polyline is about to be draw.protected voidpaintGraphicFill(Graphics2D graphics, Shape shape, Style2D graphicFill, double scale)Paints a graphic fill for a given shape.
 
- 
- 
- 
Field Detail- 
TEXTURE_ANCHOR_HINT_KEYpublic static final RenderingHints.Key TEXTURE_ANCHOR_HINT_KEY 
 - 
ROUND_ICON_COORDSpublic static boolean ROUND_ICON_COORDS Whether icon centers should be matched to a pixel center, or not
 - 
OPTIMIZE_VECTOR_HATCH_FILLSpublic static boolean OPTIMIZE_VECTOR_HATCH_FILLS Whether to apply the new vector hatch fill optimization, or not (on by default, this is just a safeguard)
 
- 
 - 
Constructor Detail- 
StyledShapePainterpublic StyledShapePainter() 
 - 
StyledShapePainterpublic StyledShapePainter(LabelCache cache) 
 
- 
 - 
Method Detail- 
paintpublic void paint(Graphics2D graphics, LiteShape2 shape, Style2D style, double scale) 
 - 
paintpublic void paint(Graphics2D graphics, LiteShape2 shape, Style2D style, double scale, boolean isLabelObstacle) 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- nullif none.
- scale- The scale denominator for the current zoom level
 
 - 
paintpublic void paint(Graphics2D graphics, LiteShape2 shape, GraphicLegend legend, double symbolScale, boolean isLabelObstacle) Paints a GraphicLegend in the supplied graphics- Parameters:
- graphics- The graphics in which to draw.
- shape- The shape to draw.
- legend- The legend to apply.
- symbolScale- The scale of the symbol, if the legend graphic has to be rescaled
 
 - 
paintGraphicFillprotected void paintGraphicFill(Graphics2D graphics, Shape shape, Style2D graphicFill, double scale) Paints a graphic fill for a given shape.- Parameters:
- graphics- Graphics2D on which to paint.
- shape- Shape whose fill is to be painted.
- graphicFill- a Style2D that specified the graphic fill.
- scale- the scale of the current render.
 
 
- 
 
-