org.geotools.styling
Interface StyleFactory
- All Superinterfaces:
- Factory
- All Known Subinterfaces:
- StyleFactory2
- All Known Implementing Classes:
- AbstractStyleFactory, StyleFactoryImpl
public interface StyleFactory
- extends Factory
Abstract base class for implementing style factories.
- Module:
Method Summary |
AnchorPoint |
createAnchorPoint(Expression x,
Expression y)
|
ChannelSelection |
createChannelSelection(SelectedChannelType[] channels)
|
ColorMap |
createColorMap()
|
ColorMapEntry |
createColorMapEntry()
|
ContrastEnhancement |
createContrastEnhancement()
|
ContrastEnhancement |
createContrastEnhancement(Expression gammaValue)
|
Graphic |
createDefaultGraphic()
|
Displacement |
createDisplacement(Expression x,
Expression y)
|
Extent |
createExtent(String name,
String value)
Creates a new extent. |
ExternalGraphic |
createExternalGraphic(String uri,
String format)
|
ExternalGraphic |
createExternalGraphic(URL url,
String format)
|
FeatureTypeConstraint |
createFeatureTypeConstraint(String featureTypeName,
Filter filter,
Extent[] extents)
Creates a new feature type constraint. |
FeatureTypeStyle |
createFeatureTypeStyle()
|
FeatureTypeStyle |
createFeatureTypeStyle(Rule[] rules)
|
Fill |
createFill(Expression color)
|
Fill |
createFill(Expression color,
Expression opacity)
|
Fill |
createFill(Expression color,
Expression backgroundColor,
Expression opacity,
Graphic graphicFill)
|
Font |
createFont(Expression fontFamily,
Expression fontStyle,
Expression fontWeight,
Expression fontSize)
|
Graphic |
createGraphic(ExternalGraphic[] externalGraphics,
Mark[] marks,
Symbol[] symbols,
Expression opacity,
Expression size,
Expression rotation)
|
Halo |
createHalo(Fill fill,
Expression radius)
|
ImageOutline |
createImageOutline(Symbolizer symbolizer)
Creates a new ImageOutline. |
LayerFeatureConstraints |
createLayerFeatureConstraints(FeatureTypeConstraint[] featureTypeConstraints)
|
LinePlacement |
createLinePlacement(Expression offset)
|
LineSymbolizer |
createLineSymbolizer()
|
LineSymbolizer |
createLineSymbolizer(Stroke stroke,
String geometryPropertyName)
|
Mark |
createMark()
|
Mark |
createMark(Expression wellKnownName,
Stroke stroke,
Fill fill,
Expression size,
Expression rotation)
|
NamedLayer |
createNamedLayer()
|
NamedStyle |
createNamedStyle()
|
PointPlacement |
createPointPlacement(AnchorPoint anchorPoint,
Displacement displacement,
Expression rotation)
|
PointSymbolizer |
createPointSymbolizer()
|
PointSymbolizer |
createPointSymbolizer(Graphic graphic,
String geometryPropertyName)
|
PolygonSymbolizer |
createPolygonSymbolizer()
|
PolygonSymbolizer |
createPolygonSymbolizer(Stroke stroke,
Fill fill,
String geometryPropertyName)
|
RasterSymbolizer |
createRasterSymbolizer()
|
RasterSymbolizer |
createRasterSymbolizer(String geometryPropertyName,
Expression opacity,
ChannelSelection channel,
Expression overlap,
ColorMap colorMap,
ContrastEnhancement ce,
ShadedRelief relief,
Symbolizer outline)
|
RemoteOWS |
createRemoteOWS(String service,
String onlineResource)
|
Rule |
createRule()
|
SelectedChannelType |
createSelectedChannelType(String name,
ContrastEnhancement enhancement)
|
SelectedChannelType |
createSelectedChannelType(String name,
Expression gammaValue)
Deprecated. Use createSelectedChannelType(String, ContrastEnhancement) |
ShadedRelief |
createShadedRelief(Expression reliefFactor)
|
Stroke |
createStroke(Expression color,
Expression width)
A convienice method to make a simple stroke |
Stroke |
createStroke(Expression color,
Expression width,
Expression opacity)
A convienice method to make a simple stroke |
Stroke |
createStroke(Expression color,
Expression width,
Expression opacity,
Expression lineJoin,
Expression lineCap,
float[] dashArray,
Expression dashOffset,
Graphic graphicFill,
Graphic graphicStroke)
creates a stroke |
Style |
createStyle()
|
StyledLayerDescriptor |
createStyledLayerDescriptor()
|
TextSymbolizer |
createTextSymbolizer()
|
TextSymbolizer |
createTextSymbolizer(Fill fill,
Font[] fonts,
Halo halo,
Expression label,
LabelPlacement labelPlacement,
String geometryPropertyName)
|
UserLayer |
createUserLayer()
|
Mark |
getCircleMark()
Convinence method for obtaining a mark of a fixed shape |
Mark |
getCrossMark()
Convinence method for obtaining a mark of a fixed shape |
Fill |
getDefaultFill()
|
Font |
getDefaultFont()
|
Graphic |
getDefaultGraphic()
|
LineSymbolizer |
getDefaultLineSymbolizer()
|
Mark |
getDefaultMark()
|
PointPlacement |
getDefaultPointPlacement()
|
PointSymbolizer |
getDefaultPointSymbolizer()
|
PolygonSymbolizer |
getDefaultPolygonSymbolizer()
|
RasterSymbolizer |
getDefaultRasterSymbolizer()
|
Stroke |
getDefaultStroke()
|
Style |
getDefaultStyle()
|
TextSymbolizer |
getDefaultTextSymbolizer()
Creates a default Text Symbolizer, using the defaultFill, defaultFont
and defaultPointPlacement, Sets the geometry attribute name to be
geometry:text. |
Mark |
getSquareMark()
Convinence method for obtaining a mark of a fixed shape |
Mark |
getStarMark()
Convinence method for obtaining a mark of a fixed shape |
Mark |
getTriangleMark()
Convinence method for obtaining a mark of a fixed shape |
Mark |
getXMark()
Convinence method for obtaining a mark of a fixed shape |
createTextSymbolizer
TextSymbolizer createTextSymbolizer(Fill fill,
Font[] fonts,
Halo halo,
Expression label,
LabelPlacement labelPlacement,
String geometryPropertyName)
createExternalGraphic
ExternalGraphic createExternalGraphic(URL url,
String format)
createExternalGraphic
ExternalGraphic createExternalGraphic(String uri,
String format)
createAnchorPoint
AnchorPoint createAnchorPoint(Expression x,
Expression y)
createDisplacement
Displacement createDisplacement(Expression x,
Expression y)
createPointSymbolizer
PointSymbolizer createPointSymbolizer()
createMark
Mark createMark(Expression wellKnownName,
Stroke stroke,
Fill fill,
Expression size,
Expression rotation)
getCircleMark
Mark getCircleMark()
- Convinence method for obtaining a mark of a fixed shape
- Returns:
- a Mark that matches the name in this method.
getXMark
Mark getXMark()
- Convinence method for obtaining a mark of a fixed shape
- Returns:
- a Mark that matches the name in this method.
getStarMark
Mark getStarMark()
- Convinence method for obtaining a mark of a fixed shape
- Returns:
- a Mark that matches the name in this method.
getSquareMark
Mark getSquareMark()
- Convinence method for obtaining a mark of a fixed shape
- Returns:
- a Mark that matches the name in this method.
getCrossMark
Mark getCrossMark()
- Convinence method for obtaining a mark of a fixed shape
- Returns:
- a Mark that matches the name in this method.
getTriangleMark
Mark getTriangleMark()
- Convinence method for obtaining a mark of a fixed shape
- Returns:
- a Mark that matches the name in this method.
createExtent
Extent createExtent(String name,
String value)
- Creates a new extent.
- Parameters:
name
- The name of the extent.value
- The value of the extent.
- Returns:
- The new extent.
createFeatureTypeConstraint
FeatureTypeConstraint createFeatureTypeConstraint(String featureTypeName,
Filter filter,
Extent[] extents)
- Creates a new feature type constraint.
- Parameters:
featureTypeName
- The feature type name.filter
- The filter.extents
- The extents.
- Returns:
- The new feature type constaint.
createLayerFeatureConstraints
LayerFeatureConstraints createLayerFeatureConstraints(FeatureTypeConstraint[] featureTypeConstraints)
createFeatureTypeStyle
FeatureTypeStyle createFeatureTypeStyle(Rule[] rules)
createImageOutline
ImageOutline createImageOutline(Symbolizer symbolizer)
- Creates a new ImageOutline.
- Parameters:
symbolizer
- A line or polygon symbolizer.
- Returns:
- The new image outline.
createLinePlacement
LinePlacement createLinePlacement(Expression offset)
createPolygonSymbolizer
PolygonSymbolizer createPolygonSymbolizer()
createHalo
Halo createHalo(Fill fill,
Expression radius)
createFill
Fill createFill(Expression color,
Expression backgroundColor,
Expression opacity,
Graphic graphicFill)
createLineSymbolizer
LineSymbolizer createLineSymbolizer()
createPointSymbolizer
PointSymbolizer createPointSymbolizer(Graphic graphic,
String geometryPropertyName)
createStyle
Style createStyle()
createNamedStyle
NamedStyle createNamedStyle()
createFill
Fill createFill(Expression color,
Expression opacity)
createFill
Fill createFill(Expression color)
createTextSymbolizer
TextSymbolizer createTextSymbolizer()
createPointPlacement
PointPlacement createPointPlacement(AnchorPoint anchorPoint,
Displacement displacement,
Expression rotation)
createStroke
Stroke createStroke(Expression color,
Expression width)
- A convienice method to make a simple stroke
- Parameters:
color
- the color of the linewidth
- the width of the line
- Returns:
- the stroke object
- See Also:
org.geotools.stroke
createStroke
Stroke createStroke(Expression color,
Expression width,
Expression opacity)
- A convienice method to make a simple stroke
- Parameters:
color
- the color of the linewidth
- The width of the lineopacity
- The opacity of the line
- Returns:
- The stroke
- See Also:
org.geotools.stroke
createStroke
Stroke createStroke(Expression color,
Expression width,
Expression opacity,
Expression lineJoin,
Expression lineCap,
float[] dashArray,
Expression dashOffset,
Graphic graphicFill,
Graphic graphicStroke)
- creates a stroke
- Parameters:
color
- The color of the linewidth
- The width of the lineopacity
- The opacity of the linelineJoin
- - the type of Line jointlineCap
- - the type of line capdashArray
- - an array of floats describing the dashes in the linedashOffset
- - where in the dash array to start drawing fromgraphicFill
- - a graphic object to fill the line withgraphicStroke
- - a graphic object to draw the line with
- Returns:
- The completed stroke.
- See Also:
org.geotools.stroke
createRule
Rule createRule()
createLineSymbolizer
LineSymbolizer createLineSymbolizer(Stroke stroke,
String geometryPropertyName)
createFeatureTypeStyle
FeatureTypeStyle createFeatureTypeStyle()
createGraphic
Graphic createGraphic(ExternalGraphic[] externalGraphics,
Mark[] marks,
Symbol[] symbols,
Expression opacity,
Expression size,
Expression rotation)
createFont
Font createFont(Expression fontFamily,
Expression fontStyle,
Expression fontWeight,
Expression fontSize)
createMark
Mark createMark()
createPolygonSymbolizer
PolygonSymbolizer createPolygonSymbolizer(Stroke stroke,
Fill fill,
String geometryPropertyName)
createRasterSymbolizer
RasterSymbolizer createRasterSymbolizer()
createRasterSymbolizer
RasterSymbolizer createRasterSymbolizer(String geometryPropertyName,
Expression opacity,
ChannelSelection channel,
Expression overlap,
ColorMap colorMap,
ContrastEnhancement ce,
ShadedRelief relief,
Symbolizer outline)
getDefaultRasterSymbolizer
RasterSymbolizer getDefaultRasterSymbolizer()
createChannelSelection
ChannelSelection createChannelSelection(SelectedChannelType[] channels)
createContrastEnhancement
ContrastEnhancement createContrastEnhancement()
createContrastEnhancement
ContrastEnhancement createContrastEnhancement(Expression gammaValue)
createSelectedChannelType
SelectedChannelType createSelectedChannelType(String name,
ContrastEnhancement enhancement)
createSelectedChannelType
SelectedChannelType createSelectedChannelType(String name,
Expression gammaValue)
- Deprecated. Use
createSelectedChannelType(String, ContrastEnhancement)
createColorMap
ColorMap createColorMap()
createColorMapEntry
ColorMapEntry createColorMapEntry()
getDefaultStyle
Style getDefaultStyle()
getDefaultStroke
Stroke getDefaultStroke()
getDefaultFill
Fill getDefaultFill()
getDefaultMark
Mark getDefaultMark()
getDefaultPointSymbolizer
PointSymbolizer getDefaultPointSymbolizer()
getDefaultPolygonSymbolizer
PolygonSymbolizer getDefaultPolygonSymbolizer()
getDefaultLineSymbolizer
LineSymbolizer getDefaultLineSymbolizer()
getDefaultTextSymbolizer
TextSymbolizer getDefaultTextSymbolizer()
- Creates a default Text Symbolizer, using the defaultFill, defaultFont
and defaultPointPlacement, Sets the geometry attribute name to be
geometry:text. No Halo is set. The label is not set
- Returns:
- A default TextSymbolizer
createDefaultGraphic
Graphic createDefaultGraphic()
getDefaultGraphic
Graphic getDefaultGraphic()
getDefaultFont
Font getDefaultFont()
getDefaultPointPlacement
PointPlacement getDefaultPointPlacement()
createStyledLayerDescriptor
StyledLayerDescriptor createStyledLayerDescriptor()
createUserLayer
UserLayer createUserLayer()
createNamedLayer
NamedLayer createNamedLayer()
createRemoteOWS
RemoteOWS createRemoteOWS(String service,
String onlineResource)
createShadedRelief
ShadedRelief createShadedRelief(Expression reliefFactor)
Copyright © 1996-2009 Geotools. All Rights Reserved.