Package org.geotools.styling
Class AbstractStyleFactory
- Object
-
- AbstractStyleFactory
-
- All Implemented Interfaces:
StyleFactory
- Direct Known Subclasses:
StyleFactoryImpl
public abstract class AbstractStyleFactory extends Object implements StyleFactory
Abstract base class for implementing style factories.
-
-
Constructor Summary
Constructors Constructor Description AbstractStyleFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AnchorPoint
createAnchorPoint(Expression x, Expression y)
abstract ColorMap
createColorMap()
abstract ColorMapEntry
createColorMapEntry()
abstract Displacement
createDisplacement(Expression x, Expression y)
abstract ExternalGraphic
createExternalGraphic(String uri, String format)
abstract ExternalGraphic
createExternalGraphic(URL url, String format)
abstract ExternalGraphic
createExternalGraphic(Icon inlineContent, String format)
abstract FeatureTypeStyle
createFeatureTypeStyle()
abstract FeatureTypeStyle
createFeatureTypeStyle(Rule[] rules)
abstract Fill
createFill(Expression color)
abstract Fill
createFill(Expression color, Expression opacity)
abstract Fill
createFill(Expression color, Expression backgroundColor, Expression opacity, Graphic graphicFill)
abstract Font
createFont(Expression fontFamily, Expression fontStyle, Expression fontWeight, Expression fontSize)
abstract Graphic
createGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, Expression opacity, Expression size, Expression rotation)
abstract Halo
createHalo(Fill fill, Expression radius)
abstract LinePlacement
createLinePlacement(Expression offset)
abstract LineSymbolizer
createLineSymbolizer()
Create default line symbolizerabstract LineSymbolizer
createLineSymbolizer(Stroke stroke, String geometryPropertyName)
abstract Mark
createMark()
abstract Mark
createMark(Expression wellKnownName, Stroke stroke, Fill fill, Expression size, Expression rotation)
abstract NamedStyle
createNamedStyle()
abstract PointPlacement
createPointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation)
abstract PointSymbolizer
createPointSymbolizer()
abstract PointSymbolizer
createPointSymbolizer(Graphic graphic, String geometryPropertyName)
abstract PolygonSymbolizer
createPolygonSymbolizer()
abstract PolygonSymbolizer
createPolygonSymbolizer(Stroke stroke, Fill fill, String geometryPropertyName)
abstract RasterSymbolizer
createRasterSymbolizer(String geometryPropertyName, Expression opacity, ChannelSelection channel, Expression overlap, ColorMap colorMap, ContrastEnhancement ce, ShadedRelief relief, Symbolizer outline)
abstract Rule
createRule()
abstract SelectedChannelType
createSelectedChannelType(String name, ContrastEnhancement enhancement)
abstract SelectedChannelType
createSelectedChannelType(Expression name, Expression enhancement)
abstract Stroke
createStroke(Expression color, Expression width)
A convienice method to make a simple strokeabstract Stroke
createStroke(Expression color, Expression width, Expression opacity)
A convienice method to make a simple strokeabstract Stroke
createStroke(Expression color, Expression width, Expression opacity, Expression lineJoin, Expression lineCap, float[] dashArray, Expression dashOffset, Graphic graphicFill, Graphic graphicStroke)
creates a strokeabstract Style
createStyle()
abstract TextSymbolizer
createTextSymbolizer()
abstract TextSymbolizer
createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName)
abstract Mark
getCircleMark()
Convinence method for obtaining a mark of a fixed shapeabstract Mark
getCrossMark()
Convinence method for obtaining a mark of a fixed shapeabstract Fill
getDefaultFill()
abstract Font
getDefaultFont()
abstract Graphic
getDefaultGraphic()
abstract LineSymbolizer
getDefaultLineSymbolizer()
abstract Mark
getDefaultMark()
abstract PointPlacement
getDefaultPointPlacement()
abstract PointSymbolizer
getDefaultPointSymbolizer()
abstract PolygonSymbolizer
getDefaultPolygonSymbolizer()
abstract RasterSymbolizer
getDefaultRasterSymbolizer()
abstract Stroke
getDefaultStroke()
abstract Style
getDefaultStyle()
abstract TextSymbolizer
getDefaultTextSymbolizer()
Creates a default Text Symbolizer, using the defaultFill, defaultFont and defaultPointPlacement, Sets the geometry attribute name to be geometry:text.Map<RenderingHints.Key,?>
getImplementationHints()
Returns implementation hints for this factory.abstract Mark
getSquareMark()
Convinence method for obtaining a mark of a fixed shapeabstract Mark
getStarMark()
Convinence method for obtaining a mark of a fixed shapeabstract Mark
getTriangleMark()
Convinence method for obtaining a mark of a fixed shapeabstract Mark
getXMark()
Convinence method for obtaining a mark of a fixed shape-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface StyleFactory
anchorPoint, channelSelection, channelSelection, colorMap, colorReplacement, contrastEnhancement, contrastEnhancement, createChannelSelection, createContrastEnhancement, createContrastEnhancement, createContrastMethod, createDefaultGraphic, createExtent, createFeatureTypeConstraint, createImageOutline, createLayerFeatureConstraints, createNamedLayer, createRasterSymbolizer, createRemoteOWS, createSelectedChannelType, createShadedRelief, createStyledLayerDescriptor, createTextSymbolizer, createUserLayer, description, displacement, extensionSymbolizer, externalGraphic, externalGraphic, externalMark, externalMark, featureTypeStyle, fill, font, graphic, graphicFill, graphicLegend, graphicStroke, halo, linePlacement, lineSymbolizer, mark, mark, pointPlacement, pointSymbolizer, polygonSymbolizer, rasterSymbolizer, rule, selectedChannelType, selectedChannelType, shadedRelief, stroke, stroke, stroke, style, textSymbolizer
-
-
-
-
Method Detail
-
createTextSymbolizer
public abstract TextSymbolizer createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName)
- Specified by:
createTextSymbolizer
in interfaceStyleFactory
-
createExternalGraphic
public abstract ExternalGraphic createExternalGraphic(URL url, String format)
- Specified by:
createExternalGraphic
in interfaceStyleFactory
-
createExternalGraphic
public abstract ExternalGraphic createExternalGraphic(String uri, String format)
- Specified by:
createExternalGraphic
in interfaceStyleFactory
-
createExternalGraphic
public abstract ExternalGraphic createExternalGraphic(Icon inlineContent, String format)
- Specified by:
createExternalGraphic
in interfaceStyleFactory
-
createAnchorPoint
public abstract AnchorPoint createAnchorPoint(Expression x, Expression y)
- Specified by:
createAnchorPoint
in interfaceStyleFactory
-
createDisplacement
public abstract Displacement createDisplacement(Expression x, Expression y)
- Specified by:
createDisplacement
in interfaceStyleFactory
-
createPointSymbolizer
public abstract PointSymbolizer createPointSymbolizer()
- Specified by:
createPointSymbolizer
in interfaceStyleFactory
-
createMark
public abstract Mark createMark(Expression wellKnownName, Stroke stroke, Fill fill, Expression size, Expression rotation)
- Specified by:
createMark
in interfaceStyleFactory
-
getCircleMark
public abstract Mark getCircleMark()
Convinence method for obtaining a mark of a fixed shape- Specified by:
getCircleMark
in interfaceStyleFactory
- Returns:
- a Mark that matches the name in this method.
-
getXMark
public abstract Mark getXMark()
Convinence method for obtaining a mark of a fixed shape- Specified by:
getXMark
in interfaceStyleFactory
- Returns:
- a Mark that matches the name in this method.
-
getStarMark
public abstract Mark getStarMark()
Convinence method for obtaining a mark of a fixed shape- Specified by:
getStarMark
in interfaceStyleFactory
- Returns:
- a Mark that matches the name in this method.
-
getSquareMark
public abstract Mark getSquareMark()
Convinence method for obtaining a mark of a fixed shape- Specified by:
getSquareMark
in interfaceStyleFactory
- Returns:
- a Mark that matches the name in this method.
-
getCrossMark
public abstract Mark getCrossMark()
Convinence method for obtaining a mark of a fixed shape- Specified by:
getCrossMark
in interfaceStyleFactory
- Returns:
- a Mark that matches the name in this method.
-
getTriangleMark
public abstract Mark getTriangleMark()
Convinence method for obtaining a mark of a fixed shape- Specified by:
getTriangleMark
in interfaceStyleFactory
- Returns:
- a Mark that matches the name in this method.
-
createFeatureTypeStyle
public abstract FeatureTypeStyle createFeatureTypeStyle(Rule[] rules)
- Specified by:
createFeatureTypeStyle
in interfaceStyleFactory
-
createLinePlacement
public abstract LinePlacement createLinePlacement(Expression offset)
- Specified by:
createLinePlacement
in interfaceStyleFactory
-
createPolygonSymbolizer
public abstract PolygonSymbolizer createPolygonSymbolizer()
- Specified by:
createPolygonSymbolizer
in interfaceStyleFactory
-
createHalo
public abstract Halo createHalo(Fill fill, Expression radius)
- Specified by:
createHalo
in interfaceStyleFactory
-
createFill
public abstract Fill createFill(Expression color, Expression backgroundColor, Expression opacity, Graphic graphicFill)
- Specified by:
createFill
in interfaceStyleFactory
-
createLineSymbolizer
public abstract LineSymbolizer createLineSymbolizer()
Description copied from interface:StyleFactory
Create default line symbolizer- Specified by:
createLineSymbolizer
in interfaceStyleFactory
-
createPointSymbolizer
public abstract PointSymbolizer createPointSymbolizer(Graphic graphic, String geometryPropertyName)
- Specified by:
createPointSymbolizer
in interfaceStyleFactory
-
createStyle
public abstract Style createStyle()
- Specified by:
createStyle
in interfaceStyleFactory
-
createNamedStyle
public abstract NamedStyle createNamedStyle()
- Specified by:
createNamedStyle
in interfaceStyleFactory
-
createFill
public abstract Fill createFill(Expression color, Expression opacity)
- Specified by:
createFill
in interfaceStyleFactory
-
createFill
public abstract Fill createFill(Expression color)
- Specified by:
createFill
in interfaceStyleFactory
-
createTextSymbolizer
public abstract TextSymbolizer createTextSymbolizer()
- Specified by:
createTextSymbolizer
in interfaceStyleFactory
-
createPointPlacement
public abstract PointPlacement createPointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation)
- Specified by:
createPointPlacement
in interfaceStyleFactory
-
createStroke
public abstract Stroke createStroke(Expression color, Expression width)
A convienice method to make a simple stroke- Specified by:
createStroke
in interfaceStyleFactory
- Parameters:
color
- the color of the linewidth
- the width of the line- Returns:
- the stroke object
- See Also:
Stroke
-
createStroke
public abstract Stroke createStroke(Expression color, Expression width, Expression opacity)
A convienice method to make a simple stroke- Specified by:
createStroke
in interfaceStyleFactory
- Parameters:
color
- the color of the linewidth
- The width of the lineopacity
- The opacity of the line- Returns:
- The stroke
-
createStroke
public abstract Stroke createStroke(Expression color, Expression width, Expression opacity, Expression lineJoin, Expression lineCap, float[] dashArray, Expression dashOffset, Graphic graphicFill, Graphic graphicStroke)
creates a stroke- Specified by:
createStroke
in interfaceStyleFactory
- 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.
-
createRule
public abstract Rule createRule()
- Specified by:
createRule
in interfaceStyleFactory
-
createLineSymbolizer
public abstract LineSymbolizer createLineSymbolizer(Stroke stroke, String geometryPropertyName)
- Specified by:
createLineSymbolizer
in interfaceStyleFactory
-
createFeatureTypeStyle
public abstract FeatureTypeStyle createFeatureTypeStyle()
- Specified by:
createFeatureTypeStyle
in interfaceStyleFactory
-
createGraphic
public abstract Graphic createGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, Expression opacity, Expression size, Expression rotation)
- Specified by:
createGraphic
in interfaceStyleFactory
-
createFont
public abstract Font createFont(Expression fontFamily, Expression fontStyle, Expression fontWeight, Expression fontSize)
- Specified by:
createFont
in interfaceStyleFactory
-
createMark
public abstract Mark createMark()
- Specified by:
createMark
in interfaceStyleFactory
-
createPolygonSymbolizer
public abstract PolygonSymbolizer createPolygonSymbolizer(Stroke stroke, Fill fill, String geometryPropertyName)
- Specified by:
createPolygonSymbolizer
in interfaceStyleFactory
-
createRasterSymbolizer
public abstract RasterSymbolizer createRasterSymbolizer(String geometryPropertyName, Expression opacity, ChannelSelection channel, Expression overlap, ColorMap colorMap, ContrastEnhancement ce, ShadedRelief relief, Symbolizer outline)
- Specified by:
createRasterSymbolizer
in interfaceStyleFactory
-
getDefaultRasterSymbolizer
public abstract RasterSymbolizer getDefaultRasterSymbolizer()
- Specified by:
getDefaultRasterSymbolizer
in interfaceStyleFactory
-
createSelectedChannelType
public abstract SelectedChannelType createSelectedChannelType(Expression name, Expression enhancement)
- Specified by:
createSelectedChannelType
in interfaceStyleFactory
-
createSelectedChannelType
public abstract SelectedChannelType createSelectedChannelType(String name, ContrastEnhancement enhancement)
- Specified by:
createSelectedChannelType
in interfaceStyleFactory
-
createColorMap
public abstract ColorMap createColorMap()
- Specified by:
createColorMap
in interfaceStyleFactory
-
createColorMapEntry
public abstract ColorMapEntry createColorMapEntry()
- Specified by:
createColorMapEntry
in interfaceStyleFactory
-
getDefaultStyle
public abstract Style getDefaultStyle()
- Specified by:
getDefaultStyle
in interfaceStyleFactory
-
getDefaultStroke
public abstract Stroke getDefaultStroke()
- Specified by:
getDefaultStroke
in interfaceStyleFactory
-
getDefaultFill
public abstract Fill getDefaultFill()
- Specified by:
getDefaultFill
in interfaceStyleFactory
-
getDefaultMark
public abstract Mark getDefaultMark()
- Specified by:
getDefaultMark
in interfaceStyleFactory
-
getDefaultPointSymbolizer
public abstract PointSymbolizer getDefaultPointSymbolizer()
- Specified by:
getDefaultPointSymbolizer
in interfaceStyleFactory
-
getDefaultPolygonSymbolizer
public abstract PolygonSymbolizer getDefaultPolygonSymbolizer()
- Specified by:
getDefaultPolygonSymbolizer
in interfaceStyleFactory
-
getDefaultLineSymbolizer
public abstract LineSymbolizer getDefaultLineSymbolizer()
- Specified by:
getDefaultLineSymbolizer
in interfaceStyleFactory
-
getDefaultTextSymbolizer
public abstract 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- Specified by:
getDefaultTextSymbolizer
in interfaceStyleFactory
- Returns:
- A default TextSymbolizer
-
getDefaultGraphic
public abstract Graphic getDefaultGraphic()
- Specified by:
getDefaultGraphic
in interfaceStyleFactory
-
getDefaultFont
public abstract Font getDefaultFont()
- Specified by:
getDefaultFont
in interfaceStyleFactory
-
getDefaultPointPlacement
public abstract PointPlacement getDefaultPointPlacement()
- Specified by:
getDefaultPointPlacement
in interfaceStyleFactory
-
getImplementationHints
public Map<RenderingHints.Key,?> getImplementationHints()
Returns implementation hints for this factory. The default implementation returns an empty map.- Specified by:
getImplementationHints
in interfaceStyleFactory
-
-