Method Summary |
|
public static Color | color(Fill fill) |
public static Color | color(LineSymbolizer symbolizer) Retrieve color from linesymbolizer if available.
Parameters: symbolizer - Line symbolizer information. |
public static Color | color(PointSymbolizer symbolizer) Grabs the color from the first Mark.
If you are using something fun like symbols you will need to do your
own thing.
Parameters: symbolizer - Point symbolizer information. |
public static Color | color(Expression expr) Navigate through the expression finding the first mentioned Color. |
public static String | colorToHex(Color c) |
public static String[] | colors(Style style) |
public static String[] | colors(Rule rule) |
public static Style | defaultStyle(StyledLayerDescriptor sld) |
public static double | doubleValue(Expression expr) This method is here for backward compatability. |
public static FeatureTypeStyle | featureTypeStyle(Style style, FeatureType type) Returns the feature type style in the style which matched a particular
name.
Parameters: style - The style in question. Parameters: type - The feature type must be non-null. |
public static FeatureTypeStyle | featureTypeStyle(StyledLayerDescriptor sld, FeatureType type) |
public static FeatureTypeStyle[] | featureTypeStyles(StyledLayerDescriptor sld) |
public static Fill | fill(PolygonSymbolizer sym) |
public static Fill | fill(PointSymbolizer sym) |
public static Filter[] | filters(Rule[] rule) |
public static Filter[] | filters(Style style) |
public static Font | font(TextSymbolizer symbolizer) |
public static Graphic | graphic(PointSymbolizer sym) |
public static int | intValue(Expression expr) This method is here for backward compatability. |
public static Color | lineColor(LineSymbolizer symbolizer) Retrieve linestring color from linesymbolizer if available.
Parameters: symbolizer - Line symbolizer information. |
public static float[] | lineDash(LineSymbolizer symbolizer) Grabs the dashes array from the first LineSymbolizer.
Parameters: symbolizer - Line symbolizer information. |
public static String | lineLinecap(LineSymbolizer symbolizer) Grabs the linecap from the first LineSymbolizer.
Parameters: symbolizer - Line symbolizer information. |
public static String | lineLinejoin(LineSymbolizer symbolizer) Grabs the linejoin from the first LineSymbolizer.
Parameters: symbolizer - Line symbolizer information. |
public static double | lineOpacity(LineSymbolizer symbolizer) Grabs the opacity from the first LineSymbolizer.
Parameters: symbolizer - Line symbolizer information. |
public static LineSymbolizer | lineSymbolizer(FeatureTypeStyle fts) Retrieve the first LineSymbolizer from the provided Style.
Parameters: fts - SLD featureTypeStyle information. |
public static LineSymbolizer | lineSymbolizer(Style style) Retrieve the first LineSymbolizer from the provided Style.
Parameters: style - SLD style information. |
public static int | lineWidth(LineSymbolizer symbolizer) Retrieve linestring width from symbolizer if available.
Parameters: symbolizer - Line symbolizer information. |
public static Mark | mark(PointSymbolizer sym) |
public static Mark | mark(Graphic graphic) |
public static Style | matchingStyle(Style[] styles, FeatureType schema) Returns the first style object which matches a given schema.
Parameters: styles - Array of style objects. Parameters: schema - Feature schema. |
public static Number | number(Expression expr) This method is here for backward compatability. |
public static double | opacity(Stroke stroke) |
public static double | opacity(RasterSymbolizer rasterSymbolizer) |
public static double | opacity(Fill fill) |
public static double | pointBorderOpacity(PointSymbolizer symbolizer) Grabs the point border opacity from the first PointSymbolizer.
If you are using something fun like rules you will need to do your own
thing.
Parameters: symbolizer - Point symbolizer information. |
public static Color | pointColor(PointSymbolizer symbolizer) Grabs the color from the first Mark.
If you are using something fun like symbols you will need to do your
own thing.
Parameters: symbolizer - Point symbolizer information. |
public static Color | pointFill(PointSymbolizer symbolizer) Grabs the fill from the first Mark.
If you are using something fun like symbols you will need to do your
own thing.
Parameters: symbolizer - Point symbolizer information. |
public static URL | pointGraphic(Style style) Grabs the location of the first external graphic.
Parameters: style - SLD style information. |
public static Mark | pointMark(Style style) |
public static double | pointOpacity(PointSymbolizer symbolizer) Grabs the point opacity from the first PointSymbolizer.
If you are using something fun like rules you will need to do your own
thing.
Parameters: symbolizer - Point symbolizer information. |
public static int | pointSize(PointSymbolizer symbolizer) Grabs the size of the points graphic, if found.
If you are using something fun like symbols you will need to do your
own thing.
Parameters: symbolizer - Point symbolizer information. |
public static PointSymbolizer | pointSymbolizer(FeatureTypeStyle fts) Retrieve the first PointSymbolizer from the provided FeatureTypeStyle.
Parameters: fts - SLD featureTypeStyle information. |
public static PointSymbolizer | pointSymbolizer(Style style) Retrieve the first PointSymbolizer from the provided Style.
Parameters: style - SLD style information. |
public static String | pointWellKnownName(PointSymbolizer symbolizer) Grabs the well known name of the first Mark that has one.
If you are using something fun like symbols you will need to do your
own thing.
Parameters: symbolizer - Point symbolizer information. |
public static int | pointWidth(PointSymbolizer symbolizer) Grabs the width of the first Mark with a Stroke that has a non-null
width.
If you are using something fun like symbols you will need to do your
own thing.
Parameters: symbolizer - Point symbolizer information. |
public static double | polyBorderOpacity(PolygonSymbolizer symbolizer) Grabs the border opacity from the first PolygonSymbolizer.
If you are using something fun like rules you will need to do your own
thing.
Parameters: symbolizer - Polygon symbolizer information. |
public static Color | polyColor(PolygonSymbolizer symbolizer) Grabs the color from the first PolygonSymbolizer.
If you are using something fun like rules you will need to do your own
thing.
Parameters: symbolizer - Polygon symbolizer information. |
public static Color | polyFill(PolygonSymbolizer symbolizer) Grabs the fill from the first PolygonSymbolizer.
If you are using something fun like rules you will need to do your own
thing.
Parameters: symbolizer - Polygon symbolizer information. |
public static double | polyFillOpacity(PolygonSymbolizer symbolizer) Grabs the fill opacity from the first PolygonSymbolizer.
If you are using something fun like rules you will need to do your own
thing.
Parameters: symbolizer - Polygon symbolizer information. |
public static PolygonSymbolizer | polySymbolizer(FeatureTypeStyle fts) Retrieve the first PolygonSymbolizer from the provided Style.
Parameters: fts - SLD featureTypeStyle information. |
public static PolygonSymbolizer | polySymbolizer(Style style) Retrieve the first PolygonSymbolizer from the provided Style.
Parameters: style - SLD style information. |
public static int | polyWidth(PolygonSymbolizer symbolizer) Grabs the color from the first PolygonSymbolizer.
If you are using something fun like rules you will need to do your own
thing.
Parameters: symbolizer - Polygon symbolizer information. |
public static double | rasterOpacity(RasterSymbolizer symbolizer) Grabs the opacity from the first RasterSymbolizer.
If you are using something fun like rules you will need to do your own
thing.
Parameters: symbolizer - Raster symbolizer information. |
public static double | rasterOpacity(Style style) |
public static RasterSymbolizer | rasterSymbolizer(FeatureTypeStyle fts) Retrieve the first RasterSymbolizer from the provided Style.
Parameters: fts - SLD featureTypeStyle information. |
public static RasterSymbolizer | rasterSymbolizer(Style style) Retrieve the first RasterSymbolizer from the provided Style.
Parameters: style - SLD style information. |
public static Rule[] | rules(Style style) |
public static void | setLineColour(Style style, Color colour) |
public static void | setLineColour(LineSymbolizer symbolizer, Color colour) |
public static void | setPointColour(Style style, Color colour) |
public static void | setPointColour(PointSymbolizer symbolizer, Color colour) |
public static void | setPolyColour(Style style, Color colour) |
public static void | setPolyColour(PolygonSymbolizer symbolizer, Color colour) |
public static int | size(Mark mark) |
public static String | stringValue(Expression expr) This method is here for backward compatability. |
public static Stroke | stroke(LineSymbolizer sym) |
public static Stroke | stroke(PolygonSymbolizer sym) |
public static Stroke | stroke(PointSymbolizer sym) |
public static Color | strokeColor(Stroke stroke) |
public static StyledLayerDescriptor | styledLayerDescriptor(Object gtComponent) Climbs the style hierarchy until null or an SLD is found. |
public static Style[] | styles(StyledLayerDescriptor sld) |
protected static Symbolizer | symbolizer(Style style, Class SYMBOLIZER) Retrieve the first SYMBOLIZER from the provided Style. |
protected static Symbolizer | symbolizer(FeatureTypeStyle fts, Class SYMBOLIZER) Retrieve the first SYMBOLIZER from the provided FeatureTypeStyle. |
public static Symbolizer[] | symbolizers(Style style) |
public static Symbolizer[] | symbolizers(Rule rule) |
public static Color | textFontFill(TextSymbolizer symbolizer) Grabs the fontFill from the first TextSymbolizer.
If you are using something fun like symbols you will need to do your
own thing.
Parameters: symbolizer - Text symbolizer information. |
public static Color | textHaloFill(TextSymbolizer symbolizer) Grabs the haloFill from the first TextSymbolizer.
If you are using something fun like symbols you will need to do your
own thing.
Parameters: symbolizer - Text symbolizer information. |
public static double | textHaloOpacity(TextSymbolizer symbolizer) Grabs the halo opacity from the first TextSymbolizer.
If you are using something fun like symbols you will need to do your
own thing.
Parameters: symbolizer - Text symbolizer information. |
public static int | textHaloWidth(TextSymbolizer symbolizer) Grabs the halo width from the first TextSymbolizer.
If you are using something fun like symbols you will need to do your
own thing.
Parameters: symbolizer - Text symbolizer information. |
public static Expression | textLabel(TextSymbolizer symbolizer) Grabs the label from the first TextSymbolizer.
If you are using something fun like symbols you will need to do your
own thing.
Parameters: symbolizer - Text symbolizer information. |
public static String | textLabelString(TextSymbolizer sym) |
public static TextSymbolizer | textSymbolizer(FeatureTypeStyle fts) Retrieve the first TextSymbolizer from the provided Style.
Parameters: fts - SLD featureTypeStyle information. |
public static TextSymbolizer | textSymbolizer(Style style) Retrieve the first TextSymbolizer from the provided Style.
Parameters: style - SLD style information. |
public static Color | toColor(String htmlColor) |
public static String | toHTMLColor(Color color) |
public static Object | value(Expression expr, Class TYPE) This method is here for backwards compatability. |
public static String | wellKnownName(Mark mark) |
public static int | width(Stroke stroke) |
public static int | width(LineSymbolizer symbolizer) Retrieve linestring width from symbolizer if available.
Parameters: symbolizer - Line symbolizer information. |