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 AnchorPointabstract ColorMapabstract ColorMapEntryabstract Displacementabstract ExternalGraphiccreateExternalGraphic(String uri, String format) abstract ExternalGraphiccreateExternalGraphic(URL url, String format) abstract ExternalGraphiccreateExternalGraphic(Icon inlineContent, String format) abstract FeatureTypeStyleabstract 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 LineSymbolizerCreate default line symbolizerabstract LineSymbolizercreateLineSymbolizer(Stroke stroke, String geometryPropertyName) abstract Markabstract MarkcreateMark(Expression wellKnownName, Stroke stroke, Fill fill, Expression size, Expression rotation) abstract NamedStyleabstract PointPlacementcreatePointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation) abstract PointSymbolizerabstract PointSymbolizercreatePointSymbolizer(Graphic graphic, String geometryPropertyName) abstract PolygonSymbolizerabstract 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 Ruleabstract 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 Styleabstract TextSymbolizerabstract TextSymbolizercreateTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName) abstract MarkConvinence method for obtaining a mark of a fixed shapeabstract MarkConvinence method for obtaining a mark of a fixed shapeabstract Fillabstract Fontabstract Graphicabstract LineSymbolizerabstract Markabstract PointPlacementabstract PointSymbolizerabstract PolygonSymbolizerabstract RasterSymbolizerabstract Strokeabstract Styleabstract TextSymbolizerCreates 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 MarkConvinence method for obtaining a mark of a fixed shapeabstract MarkConvinence method for obtaining a mark of a fixed shapeabstract MarkConvinence method for obtaining a mark of a fixed shapeabstract MarkgetXMark()Convinence method for obtaining a mark of a fixed shapeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
createTextSymbolizerin interfaceStyleFactory
-
createExternalGraphic
- Specified by:
createExternalGraphicin interfaceStyleFactory
-
createExternalGraphic
- Specified by:
createExternalGraphicin interfaceStyleFactory
-
createExternalGraphic
- Specified by:
createExternalGraphicin interfaceStyleFactory
-
createAnchorPoint
- Specified by:
createAnchorPointin interfaceStyleFactory
-
createDisplacement
- Specified by:
createDisplacementin interfaceStyleFactory
-
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
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
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
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
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
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
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
- Specified by:
createFeatureTypeStylein interfaceStyleFactory
-
createLinePlacement
- Specified by:
createLinePlacementin interfaceStyleFactory
-
createPolygonSymbolizer
- Specified by:
createPolygonSymbolizerin interfaceStyleFactory
-
createHalo
- Specified by:
createHaloin interfaceStyleFactory
-
createFill
public abstract Fill createFill(Expression color, Expression backgroundColor, Expression opacity, Graphic graphicFill) - Specified by:
createFillin interfaceStyleFactory
-
createLineSymbolizer
Description copied from interface:StyleFactoryCreate default line symbolizer- Specified by:
createLineSymbolizerin interfaceStyleFactory
-
createPointSymbolizer
- Specified by:
createPointSymbolizerin interfaceStyleFactory
-
createStyle
- Specified by:
createStylein interfaceStyleFactory
-
createNamedStyle
- Specified by:
createNamedStylein interfaceStyleFactory
-
createFill
- Specified by:
createFillin interfaceStyleFactory
-
createFill
- Specified by:
createFillin interfaceStyleFactory
-
createTextSymbolizer
- Specified by:
createTextSymbolizerin interfaceStyleFactory
-
createPointPlacement
public abstract PointPlacement createPointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation) - Specified by:
createPointPlacementin interfaceStyleFactory
-
createStroke
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:
-
createStroke
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
- Specified by:
createRulein interfaceStyleFactory
-
createLineSymbolizer
- Specified by:
createLineSymbolizerin interfaceStyleFactory
-
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
- 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
- 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
- Specified by:
createColorMapin interfaceStyleFactory
-
createColorMapEntry
- Specified by:
createColorMapEntryin interfaceStyleFactory
-
getDefaultStyle
- Specified by:
getDefaultStylein interfaceStyleFactory
-
getDefaultStroke
- Specified by:
getDefaultStrokein interfaceStyleFactory
-
getDefaultFill
- Specified by:
getDefaultFillin interfaceStyleFactory
-
getDefaultMark
- Specified by:
getDefaultMarkin interfaceStyleFactory
-
getDefaultPointSymbolizer
- Specified by:
getDefaultPointSymbolizerin interfaceStyleFactory
-
getDefaultPolygonSymbolizer
- Specified by:
getDefaultPolygonSymbolizerin interfaceStyleFactory
-
getDefaultLineSymbolizer
- Specified by:
getDefaultLineSymbolizerin 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:
getDefaultTextSymbolizerin interfaceStyleFactory- Returns:
- A default TextSymbolizer
-
getDefaultGraphic
- Specified by:
getDefaultGraphicin interfaceStyleFactory
-
getDefaultFont
- Specified by:
getDefaultFontin interfaceStyleFactory
-
getDefaultPointPlacement
- Specified by:
getDefaultPointPlacementin interfaceStyleFactory
-
getImplementationHints
Returns implementation hints for this factory. The default implementation returns an empty map.- Specified by:
getImplementationHintsin interfaceStyleFactory
-