public abstract class StyleHelper extends Object
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_FILL_OPACITY
Default fill opacity
|
Constructor and Description |
---|
StyleHelper() |
Modifier and Type | Method and Description |
---|---|
static org.geotools.styling.LineSymbolizer |
createLineSymbolizer(Color color,
double width)
Create a default line symbolizer.
|
static org.geotools.styling.PointSymbolizer |
createPointSymbolizer(Color color,
double width)
Create a default point symbolizer.
|
static org.geotools.styling.PolygonSymbolizer |
createPolygonSymbolizer(Color color,
double width)
Create a default polygon symbolizer.
|
static org.geotools.styling.FeatureTypeStyle |
getDefaultStyle(TypeDefinition typeDef,
DataSet dataSet)
Returns a default style for the given type.
|
static String |
getFeatureTypeName(TypeDefinition typeDef)
Get the name used in styles for the given type definition.
|
static org.geotools.styling.Style |
getStyle(TypeDefinition type,
DataSet dataSet)
Get a style containing the default style for the given type.
|
static org.geotools.styling.Symbolizer |
mutatePointSymbolizer(org.geotools.styling.PointSymbolizer symbolizer,
Color color,
int width)
Create a new point symbolizer based on the given one.
|
public static final double DEFAULT_FILL_OPACITY
public static org.geotools.styling.FeatureTypeStyle getDefaultStyle(TypeDefinition typeDef, DataSet dataSet)
typeDef
- the type definitiondataSet
- the data setpublic static String getFeatureTypeName(TypeDefinition typeDef)
typeDef
- the type definitionpublic static org.geotools.styling.Style getStyle(TypeDefinition type, DataSet dataSet)
type
- the type definitiondataSet
- the data setpublic static org.geotools.styling.Symbolizer mutatePointSymbolizer(org.geotools.styling.PointSymbolizer symbolizer, Color color, int width)
symbolizer
- the point symbolizercolor
- the new colorwidth
- the new line widthpublic static org.geotools.styling.PointSymbolizer createPointSymbolizer(Color color, double width)
color
- the colorwidth
- the line widthpublic static org.geotools.styling.LineSymbolizer createLineSymbolizer(Color color, double width)
color
- the colorwidth
- the line widthpublic static org.geotools.styling.PolygonSymbolizer createPolygonSymbolizer(Color color, double width)
color
- the colorwidth
- the line widthBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a