public class SLD extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static double | ALIGN_BOTTOM | 
| static double | ALIGN_CENTER | 
| static double | ALIGN_LEFT | 
| static double | ALIGN_MIDDLE | 
| static double | ALIGN_RIGHT | 
| static double | ALIGN_TOP | 
| static int | NOTFOUNDNOTFOUNDindicates int value was unavailable | 
| Constructor and Description | 
|---|
| SLD() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Color | color(Expression expr)Navigate through the expression finding the first mentioned Color. | 
| static Color | color(Fill fill)Retrieve the color of a fill object | 
| static Color | color(LineSymbolizer symbolizer)Retrieve color from linesymbolizer if available. | 
| static Color | color(PointSymbolizer symbolizer)Retrieves the color from the first Mark in a PointSymbolizer object. | 
| static Color | color(Stroke stroke)Retrieve the color of a stroke object | 
| static String[] | colors(Rule rule)Retrieves all colour names defined in a rule | 
| static String[] | colors(Style style)Retrieves all colour names defined in a style | 
| static String | colorToHex(Color c)Convert a Color object to hex representation | 
| static Style | createLineStyle(Color lineColor,
               float width)Create a line style with given color and line width | 
| static Style | createLineStyle(Color lineColor,
               float width,
               String labelField,
               Font labelFont)Create a line style with given color, line width and optional labels | 
| static Style | createPointStyle(String wellKnownName,
                Color lineColor,
                Color fillColor,
                float opacity,
                float size)Create a point style without labels | 
| static Style | createPointStyle(String wellKnownName,
                Color lineColor,
                Color fillColor,
                float opacity,
                float size,
                String labelField,
                Font labelFont)Create a point style, optionally with text labels | 
| static Style | createPolygonStyle(Color outlineColor,
                  Color fillColor,
                  float opacity)Create a polygon style with the given colors and opacity. | 
| static Style | createPolygonStyle(Color outlineColor,
                  Color fillColor,
                  float opacity,
                  String labelField,
                  Font labelFont)Create a polygon style with the given colors, opacity and optional labels. | 
| static Style | createSimpleStyle(DataStore store,
                 String typeName,
                 Color color)Create a minimal style to render features of type  typeNameread from the given data
 store | 
| static Style | createSimpleStyle(FeatureType type)Create a minimal style to render features of type  type. | 
| static Style | createSimpleStyle(FeatureType type,
                 Color color)Create a minimal style to render features of type  type | 
| static Style | defaultStyle(StyledLayerDescriptor sld)Retrieve the default style from the given StyledLayerDescriptor. | 
| static FeatureTypeStyle | featureTypeStyle(StyledLayerDescriptor sld,
                SimpleFeatureType type)Retrieve the first FeatureTypeStyle defined in the given StyledLayerDescriptor object that
 matches the specified feature type | 
| static FeatureTypeStyle | featureTypeStyle(Style style,
                SimpleFeatureType type)Returns the feature type style in the style which matched a particular name. | 
| static FeatureTypeStyle[] | featureTypeStyles(StyledLayerDescriptor sld)Get the FeatureTypeStyles defined in the given StyledLayerDescriptor | 
| static Fill | fill(PointSymbolizer sym)Retrieves the Fill from a PointSymbolizer. | 
| static Fill | fill(PolygonSymbolizer sym)Retrieves the Fill from a PolygonSymbolizer. | 
| static Filter[] | filters(Rule[] rule)Retrieves all filters defined in a rule | 
| static Filter[] | filters(Style style)Retrieves all filters defined in a style | 
| static Font | font(TextSymbolizer symbolizer)Retrieves the font from a TextSymbolizer. | 
| static PointPlacement | getPlacement(double horizAlign,
            double vertAlign,
            double rotation)Create a PointPlacement object. | 
| static Graphic | graphic(PointSymbolizer sym) | 
| static boolean | isSemanticTypeMatch(FeatureTypeStyle fts,
                   String regex)Test if the given FeatureTypeStyle object matches a regular expression | 
| static Color | lineColor(LineSymbolizer symbolizer)Retrieve linestring color from linesymbolizer if available. | 
| static float[] | lineDash(LineSymbolizer symbolizer)Retrieves the dashes array from a LineSymbolizer. | 
| static String | lineLinecap(LineSymbolizer symbolizer)Retrieves the line cap from a LineSymbolizer. | 
| static String | lineLinejoin(LineSymbolizer symbolizer)Retrieves the linejoin from a LineSymbolizer. | 
| static double | lineOpacity(LineSymbolizer symbolizer)Retrieve the opacity from a LineSymbolizer object. | 
| static LineSymbolizer | lineSymbolizer(FeatureTypeStyle fts)Retrieve the first LineSymbolizer from the provided FeatureTypeStyle. | 
| static LineSymbolizer | lineSymbolizer(Style style)Retrieve the first LineSymbolizer from the provided Style. | 
| static int | lineWidth(LineSymbolizer symbolizer)Retrieve linestring width from symbolizer if available. | 
| static Mark | mark(Graphic graphic)Retrieves the first Mark object from the given Graphic object. | 
| static Mark | mark(PointSymbolizer sym)Retrieves the first Mark used in a PointSymbolizer object. | 
| static Style | matchingStyle(Style[] styles,
             SimpleFeatureType schema)Returns the first style object which matches a given schema. | 
| static double | maxScale(FeatureTypeStyle fts)Returns the max scale of the default (first) rule | 
| static double | minScale(FeatureTypeStyle fts)Returns the min scale of the default (first) rule | 
| static double | opacity(Fill fill)Retrieve the opacity from the provided fill; or return the default. | 
| static double | opacity(RasterSymbolizer rasterSymbolizer)Retrieve the opacity from a RasterSymbolizer object. | 
| static double | opacity(Stroke stroke)Retrieve the opacity from a Stroke object. | 
| static double | pointBorderOpacity(PointSymbolizer symbolizer)Retrieves the point border opacity from a PointSymbolizer. | 
| static Color | pointColor(PointSymbolizer symbolizer)Retrieves the color of the first Mark in a PointSymbolizer object. | 
| static Color | pointFill(PointSymbolizer symbolizer)Retrieves the fill from the first Mark defined in a PointSymbolizer. | 
| static URL | pointGraphic(Style style)Retrieves the location of the first external graphic in a Style object. | 
| static Mark | pointMark(Style style)Retrieves the first Mark used in a Style object. | 
| static double | pointOpacity(PointSymbolizer symbolizer)Retrieves the point opacity from a PointSymbolizer. | 
| static int | pointSize(PointSymbolizer symbolizer)Retrieves the size of the point's graphic, if found. | 
| static PointSymbolizer | pointSymbolizer(FeatureTypeStyle fts)Retrieve the first PointSymbolizer from the provided FeatureTypeStyle. | 
| static PointSymbolizer | pointSymbolizer(Style style)Retrieve the first PointSymbolizer from the provided Style. | 
| static String | pointWellKnownName(PointSymbolizer symbolizer)Retrieves the well known name of the first Mark that has one in a PointSymbolizer object
 If you are using something fun like symbols you will need to do your own thing. | 
| static int | pointWidth(PointSymbolizer symbolizer)Retrieves the width of the first Mark with a Stroke that has a non-null width. | 
| static double | polyBorderOpacity(PolygonSymbolizer symbolizer)Retrieves the border (stroke) opacity from a PolygonSymbolizer. | 
| static Color | polyColor(PolygonSymbolizer symbolizer)Retrieves the outline (stroke) color from a PolygonSymbolizer. | 
| static Color | polyFill(PolygonSymbolizer symbolizer)Retrieves the fill colour from a PolygonSymbolizer. | 
| static double | polyFillOpacity(PolygonSymbolizer symbolizer)Retrieves the fill opacity from the first PolygonSymbolizer. | 
| static PolygonSymbolizer | polySymbolizer(FeatureTypeStyle fts)Retrieve the first PolygonSymbolizer from the provided FeatureTypeStyle. | 
| static PolygonSymbolizer | polySymbolizer(Style style)Retrieve the first PolygonSymbolizer from the provided Style. | 
| static int | polyWidth(PolygonSymbolizer symbolizer)Retrieves the outline width from a PolygonSymbolizer
 If you are using something fun like rules you will need to do your own thing. | 
| static double | rasterOpacity(RasterSymbolizer symbolizer)Retrieves the opacity from a RasterSymbolizer. | 
| static double | rasterOpacity(Style style)Retrieves the opacity from the first RasterSymbolizer defined in a style. | 
| static RasterSymbolizer | rasterSymbolizer(FeatureTypeStyle fts)Retrieve the first RasterSymbolizer from the provided FeatureTypeStyle. | 
| static RasterSymbolizer | rasterSymbolizer(Style style)Retrieve the first RasterSymbolizer from the provided Style. | 
| static Rule[] | rules(Style style)Retrieves all rules defined in a style | 
| static void | setChannelSelection(Style style,
                   SelectedChannelType[] rgb,
                   SelectedChannelType gray)Updates the raster channel selection in a Style object
 This method will update the Style in place; some of the rules & symbolizers will be
 replace with modified copies. | 
| static void | setLineColour(LineSymbolizer symbolizer,
             Color colour)Sets the Colour for the given Line symbolizer | 
| static void | setLineColour(Style style,
             Color colour)Updates the color for line symbolizers in the current style. | 
| static void | setPointColour(PointSymbolizer symbolizer,
              Color colour)Sets the Colour for the given point symbolizer | 
| static void | setPointColour(Style style,
              Color colour)Sets the Colour for the point symbolizer | 
| static void | setPolyColour(PolygonSymbolizer symbolizer,
             Color colour)Sets the colour to use for outline (stroke) and fill in a polygon symbolizer | 
| static void | setPolyColour(Style style,
             Color colour)Sets the colour for the first polygon symbolizer defined in the provided style | 
| static void | setRasterOpacity(Style style,
                double opacity)Updates the raster opacity in the current style
 Note: This method will update the Style in place; some of the rules and symbolizers
 will be replaced with modified copies. | 
| static int | size(Mark mark)Deprecated. 
 please check graphic as an indication of mark size | 
| static Stroke | stroke(LineSymbolizer sym)Retrieves the Stroke from a LineSymbolizer. | 
| static Stroke | stroke(PointSymbolizer sym)Retrieves the Stroke from a PointSymbolizer. | 
| static Stroke | stroke(PolygonSymbolizer sym)Retrieves the Stroke from a PolygonSymbolizer. | 
| static Style[] | styles(StyledLayerDescriptor sld)Get the Styles defined in the given StyledLayerDescriptor | 
| protected static Symbolizer | symbolizer(FeatureTypeStyle fts,
          Class SYMBOLIZER)Retrieve the first Symbolizer from the provided FeatureTypeStyle. | 
| protected static Symbolizer | symbolizer(Style style,
          Class SYMBOLIZER)Retrieve the first Symbolizer from the provided Style. | 
| static Symbolizer[] | symbolizers(Rule rule)Retrieves all symbolizers defined in a rule | 
| static Symbolizer[] | symbolizers(Style style)Retrieves all symbolizers defined in a style | 
| static Color | textFontFill(TextSymbolizer symbolizer)Retrieves the colour of the font fill from a TextSymbolizer. | 
| static Color | textHaloFill(TextSymbolizer symbolizer)Retrieves the colour of the halo fill a TextSymbolizer. | 
| static double | textHaloOpacity(TextSymbolizer symbolizer)Retrieves the halo opacity from the first TextSymbolizer. | 
| static int | textHaloWidth(TextSymbolizer symbolizer)Retrieves the halo width from a TextSymbolizer. | 
| static Expression | textLabel(TextSymbolizer symbolizer)Retrieves the label from a TextSymbolizer. | 
| static String | textLabelString(TextSymbolizer sym)Retrieves the label from a TextSymbolizer. | 
| static TextSymbolizer | textSymbolizer(FeatureTypeStyle fts)Retrieve the first TextSymbolizer from the provided FeatureTypeStyle. | 
| static TextSymbolizer | textSymbolizer(Style style)Retrieve the first TextSymbolizer from the provided Style. | 
| static Color | toColor(String htmlColor)Convert an HTML colour string to a java.awt.Color object | 
| static String | toHTMLColor(Color color)Converts a java.awt.Color into an HTML Colour | 
| static String | wellKnownName(Mark mark)Retrieves the "well known name" of a Mark object. | 
| static int | width(LineSymbolizer symbolizer)Retrieve linestring width from symbolizer if available. | 
| static int | width(Stroke stroke)Retrieve the width of a Stroke object. | 
| static Style | wrapSymbolizers(Symbolizer... symbolizers)Wrap one or more symbolizers into a Rule / FeatureTypeStyle / Style | 
public static final int NOTFOUND
NOTFOUND indicates int value was unavailablepublic static final double ALIGN_LEFT
public static final double ALIGN_CENTER
public static final double ALIGN_RIGHT
public static final double ALIGN_BOTTOM
public static final double ALIGN_MIDDLE
public static final double ALIGN_TOP
public static Color lineColor(LineSymbolizer symbolizer)
symbolizer - Line symbolizer information.public static Color color(Stroke stroke)
stroke - a Stroke objectpublic static Color color(Fill fill)
fill - a Fill objectpublic static void setLineColour(Style style, Color colour)
This method will update the Style in place; some of the symbolizers will be replaced with modified copies.
style - the Style object to be updatedcolour - Color to to usepublic static void setLineColour(LineSymbolizer symbolizer, Color colour)
symbolizer - colour - public static Color color(LineSymbolizer symbolizer)
symbolizer - Line symbolizer information.public static int lineWidth(LineSymbolizer symbolizer)
symbolizer - Line symbolizer information.public static int width(Stroke stroke)
stroke - the Stroke object.public static int size(Mark mark)
mark - the Mark objectpublic static int width(LineSymbolizer symbolizer)
symbolizer - Line symbolizer information.public static double lineOpacity(LineSymbolizer symbolizer)
symbolizer - Line symbolizer information.public static double opacity(Stroke stroke)
stroke - the Stroke object.public static double opacity(RasterSymbolizer rasterSymbolizer)
symbolizer - raster symbolizer information.public static String lineLinejoin(LineSymbolizer symbolizer)
symbolizer - Line symbolizer information.public static String lineLinecap(LineSymbolizer symbolizer)
symbolizer - Line symbolizer information.public static float[] lineDash(LineSymbolizer symbolizer)
symbolizer - Line symbolizer information.public static URL pointGraphic(Style style)
style - SLD style information.public static Mark pointMark(Style style)
style - the Stylepublic static Mark mark(PointSymbolizer sym)
sym - the PointSymbolizerpublic static Mark mark(Graphic graphic)
graphic - the Graphic object.public static Graphic graphic(PointSymbolizer sym)
public static int pointSize(PointSymbolizer symbolizer)
If you are using something fun like symbols you will need to do your own thing.
symbolizer - Point symbolizer information.public static String pointWellKnownName(PointSymbolizer symbolizer)
If you are using something fun like symbols you will need to do your own thing.
symbolizer - Point symbolizer information.public static String wellKnownName(Mark mark)
mark - the Mark objectpublic static Color pointColor(PointSymbolizer symbolizer)
If you are using something fun like symbols you will need to do your own thing.
symbolizer - Point symbolizer information.public static void setPointColour(Style style, Color colour)
style - colour - public static void setPointColour(PointSymbolizer symbolizer, Color colour)
symbolizer - the point symbolizercolour - the new colourpublic static Color color(PointSymbolizer symbolizer)
If you are using something fun like symbols you will need to do your own thing.
symbolizer - Point symbolizer information.public static int pointWidth(PointSymbolizer symbolizer)
If you are using something fun like symbols you will need to do your own thing.
symbolizer - Point symbolizer information.public static double pointBorderOpacity(PointSymbolizer symbolizer)
If you are using something fun like rules you will need to do your own thing.
symbolizer - Point symbolizer information.public static double pointOpacity(PointSymbolizer symbolizer)
If you are using something fun like rules you will need to do your own thing.
symbolizer - Point symbolizer information.public static Color pointFill(PointSymbolizer symbolizer)
If you are using something fun like symbols you will need to do your own thing.
symbolizer - Point symbolizer information.public static int polyWidth(PolygonSymbolizer symbolizer)
If you are using something fun like rules you will need to do your own thing.
symbolizer - Polygon symbolizer information.public static Color polyColor(PolygonSymbolizer symbolizer)
If you are using something fun like rules you will need to do your own thing.
symbolizer - Polygon symbolizer information.public static void setRasterOpacity(Style style, double opacity)
Note: This method will update the Style in place; some of the rules and symbolizers will be replaced with modified copies. All symbolizers associated with all rules are modified.
style - the Style object to be updatedopacity - - a new opacity value between 0 and 1public static void setChannelSelection(Style style, SelectedChannelType[] rgb, SelectedChannelType gray)
This method will update the Style in place; some of the rules & symbolizers will be replace with modified copies. All symbolizes associated with all rules are updated.
style - the Style object to be updatedrgb - - an array of the new red, green, blue channels or null if setting the gray
     channelgray - - the new gray channel; ignored if rgb is not nullpublic static void setPolyColour(Style style, Color colour)
style - the Style objectcolour - the colour for polygon outlines and fillpublic static void setPolyColour(PolygonSymbolizer symbolizer, Color colour)
symbolizer - the polygon symbolizercolour - the colour for polygon outlines and fillpublic static Color polyFill(PolygonSymbolizer symbolizer)
If you are using something fun like rules you will need to do your own thing.
symbolizer - Polygon symbolizer information.public static double polyBorderOpacity(PolygonSymbolizer symbolizer)
If you are using something fun like rules you will need to do your own thing.
symbolizer - Polygon symbolizer information.public static double polyFillOpacity(PolygonSymbolizer symbolizer)
If you are using something fun like rules you will need to do your own thing.
symbolizer - Polygon symbolizer information.public static double opacity(Fill fill)
fill - public static double rasterOpacity(RasterSymbolizer symbolizer)
If you are using something fun like rules you will need to do your own thing.
symbolizer - Raster symbolizer information.public static double rasterOpacity(Style style)
style - the Style objectpublic static TextSymbolizer textSymbolizer(FeatureTypeStyle fts)
fts - FeatureTypeStyle information.public static TextSymbolizer textSymbolizer(Style style)
style - the Style objectpublic static Font font(TextSymbolizer symbolizer)
symbolizer.getFont().symbolizer - the symbolizerpublic static Expression textLabel(TextSymbolizer symbolizer)
symbolizer - Text symbolizer information.public static String textLabelString(TextSymbolizer sym)
symbolizer - Text symbolizer information.public static Color textFontFill(TextSymbolizer symbolizer)
symbolizer - Text symbolizer information.public static Color textHaloFill(TextSymbolizer symbolizer)
symbolizer - Text symbolizer information.public static int textHaloWidth(TextSymbolizer symbolizer)
symbolizer - Text symbolizer information.public static double textHaloOpacity(TextSymbolizer symbolizer)
symbolizer - Text symbolizer information.public static Color color(Expression expr)
If you have a specific Feature in mind please use:
 Object value = expr.getValue( feature );
 return value instanceof Color ? (Color) value : null;
 expr - the Expression objectpublic static RasterSymbolizer rasterSymbolizer(FeatureTypeStyle fts)
fts - the FeatureTypeStyle information.public static RasterSymbolizer rasterSymbolizer(Style style)
style - the Style objectpublic static LineSymbolizer lineSymbolizer(FeatureTypeStyle fts)
fts - the FeatureTypeStyle objectpublic static LineSymbolizer lineSymbolizer(Style style)
style - the Style objectpublic static Stroke stroke(LineSymbolizer sym)
sym - the symbolizerpublic static Stroke stroke(PolygonSymbolizer sym)
sym - the symbolizerpublic static Stroke stroke(PointSymbolizer sym)
sym - the symbolizerpublic static Fill fill(PolygonSymbolizer sym)
sym - the symbolizerpublic static Fill fill(PointSymbolizer sym)
sym - the symbolizerpublic static PointSymbolizer pointSymbolizer(FeatureTypeStyle fts)
fts - the FeatureTypeStyle objectpublic static PointSymbolizer pointSymbolizer(Style style)
style - the Style objectpublic static PolygonSymbolizer polySymbolizer(FeatureTypeStyle fts)
fts - FeatureTypeStyle object.public static PolygonSymbolizer polySymbolizer(Style style)
style - the Style objectpublic static FeatureTypeStyle featureTypeStyle(Style style, SimpleFeatureType type)
style - the Style objecttype - the feature type (must be non-null)public static Style matchingStyle(Style[] styles, SimpleFeatureType schema)
styles - Array of style objects.schema - Feature schema.protected static Symbolizer symbolizer(Style style, Class SYMBOLIZER)
style - SLD style information.SYMBOLIZER - LineSymbolizer.class, PointSymbolizer.class, PolygonSymbolizer.class,
     RasterSymbolizer.class, or TextSymbolizer.classprotected static Symbolizer symbolizer(FeatureTypeStyle fts, Class SYMBOLIZER)
fts - the FeatureTypeStyle SLD style information.SYMBOLIZER - LineSymbolizer.class, PointSymbolizer.class, PolygonSymbolizer.class,
     RasterSymbolizer.class, or TextSymbolizer.classpublic static String colorToHex(Color c)
c - the Color objectpublic static Style[] styles(StyledLayerDescriptor sld)
sld - the StyledLayerDescriptor objectpublic static FeatureTypeStyle[] featureTypeStyles(StyledLayerDescriptor sld)
sld - the StyledLayerDescriptor objectpublic static FeatureTypeStyle featureTypeStyle(StyledLayerDescriptor sld, SimpleFeatureType type)
sld - a StyledLayerDescriptor objecttype - the feature type to matchpublic static Style defaultStyle(StyledLayerDescriptor sld)
sld - the StyledLayerDescriptor objectpublic static Filter[] filters(Rule[] rule)
rule - the rulepublic static Filter[] filters(Style style)
style - the stylepublic static Rule[] rules(Style style)
style - the stylepublic static Symbolizer[] symbolizers(Style style)
style - the stylepublic static Symbolizer[] symbolizers(Rule rule)
rule - the rulepublic static String[] colors(Style style)
style - the stylepublic static String[] colors(Rule rule)
rule - the rulepublic static String toHTMLColor(Color color)
color - color to convertpublic static Color toColor(String htmlColor)
htmlColor - the colour stringpublic static boolean isSemanticTypeMatch(FeatureTypeStyle fts, String regex)
fts - the feature type styleregex - regular expression to matchpublic static double minScale(FeatureTypeStyle fts)
fts - the feature type stylepublic static double maxScale(FeatureTypeStyle fts)
fts - the feature type stylepublic static PointPlacement getPlacement(double horizAlign, double vertAlign, double rotation)
horizAlign - horizontal alignment (0 to 1)vertAlign - vertical alignment (0 to 1)rotation - rotation angle in degreespublic static Style createSimpleStyle(DataStore store, String typeName, Color color) throws IOException
typeName read from the given data
 storestore - the data store containing the featurestypeName - the feature type to create the style forcolor - single color to use for all components of the StyleIOException - if the data store cannot be accessedpublic static Style createSimpleStyle(FeatureType type)
type.type - the feature typepublic static Style createSimpleStyle(FeatureType type, Color color)
typestore - the data store containing the featurestypeName - the feature type to create the style forcolor - single color to use for all components of the StyleIOException - if the data store cannot be accessedpublic static Style createPolygonStyle(Color outlineColor, Color fillColor, float opacity)
outlineColor - color of polygon outlinesfillColor - color for the fillopacity - proportional opacity (0 to 1)public static Style createPolygonStyle(Color outlineColor, Color fillColor, float opacity, String labelField, Font labelFont)
outlineColor - color of polygon outlinesfillColor - color for the fillopacity - proportional opacity (0 to 1)labelField - name of the feature field (attribute) to use for labelling; mauy be null for no labelslabelFont - GeoTools Font object to use for labelling; if null and labelField is not null the default font will be usedpublic static Style createLineStyle(Color lineColor, float width)
lineColor - color of lineswidth - width of linespublic static Style createLineStyle(Color lineColor, float width, String labelField, Font labelFont)
lineColor - color of lineswidth - width of lineslabelField - name of the feature field (attribute) to use for labelling; mauy be null for no labelslabelFont - GeoTools Font object to use for labelling; if null and labelField is not null the default font will be usedpublic static Style createPointStyle(String wellKnownName, Color lineColor, Color fillColor, float opacity, float size)
wellKnownName - one of: Circle, Square, Cross, X, Triangle or StarlineColor - color for the point symbol outlinefillColor - color for the point symbol fillopacity - a value between 0 and 1 for the opacity of the fillsize - size of the point symbolpublic static Style createPointStyle(String wellKnownName, Color lineColor, Color fillColor, float opacity, float size, String labelField, Font labelFont)
wellKnownName - one of: Circle, Square, Cross, X, Triangle or StarlineColor - color for the point symbol outlinefillColor - color for the point symbol fillopacity - a value between 0 and 1 for the opacity of the fillsize - size of the point symbollabelField - name of the feature field (attribute) to use for labelling; mauy be null for no labelslabelFont - GeoTools Font object to use for labelling; if null and labelField is not null the default font will be usedpublic static Style wrapSymbolizers(Symbolizer... symbolizers)
symbolizers - one or more symbolizer objectsCopyright © 1996–2019 Geotools. All rights reserved.