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 AnchorPointcreateAnchorPoint(Expression x, Expression y)abstract ColorMapcreateColorMap()abstract ColorMapEntrycreateColorMapEntry()abstract DisplacementcreateDisplacement(Expression x, Expression y)abstract ExternalGraphiccreateExternalGraphic(String uri, String format)abstract ExternalGraphiccreateExternalGraphic(URL url, String format)abstract ExternalGraphiccreateExternalGraphic(Icon inlineContent, String format)abstract FeatureTypeStylecreateFeatureTypeStyle()abstract FeatureTypeStylecreateFeatureTypeStyle(Rule[] rules)abstract FillcreateFill(Expression color)abstract FillcreateFill(Expression color, Expression opacity)abstract FillcreateFill(Expression color, Expression backgroundColor, Expression opacity, Graphic graphicFill)abstract FontcreateFont(Expression fontFamily, Expression fontStyle, Expression fontWeight, Expression fontSize)abstract GraphiccreateGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, Expression opacity, Expression size, Expression rotation)abstract HalocreateHalo(Fill fill, Expression radius)abstract LinePlacementcreateLinePlacement(Expression offset)abstract LineSymbolizercreateLineSymbolizer()Create default line symbolizerabstract LineSymbolizercreateLineSymbolizer(Stroke stroke, String geometryPropertyName)abstract MarkcreateMark()abstract MarkcreateMark(Expression wellKnownName, Stroke stroke, Fill fill, Expression size, Expression rotation)abstract NamedStylecreateNamedStyle()abstract PointPlacementcreatePointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation)abstract PointSymbolizercreatePointSymbolizer()abstract PointSymbolizercreatePointSymbolizer(Graphic graphic, String geometryPropertyName)abstract PolygonSymbolizercreatePolygonSymbolizer()abstract PolygonSymbolizercreatePolygonSymbolizer(Stroke stroke, Fill fill, String geometryPropertyName)abstract RasterSymbolizercreateRasterSymbolizer(String geometryPropertyName, Expression opacity, ChannelSelection channel, Expression overlap, ColorMap colorMap, ContrastEnhancement ce, ShadedRelief relief, Symbolizer outline)abstract RulecreateRule()abstract SelectedChannelTypecreateSelectedChannelType(String name, ContrastEnhancement enhancement)abstract SelectedChannelTypecreateSelectedChannelType(Expression name, Expression enhancement)abstract StrokecreateStroke(Expression color, Expression width)A convienice method to make a simple strokeabstract StrokecreateStroke(Expression color, Expression width, Expression opacity)A convienice method to make a simple strokeabstract StrokecreateStroke(Expression color, Expression width, Expression opacity, Expression lineJoin, Expression lineCap, float[] dashArray, Expression dashOffset, Graphic graphicFill, Graphic graphicStroke)creates a strokeabstract StylecreateStyle()abstract TextSymbolizercreateTextSymbolizer()abstract TextSymbolizercreateTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName)abstract MarkgetCircleMark()Convinence method for obtaining a mark of a fixed shapeabstract MarkgetCrossMark()Convinence method for obtaining a mark of a fixed shapeabstract FillgetDefaultFill()abstract FontgetDefaultFont()abstract GraphicgetDefaultGraphic()abstract LineSymbolizergetDefaultLineSymbolizer()abstract MarkgetDefaultMark()abstract PointPlacementgetDefaultPointPlacement()abstract PointSymbolizergetDefaultPointSymbolizer()abstract PolygonSymbolizergetDefaultPolygonSymbolizer()abstract RasterSymbolizergetDefaultRasterSymbolizer()abstract StrokegetDefaultStroke()abstract StylegetDefaultStyle()abstract TextSymbolizergetDefaultTextSymbolizer()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 MarkgetSquareMark()Convinence method for obtaining a mark of a fixed shapeabstract MarkgetStarMark()Convinence method for obtaining a mark of a fixed shapeabstract MarkgetTriangleMark()Convinence method for obtaining a mark of a fixed shapeabstract MarkgetXMark()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:
createTextSymbolizerin interfaceStyleFactory
-
createExternalGraphic
public abstract ExternalGraphic createExternalGraphic(URL url, String format)
- Specified by:
createExternalGraphicin interfaceStyleFactory
-
createExternalGraphic
public abstract ExternalGraphic createExternalGraphic(String uri, String format)
- Specified by:
createExternalGraphicin interfaceStyleFactory
-
createExternalGraphic
public abstract ExternalGraphic createExternalGraphic(Icon inlineContent, String format)
- Specified by:
createExternalGraphicin interfaceStyleFactory
-
createAnchorPoint
public abstract AnchorPoint createAnchorPoint(Expression x, Expression y)
- Specified by:
createAnchorPointin interfaceStyleFactory
-
createDisplacement
public abstract Displacement createDisplacement(Expression x, Expression y)
- Specified by:
createDisplacementin interfaceStyleFactory
-
createPointSymbolizer
public abstract PointSymbolizer createPointSymbolizer()
- Specified by:
createPointSymbolizerin interfaceStyleFactory
-
createMark
public abstract Mark createMark(Expression wellKnownName, Stroke stroke, Fill fill, Expression size, Expression rotation)
- Specified by:
createMarkin interfaceStyleFactory
-
getCircleMark
public abstract Mark getCircleMark()
Convinence method for obtaining a mark of a fixed shape- Specified by:
getCircleMarkin 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:
getXMarkin 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:
getStarMarkin 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:
getSquareMarkin 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:
getCrossMarkin 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:
getTriangleMarkin interfaceStyleFactory- Returns:
- a Mark that matches the name in this method.
-
createFeatureTypeStyle
public abstract FeatureTypeStyle createFeatureTypeStyle(Rule[] rules)
- Specified by:
createFeatureTypeStylein interfaceStyleFactory
-
createLinePlacement
public abstract LinePlacement createLinePlacement(Expression offset)
- Specified by:
createLinePlacementin interfaceStyleFactory
-
createPolygonSymbolizer
public abstract PolygonSymbolizer createPolygonSymbolizer()
- Specified by:
createPolygonSymbolizerin interfaceStyleFactory
-
createHalo
public abstract Halo createHalo(Fill fill, Expression radius)
- Specified by:
createHaloin interfaceStyleFactory
-
createFill
public abstract Fill createFill(Expression color, Expression backgroundColor, Expression opacity, Graphic graphicFill)
- Specified by:
createFillin interfaceStyleFactory
-
createLineSymbolizer
public abstract LineSymbolizer createLineSymbolizer()
Description copied from interface:StyleFactoryCreate default line symbolizer- Specified by:
createLineSymbolizerin interfaceStyleFactory
-
createPointSymbolizer
public abstract PointSymbolizer createPointSymbolizer(Graphic graphic, String geometryPropertyName)
- Specified by:
createPointSymbolizerin interfaceStyleFactory
-
createStyle
public abstract Style createStyle()
- Specified by:
createStylein interfaceStyleFactory
-
createNamedStyle
public abstract NamedStyle createNamedStyle()
- Specified by:
createNamedStylein interfaceStyleFactory
-
createFill
public abstract Fill createFill(Expression color, Expression opacity)
- Specified by:
createFillin interfaceStyleFactory
-
createFill
public abstract Fill createFill(Expression color)
- Specified by:
createFillin interfaceStyleFactory
-
createTextSymbolizer
public abstract TextSymbolizer createTextSymbolizer()
- Specified by:
createTextSymbolizerin interfaceStyleFactory
-
createPointPlacement
public abstract PointPlacement createPointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation)
- Specified by:
createPointPlacementin interfaceStyleFactory
-
createStroke
public abstract Stroke createStroke(Expression color, Expression width)
A convienice method to make a simple stroke- Specified by:
createStrokein 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:
createStrokein 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:
createStrokein 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:
createRulein interfaceStyleFactory
-
createLineSymbolizer
public abstract LineSymbolizer createLineSymbolizer(Stroke stroke, String geometryPropertyName)
- Specified by:
createLineSymbolizerin interfaceStyleFactory
-
createFeatureTypeStyle
public abstract FeatureTypeStyle createFeatureTypeStyle()
- Specified by:
createFeatureTypeStylein interfaceStyleFactory
-
createGraphic
public abstract Graphic createGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, Expression opacity, Expression size, Expression rotation)
- Specified by:
createGraphicin interfaceStyleFactory
-
createFont
public abstract Font createFont(Expression fontFamily, Expression fontStyle, Expression fontWeight, Expression fontSize)
- Specified by:
createFontin interfaceStyleFactory
-
createMark
public abstract Mark createMark()
- Specified by:
createMarkin interfaceStyleFactory
-
createPolygonSymbolizer
public abstract PolygonSymbolizer createPolygonSymbolizer(Stroke stroke, Fill fill, String geometryPropertyName)
- Specified by:
createPolygonSymbolizerin interfaceStyleFactory
-
createRasterSymbolizer
public abstract RasterSymbolizer createRasterSymbolizer(String geometryPropertyName, Expression opacity, ChannelSelection channel, Expression overlap, ColorMap colorMap, ContrastEnhancement ce, ShadedRelief relief, Symbolizer outline)
- Specified by:
createRasterSymbolizerin interfaceStyleFactory
-
getDefaultRasterSymbolizer
public abstract RasterSymbolizer getDefaultRasterSymbolizer()
- Specified by:
getDefaultRasterSymbolizerin interfaceStyleFactory
-
createSelectedChannelType
public abstract SelectedChannelType createSelectedChannelType(Expression name, Expression enhancement)
- Specified by:
createSelectedChannelTypein interfaceStyleFactory
-
createSelectedChannelType
public abstract SelectedChannelType createSelectedChannelType(String name, ContrastEnhancement enhancement)
- Specified by:
createSelectedChannelTypein interfaceStyleFactory
-
createColorMap
public abstract ColorMap createColorMap()
- Specified by:
createColorMapin interfaceStyleFactory
-
createColorMapEntry
public abstract ColorMapEntry createColorMapEntry()
- Specified by:
createColorMapEntryin interfaceStyleFactory
-
getDefaultStyle
public abstract Style getDefaultStyle()
- Specified by:
getDefaultStylein interfaceStyleFactory
-
getDefaultStroke
public abstract Stroke getDefaultStroke()
- Specified by:
getDefaultStrokein interfaceStyleFactory
-
getDefaultFill
public abstract Fill getDefaultFill()
- Specified by:
getDefaultFillin interfaceStyleFactory
-
getDefaultMark
public abstract Mark getDefaultMark()
- Specified by:
getDefaultMarkin interfaceStyleFactory
-
getDefaultPointSymbolizer
public abstract PointSymbolizer getDefaultPointSymbolizer()
- Specified by:
getDefaultPointSymbolizerin interfaceStyleFactory
-
getDefaultPolygonSymbolizer
public abstract PolygonSymbolizer getDefaultPolygonSymbolizer()
- Specified by:
getDefaultPolygonSymbolizerin interfaceStyleFactory
-
getDefaultLineSymbolizer
public abstract LineSymbolizer getDefaultLineSymbolizer()
- Specified by:
getDefaultLineSymbolizerin 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:
getDefaultTextSymbolizerin interfaceStyleFactory- Returns:
- A default TextSymbolizer
-
getDefaultGraphic
public abstract Graphic getDefaultGraphic()
- Specified by:
getDefaultGraphicin interfaceStyleFactory
-
getDefaultFont
public abstract Font getDefaultFont()
- Specified by:
getDefaultFontin interfaceStyleFactory
-
getDefaultPointPlacement
public abstract PointPlacement getDefaultPointPlacement()
- Specified by:
getDefaultPointPlacementin interfaceStyleFactory
-
getImplementationHints
public Map<RenderingHints.Key,?> getImplementationHints()
Returns implementation hints for this factory. The default implementation returns an empty map.- Specified by:
getImplementationHintsin interfaceStyleFactory
-
-