Package org.geotools.styling
Class AbstractStyleFactory
Object
AbstractStyleFactory
- All Implemented Interfaces:
StyleFactory
- Direct Known Subclasses:
StyleFactoryImpl
Abstract base class for implementing style factories.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AnchorPoint
abstract ColorMap
abstract ColorMapEntry
abstract Displacement
abstract ExternalGraphic
createExternalGraphic
(String uri, String format) abstract ExternalGraphic
createExternalGraphic
(URL url, String format) abstract ExternalGraphic
createExternalGraphic
(Icon inlineContent, String format) abstract FeatureTypeStyle
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
Create default line symbolizerabstract LineSymbolizer
createLineSymbolizer
(Stroke stroke, String geometryPropertyName) abstract Mark
abstract Mark
createMark
(Expression wellKnownName, Stroke stroke, Fill fill, Expression size, Expression rotation) abstract NamedStyle
abstract PointPlacement
createPointPlacement
(AnchorPoint anchorPoint, Displacement displacement, Expression rotation) abstract PointSymbolizer
abstract PointSymbolizer
createPointSymbolizer
(Graphic graphic, String geometryPropertyName) abstract PolygonSymbolizer
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
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
abstract TextSymbolizer
abstract TextSymbolizer
createTextSymbolizer
(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName) abstract Mark
Convinence method for obtaining a mark of a fixed shapeabstract Mark
Convinence method for obtaining a mark of a fixed shapeabstract Fill
abstract Font
abstract Graphic
abstract LineSymbolizer
abstract Mark
abstract PointPlacement
abstract PointSymbolizer
abstract PolygonSymbolizer
abstract RasterSymbolizer
abstract Stroke
abstract Style
abstract TextSymbolizer
Creates a default Text Symbolizer, using the defaultFill, defaultFont and defaultPointPlacement, Sets the geometry attribute name to be geometry:text.Returns implementation hints for this factory.abstract Mark
Convinence method for obtaining a mark of a fixed shapeabstract Mark
Convinence method for obtaining a mark of a fixed shapeabstract Mark
Convinence method for obtaining a mark of a fixed shapeabstract Mark
getXMark()
Convinence method for obtaining a mark of a fixed shapeMethods 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
-
Constructor Details
-
AbstractStyleFactory
public AbstractStyleFactory()
-
-
Method Details
-
createTextSymbolizer
public abstract TextSymbolizer createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName) - Specified by:
createTextSymbolizer
in interfaceStyleFactory
-
createExternalGraphic
- Specified by:
createExternalGraphic
in interfaceStyleFactory
-
createExternalGraphic
- Specified by:
createExternalGraphic
in interfaceStyleFactory
-
createExternalGraphic
- Specified by:
createExternalGraphic
in interfaceStyleFactory
-
createAnchorPoint
- Specified by:
createAnchorPoint
in interfaceStyleFactory
-
createDisplacement
- Specified by:
createDisplacement
in interfaceStyleFactory
-
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
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
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
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
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
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
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
- Specified by:
createFeatureTypeStyle
in interfaceStyleFactory
-
createLinePlacement
- Specified by:
createLinePlacement
in interfaceStyleFactory
-
createPolygonSymbolizer
- Specified by:
createPolygonSymbolizer
in interfaceStyleFactory
-
createHalo
- Specified by:
createHalo
in interfaceStyleFactory
-
createFill
public abstract Fill createFill(Expression color, Expression backgroundColor, Expression opacity, Graphic graphicFill) - Specified by:
createFill
in interfaceStyleFactory
-
createLineSymbolizer
Description copied from interface:StyleFactory
Create default line symbolizer- Specified by:
createLineSymbolizer
in interfaceStyleFactory
-
createPointSymbolizer
- Specified by:
createPointSymbolizer
in interfaceStyleFactory
-
createStyle
- Specified by:
createStyle
in interfaceStyleFactory
-
createNamedStyle
- Specified by:
createNamedStyle
in interfaceStyleFactory
-
createFill
- Specified by:
createFill
in interfaceStyleFactory
-
createFill
- Specified by:
createFill
in interfaceStyleFactory
-
createTextSymbolizer
- Specified by:
createTextSymbolizer
in interfaceStyleFactory
-
createPointPlacement
public abstract PointPlacement createPointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation) - Specified by:
createPointPlacement
in interfaceStyleFactory
-
createStroke
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:
-
createStroke
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
- Specified by:
createRule
in interfaceStyleFactory
-
createLineSymbolizer
- Specified by:
createLineSymbolizer
in interfaceStyleFactory
-
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
- 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
- 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
- Specified by:
createColorMap
in interfaceStyleFactory
-
createColorMapEntry
- Specified by:
createColorMapEntry
in interfaceStyleFactory
-
getDefaultStyle
- Specified by:
getDefaultStyle
in interfaceStyleFactory
-
getDefaultStroke
- Specified by:
getDefaultStroke
in interfaceStyleFactory
-
getDefaultFill
- Specified by:
getDefaultFill
in interfaceStyleFactory
-
getDefaultMark
- Specified by:
getDefaultMark
in interfaceStyleFactory
-
getDefaultPointSymbolizer
- Specified by:
getDefaultPointSymbolizer
in interfaceStyleFactory
-
getDefaultPolygonSymbolizer
- Specified by:
getDefaultPolygonSymbolizer
in interfaceStyleFactory
-
getDefaultLineSymbolizer
- Specified by:
getDefaultLineSymbolizer
in interfaceStyleFactory
-
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
- Specified by:
getDefaultGraphic
in interfaceStyleFactory
-
getDefaultFont
- Specified by:
getDefaultFont
in interfaceStyleFactory
-
getDefaultPointPlacement
- Specified by:
getDefaultPointPlacement
in interfaceStyleFactory
-
getImplementationHints
Returns implementation hints for this factory. The default implementation returns an empty map.- Specified by:
getImplementationHints
in interfaceStyleFactory
-