|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SLD net.refractions.udig.ui.graphics.SLDs
public class SLDs
Utility class for working with Geotools SLD objects.
This class assumes a subset of the SLD specification:
When you start to branch out to SLD information that contains multiple rules you will need to modify this class.
Field Summary | |
---|---|
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 java.lang.String |
GENERIC_FEATURE_TYPENAME
The type name that can be used in an SLD in the featuretypestyle that matches all feature types. |
Constructor Summary | |
---|---|
SLDs()
|
Method Summary | |
---|---|
static Font |
font(TextSymbolizer symbolizer)
|
static Style |
getDefaultStyle(StyledLayerDescriptor sld)
|
static FeatureTypeStyle |
getFeatureTypeStyle(Style s)
gets the first FeatureTypeStyle |
static PointPlacement |
getPlacement(double horizAlign,
double vertAlign,
double rotation)
|
static Rule |
getRasterSymbolizerRule(Style s)
Find the first rule which contains a rastersymbolizer, and return it |
static boolean |
isSemanticTypeMatch(FeatureTypeStyle fts,
java.lang.String regex)
|
static double |
maxScale(FeatureTypeStyle fts)
Returns the max scale of the default rule, or Double.NaN if none is set |
static double |
minScale(FeatureTypeStyle fts)
Returns the min scale of the default rule, or 0 if none is set |
static FontData[] |
textFont(TextSymbolizer symbolizer)
Grabs the font from the first TextSymbolizer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public 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 final java.lang.String GENERIC_FEATURE_TYPENAME
Constructor Detail |
---|
public SLDs()
Method Detail |
---|
public static FontData[] textFont(TextSymbolizer symbolizer)
If you are using something fun like symbols you will need to do your own thing.
symbolizer
- Text symbolizer information.
public static Font font(TextSymbolizer symbolizer)
public static Style getDefaultStyle(StyledLayerDescriptor sld)
public static boolean isSemanticTypeMatch(FeatureTypeStyle fts, java.lang.String regex)
public static double minScale(FeatureTypeStyle fts)
public static double maxScale(FeatureTypeStyle fts)
public static FeatureTypeStyle getFeatureTypeStyle(Style s)
public static Rule getRasterSymbolizerRule(Style s)
s
- A style to search in
public static PointPlacement getPlacement(double horizAlign, double vertAlign, double rotation)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |