Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.style
Class StyleHelper

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.style.StyleHelper

public abstract class StyleHelper
extends Object

Style helper methods

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Field Summary
static double DEFAULT_FILL_OPACITY
          Default fill opacity
 
Constructor Summary
StyleHelper()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FILL_OPACITY

public static final double DEFAULT_FILL_OPACITY
Default fill opacity

See Also:
Constant Field Values
Constructor Detail

StyleHelper

public StyleHelper()
Method Detail

getDefaultStyle

public static org.geotools.styling.FeatureTypeStyle getDefaultStyle(TypeDefinition typeDef,
                                                                    DataSet dataSet)
Returns a default style for the given type.

Parameters:
typeDef - the type definition
dataSet - the data set
Returns:
the style

getFeatureTypeName

public static String getFeatureTypeName(TypeDefinition typeDef)
Get the name used in styles for the given type definition.

Parameters:
typeDef - the type definition
Returns:
the feature type name

getStyle

public static org.geotools.styling.Style getStyle(TypeDefinition type,
                                                  DataSet dataSet)
Get a style containing the default style for the given type.

Parameters:
type - the type definition
dataSet - the data set
Returns:
the style with the default type style

mutatePointSymbolizer

public 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.

Parameters:
symbolizer - the point symbolizer
color - the new color
width - the new line width
Returns:
the mutated symbolizer

createPointSymbolizer

public static org.geotools.styling.PointSymbolizer createPointSymbolizer(Color color,
                                                                         double width)
Create a default point symbolizer.

Parameters:
color - the color
width - the line width
Returns:
the point symbolizer

createLineSymbolizer

public static org.geotools.styling.LineSymbolizer createLineSymbolizer(Color color,
                                                                       double width)
Create a default line symbolizer.

Parameters:
color - the color
width - the line width
Returns:
the line symbolizer

createPolygonSymbolizer

public static org.geotools.styling.PolygonSymbolizer createPolygonSymbolizer(Color color,
                                                                             double width)
Create a default polygon symbolizer.

Parameters:
color - the color
width - the line width
Returns:
the polygon symbolizer

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d