Package org.geotools.styling
Class StyleFactoryImpl
Object
AbstractStyleFactory
StyleFactoryImpl
- All Implemented Interfaces:
StyleFactory
Factory for creating Styles. All style elements are returned as Interfaces from
org.geotools.api.style as
opposed to Implementations from org.geotools.styling.
Implements StyleFactory to provide:
- SLD 1.0
- SE 1.1
- GeoTools extensions (such as a text mark allowing a graphic beyond text)
- Author:
- iant
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanchorPoint(Expression x, Expression y) channelSelection(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue) colorMap(Expression propertyName, Expression... mapping) Wrap up a "Categorize" function using the provided expressions.colorReplacement(Expression propertyName, Expression... mapping) Wrap up a replacement function using the provided expressions.contrastEnhancement(Expression gamma, String method) contrastEnhancement(Expression gamma, ContrastMethod method) createChannelSelection(SelectedChannelType... channels) createContrastEnhancement(Expression gammaValue) createContrastMethod(ContrastMethod method) createExtent(String name, String value) Creates a new extent.createExternalGraphic(String uri, String format) createExternalGraphic(URL url, String format) createExternalGraphic(Icon inlineContent, String format) createFeatureTypeConstraint(String featureTypeName, Filter filter, Extent... extents) Creates a new feature type constraint.createFeatureTypeStyle(Rule... rules) createFill(Expression color) createFill(Expression color, Expression opacity) createFill(Expression color, Expression backgroundColor, Expression opacity, Graphic graphicFill) createFont(Expression fontFamily, Expression fontStyle, Expression fontWeight, Expression fontSize) createGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, Expression opacity, Expression size, Expression rotation) createHalo(Fill fill, Expression radius) createImageOutline(Symbolizer symbolizer) Creates a new ImageOutline.createLayerFeatureConstraints(FeatureTypeConstraint... featureTypeConstraints) createLinePlacement(Expression offset) Create default line symbolizercreateLineSymbolizer(Stroke stroke, String geometryPropertyName) createMark(Expression wellKnownName, Stroke stroke, Fill fill, Expression size, Expression rotation) createPointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation) createPointSymbolizer(Graphic graphic, String geometryPropertyName) createPolygonSymbolizer(Stroke stroke, Fill fill, String geometryPropertyName) createRasterSymbolizer(String geometryPropertyName, Expression opacity, ChannelSelection channel, Expression overlap, ColorMap colorMap, ContrastEnhancement cenhancement, ShadedRelief relief, Symbolizer outline) createRemoteOWS(String service, String onlineResource) createRule(Symbolizer[] symbolizers, Description desc, Graphic legend, String name, Filter filter, boolean isElseFilter, double maxScale, double minScale) createSelectedChannelType(String name, ContrastEnhancement enhancement) createSelectedChannelType(Expression name, Expression gammaValue) createSelectedChannelType(Expression name, ContrastEnhancement enhancement) createShadedRelief(Expression reliefFactor) createStroke(Expression color, Expression width) A method to make a simple stroke of a provided color and width.createStroke(Expression color, Expression width, Expression opacity) A convenience method to make a simple strokecreateStroke(Expression color, Expression width, Expression opacity, Expression lineJoin, Expression lineCap, float[] dashArray, Expression dashOffset, Graphic graphicFill, Graphic graphicStroke) creates a strokecreateTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName) createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName, Graphic graphic) Label Shield hack, non SLD 1.1description(InternationalString title, InternationalString description) displacement(Expression dx, Expression dy) Create DisplacementextensionSymbolizer(String name, String propertyName, Description description, Unit<?> unit, String extensionName, Map<String, Expression> parameters) Used to represent a symbolizer intended for a vendor specific rendering process.externalGraphic(Icon inline, Collection<ColorReplacement> replacements) Create ExternalGraphic using a Java Icon.externalGraphic(OnLineResource resource, String format, Collection<ColorReplacement> replacements) Create externalGraphicexternalMark(Icon inline) externalMark(OnLineResource resource, String format, int markIndex) featureTypeStyle(String name, Description description, Id definedFor, Set<Name> featureTypeNames, Set<SemanticType> types, List<Rule> rules) fill(GraphicFill fill, Expression color, Expression opacity) Create fill.font(List<Expression> family, Expression style, Expression weight, Expression size) Create font entry; note this captures a list of font families in the preferred order, with the rendering engine choosing the first entry in the list available to the runtime environment.Convinence method for obtaining a mark of a fixed shapeConvinence method for obtaining a mark of a fixed shapeCreates a defaultFont which is valid on all machines.returns a default PointPlacement with a 0,0 anchorPoint and a displacement of 0,0 and a rotation of 0Creates a default Text Symbolizer, using the defaultFill, defaultFont and defaultPointPlacement, Sets the geometry attribute name to be geometry:text.Convinence method for obtaining a mark of a fixed shapeConvinence method for obtaining a mark of a fixed shapeConvinence method for obtaining a mark of a fixed shapegetXMark()Convinence method for obtaining a mark of a fixed shapegraphic(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchor, Displacement disp) Create a graphic.graphicFill(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement) graphicLegend(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement) graphicStroke(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement, Expression initialGap, Expression gap) halo(Fill fill, Expression radius) linePlacement(Expression offset, Expression initialGap, Expression gap, boolean repeated, boolean aligned, boolean generalizedLine) lineSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Stroke stroke, Expression offset) mark(Expression wellKnownName, Fill fill, Stroke stroke) mark(ExternalMark externalMark, Fill fill, Stroke stroke) pointPlacement(AnchorPoint anchor, Displacement displacement, Expression rotation) pointSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Graphic graphic) Creation of a PointSymbolizer to describe how geometry can be rendered as a point.polygonSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Stroke stroke, Fill fill, Displacement displacement, Expression offset) rasterSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Expression opacity, ChannelSelection channelSelection, OverlapBehaviorEnum overlapsBehaviour, ColorMap colorMap, ContrastEnhancement contrast, ShadedRelief shaded, Symbolizer outline) rule(String name, Description description, GraphicLegend legend, double min, double max, List<Symbolizer> symbolizers, Filter filter) Create a rule from the provided definition.selectedChannelType(String channelName, ContrastEnhancement contrastEnhancement) selectedChannelType(Expression channelName, ContrastEnhancement contrastEnhancement) shadedRelief(Expression reliefFactor, boolean brightnessOnly) stroke(Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset) stroke(GraphicFill fill, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset) stroke(GraphicStroke stroke, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset) style(String name, Description description, boolean isDefault, List<FeatureTypeStyle> featureTypeStyles, Symbolizer defaultSymbolizer) textSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Expression label, Font font, LabelPlacement placement, Halo halo, Fill fill) Creation of a TextSymbolizer defining how labels are portrayed.Methods inherited from class AbstractStyleFactory
getImplementationHintsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface StyleFactory
getImplementationHints
-
Constructor Details
-
StyleFactoryImpl
public StyleFactoryImpl() -
StyleFactoryImpl
-
-
Method Details
-
createStyle
- Specified by:
createStylein interfaceStyleFactory- Specified by:
createStylein classAbstractStyleFactory
-
createNamedStyle
- Specified by:
createNamedStylein interfaceStyleFactory- Specified by:
createNamedStylein classAbstractStyleFactory
-
createPointSymbolizer
- Specified by:
createPointSymbolizerin interfaceStyleFactory- Specified by:
createPointSymbolizerin classAbstractStyleFactory
-
createPointSymbolizer
- Specified by:
createPointSymbolizerin interfaceStyleFactory- Specified by:
createPointSymbolizerin classAbstractStyleFactory
-
createPolygonSymbolizer
- Specified by:
createPolygonSymbolizerin interfaceStyleFactory- Specified by:
createPolygonSymbolizerin classAbstractStyleFactory
-
createPolygonSymbolizer
public PolygonSymbolizer createPolygonSymbolizer(Stroke stroke, Fill fill, String geometryPropertyName) - Specified by:
createPolygonSymbolizerin interfaceStyleFactory- Specified by:
createPolygonSymbolizerin classAbstractStyleFactory
-
createLineSymbolizer
Description copied from interface:StyleFactoryCreate default line symbolizer- Specified by:
createLineSymbolizerin interfaceStyleFactory- Specified by:
createLineSymbolizerin classAbstractStyleFactory
-
createLineSymbolizer
- Specified by:
createLineSymbolizerin interfaceStyleFactory- Specified by:
createLineSymbolizerin classAbstractStyleFactory
-
createTextSymbolizer
- Specified by:
createTextSymbolizerin interfaceStyleFactory- Specified by:
createTextSymbolizerin classAbstractStyleFactory
-
createTextSymbolizer
public TextSymbolizer createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName) - Specified by:
createTextSymbolizerin interfaceStyleFactory- Specified by:
createTextSymbolizerin classAbstractStyleFactory
-
createTextSymbolizer
public TextSymbolizer createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName, Graphic graphic) Description copied from interface:StyleFactoryLabel Shield hack, non SLD 1.1- Specified by:
createTextSymbolizerin interfaceStyleFactory- Parameters:
fill- Fillfonts- Font information (CSS)halo- Describes Halolabel- Expression for labellabelPlacement- Captures label positiongeometryPropertyName- With respect to this geometrygraphic- Used to draw a backdrop behind label- Returns:
- TextSymbolizer2 allowing for a backdrop behind text label
-
createExtent
Description copied from interface:StyleFactoryCreates a new extent.- Specified by:
createExtentin interfaceStyleFactory- Parameters:
name- The name of the extent.value- The value of the extent.- Returns:
- The new extent.
-
createFeatureTypeConstraint
public FeatureTypeConstraint createFeatureTypeConstraint(String featureTypeName, Filter filter, Extent... extents) Description copied from interface:StyleFactoryCreates a new feature type constraint.- Specified by:
createFeatureTypeConstraintin interfaceStyleFactory- Parameters:
featureTypeName- The feature type name.filter- The filter.extents- The extents.- Returns:
- The new feature type constaint.
-
createLayerFeatureConstraints
public LayerFeatureConstraints createLayerFeatureConstraints(FeatureTypeConstraint... featureTypeConstraints) - Specified by:
createLayerFeatureConstraintsin interfaceStyleFactory
-
createFeatureTypeStyle
- Specified by:
createFeatureTypeStylein interfaceStyleFactory- Specified by:
createFeatureTypeStylein classAbstractStyleFactory
-
createFeatureTypeStyle
- Specified by:
createFeatureTypeStylein interfaceStyleFactory- Specified by:
createFeatureTypeStylein classAbstractStyleFactory
-
createRule
- Specified by:
createRulein interfaceStyleFactory- Specified by:
createRulein classAbstractStyleFactory
-
createRule
public Rule createRule(Symbolizer[] symbolizers, Description desc, Graphic legend, String name, Filter filter, boolean isElseFilter, double maxScale, double minScale) -
createImageOutline
Description copied from interface:StyleFactoryCreates a new ImageOutline.- Specified by:
createImageOutlinein interfaceStyleFactory- Parameters:
symbolizer- A line or polygon symbolizer.- Returns:
- The new image outline.
-
createStroke
A method to make a simple stroke of a provided color and width.- Specified by:
createStrokein interfaceStyleFactory- Specified by:
createStrokein classAbstractStyleFactory- Parameters:
color- the color of the linewidth- the width of the line- Returns:
- the stroke object
- See Also:
-
createStroke
A convenience method to make a simple stroke- Specified by:
createStrokein interfaceStyleFactory- Specified by:
createStrokein classAbstractStyleFactory- Parameters:
color- the color of the linewidth- The width of the lineopacity- The opacity of the line- Returns:
- The stroke
-
createStroke
public 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- Specified by:
createStrokein classAbstractStyleFactory- 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.
-
createFill
public Fill createFill(Expression color, Expression backgroundColor, Expression opacity, Graphic graphicFill) - Specified by:
createFillin interfaceStyleFactory- Specified by:
createFillin classAbstractStyleFactory
-
createFill
- Specified by:
createFillin interfaceStyleFactory- Specified by:
createFillin classAbstractStyleFactory
-
createFill
- Specified by:
createFillin interfaceStyleFactory- Specified by:
createFillin classAbstractStyleFactory
-
createMark
public Mark createMark(Expression wellKnownName, Stroke stroke, Fill fill, Expression size, Expression rotation) - Specified by:
createMarkin interfaceStyleFactory- Specified by:
createMarkin classAbstractStyleFactory
-
getSquareMark
Description copied from class:AbstractStyleFactoryConvinence method for obtaining a mark of a fixed shape- Specified by:
getSquareMarkin interfaceStyleFactory- Specified by:
getSquareMarkin classAbstractStyleFactory- Returns:
- a Mark that matches the name in this method.
-
getCircleMark
Description copied from class:AbstractStyleFactoryConvinence method for obtaining a mark of a fixed shape- Specified by:
getCircleMarkin interfaceStyleFactory- Specified by:
getCircleMarkin classAbstractStyleFactory- Returns:
- a Mark that matches the name in this method.
-
getCrossMark
Description copied from class:AbstractStyleFactoryConvinence method for obtaining a mark of a fixed shape- Specified by:
getCrossMarkin interfaceStyleFactory- Specified by:
getCrossMarkin classAbstractStyleFactory- Returns:
- a Mark that matches the name in this method.
-
getXMark
Description copied from class:AbstractStyleFactoryConvinence method for obtaining a mark of a fixed shape- Specified by:
getXMarkin interfaceStyleFactory- Specified by:
getXMarkin classAbstractStyleFactory- Returns:
- a Mark that matches the name in this method.
-
getTriangleMark
Description copied from class:AbstractStyleFactoryConvinence method for obtaining a mark of a fixed shape- Specified by:
getTriangleMarkin interfaceStyleFactory- Specified by:
getTriangleMarkin classAbstractStyleFactory- Returns:
- a Mark that matches the name in this method.
-
getStarMark
Description copied from class:AbstractStyleFactoryConvinence method for obtaining a mark of a fixed shape- Specified by:
getStarMarkin interfaceStyleFactory- Specified by:
getStarMarkin classAbstractStyleFactory- Returns:
- a Mark that matches the name in this method.
-
createMark
- Specified by:
createMarkin interfaceStyleFactory- Specified by:
createMarkin classAbstractStyleFactory
-
createGraphic
public Graphic createGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, Expression opacity, Expression size, Expression rotation) - Specified by:
createGraphicin interfaceStyleFactory- Specified by:
createGraphicin classAbstractStyleFactory
-
createExternalGraphic
- Specified by:
createExternalGraphicin interfaceStyleFactory- Specified by:
createExternalGraphicin classAbstractStyleFactory
-
createExternalGraphic
- Specified by:
createExternalGraphicin interfaceStyleFactory- Specified by:
createExternalGraphicin classAbstractStyleFactory
-
createExternalGraphic
- Specified by:
createExternalGraphicin interfaceStyleFactory- Specified by:
createExternalGraphicin classAbstractStyleFactory
-
createFont
public Font createFont(Expression fontFamily, Expression fontStyle, Expression fontWeight, Expression fontSize) - Specified by:
createFontin interfaceStyleFactory- Specified by:
createFontin classAbstractStyleFactory
-
createLinePlacement
- Specified by:
createLinePlacementin interfaceStyleFactory- Specified by:
createLinePlacementin classAbstractStyleFactory
-
createPointPlacement
public PointPlacement createPointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation) - Specified by:
createPointPlacementin interfaceStyleFactory- Specified by:
createPointPlacementin classAbstractStyleFactory
-
createAnchorPoint
- Specified by:
createAnchorPointin interfaceStyleFactory- Specified by:
createAnchorPointin classAbstractStyleFactory
-
createDisplacement
- Specified by:
createDisplacementin interfaceStyleFactory- Specified by:
createDisplacementin classAbstractStyleFactory
-
createHalo
- Specified by:
createHaloin interfaceStyleFactory- Specified by:
createHaloin classAbstractStyleFactory
-
getDefaultFill
- Specified by:
getDefaultFillin interfaceStyleFactory- Specified by:
getDefaultFillin classAbstractStyleFactory
-
getDefaultLineSymbolizer
- Specified by:
getDefaultLineSymbolizerin interfaceStyleFactory- Specified by:
getDefaultLineSymbolizerin classAbstractStyleFactory
-
getDefaultMark
- Specified by:
getDefaultMarkin interfaceStyleFactory- Specified by:
getDefaultMarkin classAbstractStyleFactory
-
getDefaultPointSymbolizer
- Specified by:
getDefaultPointSymbolizerin interfaceStyleFactory- Specified by:
getDefaultPointSymbolizerin classAbstractStyleFactory
-
getDefaultPolygonSymbolizer
- Specified by:
getDefaultPolygonSymbolizerin interfaceStyleFactory- Specified by:
getDefaultPolygonSymbolizerin classAbstractStyleFactory
-
getDefaultStroke
- Specified by:
getDefaultStrokein interfaceStyleFactory- Specified by:
getDefaultStrokein classAbstractStyleFactory
-
getDefaultStyle
- Specified by:
getDefaultStylein interfaceStyleFactory- Specified by:
getDefaultStylein classAbstractStyleFactory
-
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- Specified by:
getDefaultTextSymbolizerin classAbstractStyleFactory- Returns:
- A default TextSymbolizer
-
getDefaultFont
Creates a defaultFont which is valid on all machines. The font is of size 10, Style and Weight normal and uses a serif font.- Specified by:
getDefaultFontin interfaceStyleFactory- Specified by:
getDefaultFontin classAbstractStyleFactory- Returns:
- the default Font
-
createDefaultGraphic
- Specified by:
createDefaultGraphicin interfaceStyleFactory
-
getDefaultGraphic
- Specified by:
getDefaultGraphicin interfaceStyleFactory- Specified by:
getDefaultGraphicin classAbstractStyleFactory
-
getDefaultPointPlacement
returns a default PointPlacement with a 0,0 anchorPoint and a displacement of 0,0 and a rotation of 0- Specified by:
getDefaultPointPlacementin interfaceStyleFactory- Specified by:
getDefaultPointPlacementin classAbstractStyleFactory- Returns:
- a default PointPlacement.
-
createRasterSymbolizer
- Specified by:
createRasterSymbolizerin interfaceStyleFactory
-
createRasterSymbolizer
public RasterSymbolizer createRasterSymbolizer(String geometryPropertyName, Expression opacity, ChannelSelection channel, Expression overlap, ColorMap colorMap, ContrastEnhancement cenhancement, ShadedRelief relief, Symbolizer outline) - Specified by:
createRasterSymbolizerin interfaceStyleFactory- Specified by:
createRasterSymbolizerin classAbstractStyleFactory
-
getDefaultRasterSymbolizer
- Specified by:
getDefaultRasterSymbolizerin interfaceStyleFactory- Specified by:
getDefaultRasterSymbolizerin classAbstractStyleFactory
-
createChannelSelection
- Specified by:
createChannelSelectionin interfaceStyleFactory
-
createColorMap
- Specified by:
createColorMapin interfaceStyleFactory- Specified by:
createColorMapin classAbstractStyleFactory
-
createColorMapEntry
- Specified by:
createColorMapEntryin interfaceStyleFactory- Specified by:
createColorMapEntryin classAbstractStyleFactory
-
createContrastEnhancement
- Specified by:
createContrastEnhancementin interfaceStyleFactory
-
createContrastEnhancement
- Specified by:
createContrastEnhancementin interfaceStyleFactory
-
createSelectedChannelType
public SelectedChannelType createSelectedChannelType(Expression name, ContrastEnhancement enhancement) - Specified by:
createSelectedChannelTypein interfaceStyleFactory
-
createSelectedChannelType
- Specified by:
createSelectedChannelTypein interfaceStyleFactory- Specified by:
createSelectedChannelTypein classAbstractStyleFactory
-
createSelectedChannelType
- Specified by:
createSelectedChannelTypein interfaceStyleFactory- Specified by:
createSelectedChannelTypein classAbstractStyleFactory
-
createStyledLayerDescriptor
- Specified by:
createStyledLayerDescriptorin interfaceStyleFactory
-
createUserLayer
- Specified by:
createUserLayerin interfaceStyleFactory
-
createNamedLayer
- Specified by:
createNamedLayerin interfaceStyleFactory
-
createRemoteOWS
- Specified by:
createRemoteOWSin interfaceStyleFactory
-
createShadedRelief
- Specified by:
createShadedReliefin interfaceStyleFactory
-
anchorPoint
- Specified by:
anchorPointin interfaceStyleFactory
-
channelSelection
- Specified by:
channelSelectionin interfaceStyleFactory
-
channelSelection
public ChannelSelection channelSelection(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue) - Specified by:
channelSelectionin interfaceStyleFactory
-
colorMap
Description copied from interface:StyleFactoryWrap up a "Categorize" function using the provided expressions.The function will be created based on:
- PropertyName; use "Rasterdata" to indicate this is a color map
- Literal: lookup value
- Literal: threshold 1
- Literal: value 1
- Literal: threshold 2
- Literal: value 2
- Literal: (Optional) succeeding or preceding
- Specified by:
colorMapin interfaceStyleFactory- Parameters:
propertyName- Property name to categorize, or use "Raster"mapping- Defined as a series of Expressions- Returns:
- ColorMap wrapped around the "Cateogize" function
-
colorReplacement
Description copied from interface:StyleFactoryWrap up a replacement function using the provided expressions.- Specified by:
colorReplacementin interfaceStyleFactory- Parameters:
propertyName- Property name to categorize, or use "Raster"mapping- Defined as a series of Expressions- Returns:
- ColorReplacement wrapped around a Function
-
contrastEnhancement
- Specified by:
contrastEnhancementin interfaceStyleFactory
-
description
- Specified by:
descriptionin interfaceStyleFactory
-
displacement
Description copied from interface:StyleFactoryCreate Displacement- Specified by:
displacementin interfaceStyleFactory
-
externalGraphic
Description copied from interface:StyleFactoryCreate ExternalGraphic using a Java Icon.This is used to produce high quality output by allowing you to directly draw each symbol by supplying your own Icon implementation.
- Specified by:
externalGraphicin interfaceStyleFactory
-
externalGraphic
public ExternalGraphic externalGraphic(OnLineResource resource, String format, Collection<ColorReplacement> replacements) Description copied from interface:StyleFactoryCreate externalGraphic- Specified by:
externalGraphicin interfaceStyleFactory
-
externalMark
- Specified by:
externalMarkin interfaceStyleFactory
-
externalMark
- Specified by:
externalMarkin interfaceStyleFactory
-
featureTypeStyle
public FeatureTypeStyle featureTypeStyle(String name, Description description, Id definedFor, Set<Name> featureTypeNames, Set<SemanticType> types, List<Rule> rules) - Specified by:
featureTypeStylein interfaceStyleFactoryrules- May not be null or empty
-
fill
Description copied from interface:StyleFactoryCreate fill.- Specified by:
fillin interfaceStyleFactory
-
font
Description copied from interface:StyleFactoryCreate font entry; note this captures a list of font families in the preferred order, with the rendering engine choosing the first entry in the list available to the runtime environment.If fonts are not showing up as you expect please review the list of fonts installed into your JRE.
- Specified by:
fontin interfaceStyleFactory- Returns:
- Font
-
graphic
public Graphic graphic(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchor, Displacement disp) Description copied from interface:StyleFactoryCreate a graphic.- Specified by:
graphicin interfaceStyleFactory
-
graphicFill
public GraphicFill graphicFill(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement) - Specified by:
graphicFillin interfaceStyleFactory
-
graphicLegend
public GraphicLegend graphicLegend(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement) - Specified by:
graphicLegendin interfaceStyleFactory
-
graphicStroke
public GraphicStroke graphicStroke(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement, Expression initialGap, Expression gap) - Specified by:
graphicStrokein interfaceStyleFactory
-
halo
- Specified by:
haloin interfaceStyleFactory
-
linePlacement
public LinePlacement linePlacement(Expression offset, Expression initialGap, Expression gap, boolean repeated, boolean aligned, boolean generalizedLine) - Specified by:
linePlacementin interfaceStyleFactory
-
lineSymbolizer
public LineSymbolizer lineSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Stroke stroke, Expression offset) - Specified by:
lineSymbolizerin interfaceStyleFactory- Parameters:
name- handle used to refer to this symbolizer (machine readible)geometry- Expression used to produce the Geometry to renderer; often a PropertyNameunit- Unit of measure used to define this symbolizerstroke- Definition of how to stroke lineworkoffset- Offset used to position line relative to origional- Returns:
- Newly created Line Symbolizer
-
mark
- Specified by:
markin interfaceStyleFactory
-
mark
- Specified by:
markin interfaceStyleFactory
-
pointPlacement
public PointPlacement pointPlacement(AnchorPoint anchor, Displacement displacement, Expression rotation) - Specified by:
pointPlacementin interfaceStyleFactory
-
pointSymbolizer
public PointSymbolizer pointSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Graphic graphic) Description copied from interface:StyleFactoryCreation of a PointSymbolizer to describe how geometry can be rendered as a point.- Specified by:
pointSymbolizerin interfaceStyleFactory- Parameters:
name- handle used to refer to this symbolizer (machine readable)geometry- Expression used to extract the Geometry rendered; usually a PropertyNamedescription- Human readable description of symboizerunit- Unit of Measure used to interpret symbolizer distancesgraphic- Graphic used to represent the geometry when rendering- Returns:
- Newly created PointSymbolizer
-
polygonSymbolizer
public PolygonSymbolizer polygonSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Stroke stroke, Fill fill, Displacement displacement, Expression offset) - Specified by:
polygonSymbolizerin interfaceStyleFactory- Parameters:
name- handle used to refer to this symbolizer (machine readable)geometry- Expression used to extract the Geometry rendered; usually a PropertyNamedescription- Human readable description of symboizerunit- Unit of Measure used to interpret symbolizer distances
-
rasterSymbolizer
public RasterSymbolizer rasterSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Expression opacity, ChannelSelection channelSelection, OverlapBehaviorEnum overlapsBehaviour, ColorMap colorMap, ContrastEnhancement contrast, ShadedRelief shaded, Symbolizer outline) - Specified by:
rasterSymbolizerin interfaceStyleFactory- Parameters:
name- handle used to refer to this symbolizer (machine readable)geometry- Expression used to extract the Geometry rendered; usually a PropertyNamedescription- Human readable description of symboizerunit- Unit of Measure used to interpret symbolizer distances- Returns:
- RasterSymbolizer
-
extensionSymbolizer
public ExtensionSymbolizer extensionSymbolizer(String name, String propertyName, Description description, Unit<?> unit, String extensionName, Map<String, Expression> parameters) Description copied from interface:StyleFactoryUsed to represent a symbolizer intended for a vendor specific rendering process. This facility should be used to control subject matter that is beyond the scope of the traditional symbology encoding data structure (subject matter like wind barbs or extra deegrees of freedom like temporal symbolizers are good examples of the use of this facility).- Specified by:
extensionSymbolizerin interfaceStyleFactory- Parameters:
name- handle used to refer to this symbolizer (machine readible)propertyName- Geometry expression to renderer; formally a PropertyNamedescription- Description of this symbolizer; human readableunit- Unit of measure to use when interpretting this symbolizerextensionName- Extension name used to identify the vendor specific extension being controlledparameters- Named expressions used to configure the vendor specific rendering process- Returns:
- newly created ExtensionSymbolizer
-
rule
public Rule rule(String name, Description description, GraphicLegend legend, double min, double max, List<Symbolizer> symbolizers, Filter filter) Description copied from interface:StyleFactoryCreate a rule from the provided definition.- Specified by:
rulein interfaceStyleFactory- Parameters:
name- handle used to refer to this rule (machine readable)description- Human readable description of this rulelegend- Graphic used to indicate this rule in a legend or user interfacemin- minimum scale denominator used to control when this rule is appliedmax- maximum scale denominator used to control when this rule is applied- Returns:
- Newly created Rule
-
selectedChannelType
public SelectedChannelType selectedChannelType(Expression channelName, ContrastEnhancement contrastEnhancement) - Specified by:
selectedChannelTypein interfaceStyleFactory- Returns:
- SelectedChannelType
-
selectedChannelType
public SelectedChannelType selectedChannelType(String channelName, ContrastEnhancement contrastEnhancement) - Specified by:
selectedChannelTypein interfaceStyleFactory- Returns:
- SelectedChannelType
-
shadedRelief
- Specified by:
shadedReliefin interfaceStyleFactory- Returns:
- ShadedRelief
-
stroke
public Stroke stroke(Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset) - Specified by:
strokein interfaceStyleFactory
-
stroke
public Stroke stroke(GraphicFill fill, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset) - Specified by:
strokein interfaceStyleFactory
-
stroke
public Stroke stroke(GraphicStroke stroke, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset) - Specified by:
strokein interfaceStyleFactory
-
style
public Style style(String name, Description description, boolean isDefault, List<FeatureTypeStyle> featureTypeStyles, Symbolizer defaultSymbolizer) - Specified by:
stylein interfaceStyleFactory
-
textSymbolizer
public TextSymbolizer textSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Expression label, Font font, LabelPlacement placement, Halo halo, Fill fill) Description copied from interface:StyleFactoryCreation of a TextSymbolizer defining how labels are portrayed.- Specified by:
textSymbolizerin interfaceStyleFactory- Parameters:
name- Handle used to refer to this symbolizer (machine readable)geometry- Geometry to be rendereddescription- Human readable descriptionunit- Unit of measure used to interpret symbolizer sizeslabel- Text displayed for this symbolizerfont- Font selected to renderer this symbolizerplacement- Placement information relative to orgiginal geometryhalo- definition of a halo or outline surrounding the symbolizerfill- definition of fill used- Returns:
- newly created TextSymbolizer
-
contrastEnhancement
- Specified by:
contrastEnhancementin interfaceStyleFactory
-
createContrastMethod
- Specified by:
createContrastMethodin interfaceStyleFactory- Returns:
- a deep copy of the method
-