| net.refractions.udig.ui.graphics.SLDs
SLDs | final public class SLDs extends SLD (Code) | | Utility class for working with Geotools SLD objects.
This class assumes a subset of the SLD specification:
- Single Rule - matching Filter.NONE
- Symbolizer lookup by name
When you start to branch out to SLD information that contains
multiple rules you will need to modify this class.
author: Jody Garnett, Refractions Research. since: 0.7.0 |
Method Summary | |
public static Font | font(TextSymbolizer symbolizer) | public static Style | getDefaultStyle(StyledLayerDescriptor sld) | public static PointPlacement | getPlacement(double horizAlign, double vertAlign, double rotation) | public static boolean | isSemanticTypeMatch(FeatureTypeStyle fts, String regex) | public static double | maxScale(FeatureTypeStyle fts) | public static double | minScale(FeatureTypeStyle fts) | public static FontData[] | textFont(TextSymbolizer symbolizer) Grabs the font 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. |
ALIGN_BOTTOM | final public static double ALIGN_BOTTOM(Code) | | |
ALIGN_CENTER | final public static double ALIGN_CENTER(Code) | | |
ALIGN_LEFT | final public static double ALIGN_LEFT(Code) | | |
ALIGN_MIDDLE | final public static double ALIGN_MIDDLE(Code) | | |
ALIGN_RIGHT | final public static double ALIGN_RIGHT(Code) | | |
ALIGN_TOP | final public static double ALIGN_TOP(Code) | | |
font | public static Font font(TextSymbolizer symbolizer)(Code) | | |
getDefaultStyle | public static Style getDefaultStyle(StyledLayerDescriptor sld)(Code) | | |
getPlacement | public static PointPlacement getPlacement(double horizAlign, double vertAlign, double rotation)(Code) | | |
isSemanticTypeMatch | public static boolean isSemanticTypeMatch(FeatureTypeStyle fts, String regex)(Code) | | |
maxScale | public static double maxScale(FeatureTypeStyle fts)(Code) | | Returns the max scale of the default rule, or
if none is set
|
minScale | public static double minScale(FeatureTypeStyle fts)(Code) | | Returns the min scale of the default rule, or 0 if none is set
|
textFont | public static FontData[] textFont(TextSymbolizer symbolizer)(Code) | | Grabs the font 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. FontData[] of the font's fill, or null if unavailable. |
|
|