public class StyledShapePainter extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | StyledShapePainter.TextureAnchorKey | 
| Modifier and Type | Field and Description | 
|---|---|
| static boolean | OPTIMIZE_VECTOR_HATCH_FILLSWhether to apply the new vector hatch fill optimization, or not (on by default, this is just
 a safeguard) | 
| static boolean | ROUND_ICON_COORDSWhether icon centers should be matched to a pixel center, or not | 
| static RenderingHints.Key | TEXTURE_ANCHOR_HINT_KEY | 
| Constructor and Description | 
|---|
| StyledShapePainter() | 
| StyledShapePainter(LabelCache cache) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | paint(Graphics2D graphics,
     LiteShape2 shape,
     GraphicLegend legend,
     double symbolScale,
     boolean isLabelObstacle)Paints a GraphicLegend in the supplied graphics | 
| void | paint(Graphics2D graphics,
     LiteShape2 shape,
     Style2D style,
     double scale) | 
| void | paint(Graphics2D graphics,
     LiteShape2 shape,
     Style2D style,
     double scale,
     boolean isLabelObstacle)Invoked automatically when a polyline is about to be draw. | 
| protected void | paintGraphicFill(Graphics2D graphics,
                Shape shape,
                Style2D graphicFill,
                double scale)Paints a graphic fill for a given shape. | 
public static final RenderingHints.Key TEXTURE_ANCHOR_HINT_KEY
public static boolean ROUND_ICON_COORDS
public static boolean OPTIMIZE_VECTOR_HATCH_FILLS
public StyledShapePainter()
public StyledShapePainter(LabelCache cache)
public void paint(Graphics2D graphics, LiteShape2 shape, Style2D style, double scale)
public void paint(Graphics2D graphics, LiteShape2 shape, Style2D style, double scale, boolean isLabelObstacle)
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 levelFactoryExceptionTransformExceptionpublic void paint(Graphics2D graphics, LiteShape2 shape, GraphicLegend legend, double symbolScale, boolean isLabelObstacle)
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 rescaledprotected void paintGraphicFill(Graphics2D graphics, Shape shape, Style2D graphicFill, double scale)
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.TransformExceptionFactoryExceptionCopyright © 1996–2019 Geotools. All rights reserved.