public interface StyleFactory extends Factory, StyleFactory
getImplementationHints
contrastEnhancement
TextSymbolizer createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName)
ExternalGraphic createExternalGraphic(URL url, String format)
ExternalGraphic createExternalGraphic(String uri, String format)
ExternalGraphic createExternalGraphic(Icon inlineContent, String format)
AnchorPoint createAnchorPoint(Expression x, Expression y)
Displacement createDisplacement(Expression x, Expression y)
PointSymbolizer createPointSymbolizer()
Mark createMark(Expression wellKnownName, Stroke stroke, Fill fill, Expression size, Expression rotation)
Mark getCircleMark()
Mark getXMark()
Mark getStarMark()
Mark getSquareMark()
Mark getCrossMark()
Mark getTriangleMark()
Extent createExtent(String name, String value)
name
- The name of the extent.value
- The value of the extent.FeatureTypeConstraint createFeatureTypeConstraint(String featureTypeName, Filter filter, Extent[] extents)
featureTypeName
- The feature type name.filter
- The filter.extents
- The extents.LayerFeatureConstraints createLayerFeatureConstraints(FeatureTypeConstraint[] featureTypeConstraints)
FeatureTypeStyle createFeatureTypeStyle(Rule[] rules)
ImageOutline createImageOutline(Symbolizer symbolizer)
symbolizer
- A line or polygon symbolizer.LinePlacement createLinePlacement(Expression offset)
PolygonSymbolizer createPolygonSymbolizer()
Halo createHalo(Fill fill, Expression radius)
Fill createFill(Expression color, Expression backgroundColor, Expression opacity, Graphic graphicFill)
LineSymbolizer createLineSymbolizer()
PointSymbolizer createPointSymbolizer(Graphic graphic, String geometryPropertyName)
Style createStyle()
NamedStyle createNamedStyle()
Fill createFill(Expression color, Expression opacity)
Fill createFill(Expression color)
TextSymbolizer createTextSymbolizer()
PointPlacement createPointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation)
Stroke createStroke(Expression color, Expression width)
color
- the color of the linewidth
- the width of the lineorg.geotools.stroke
Stroke createStroke(Expression color, Expression width, Expression opacity)
color
- the color of the linewidth
- The width of the lineopacity
- The opacity of the lineorg.geotools.stroke
Stroke createStroke(Expression color, Expression width, Expression opacity, Expression lineJoin, Expression lineCap, float[] dashArray, Expression dashOffset, Graphic graphicFill, Graphic graphicStroke)
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 withorg.geotools.stroke
Rule createRule()
LineSymbolizer createLineSymbolizer(Stroke stroke, String geometryPropertyName)
FeatureTypeStyle createFeatureTypeStyle()
Graphic createGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, Expression opacity, Expression size, Expression rotation)
Font createFont(Expression fontFamily, Expression fontStyle, Expression fontWeight, Expression fontSize)
Mark createMark()
PolygonSymbolizer createPolygonSymbolizer(Stroke stroke, Fill fill, String geometryPropertyName)
RasterSymbolizer createRasterSymbolizer()
RasterSymbolizer createRasterSymbolizer(String geometryPropertyName, Expression opacity, ChannelSelection channel, Expression overlap, ColorMap colorMap, ContrastEnhancement ce, ShadedRelief relief, Symbolizer outline)
RasterSymbolizer getDefaultRasterSymbolizer()
ChannelSelection createChannelSelection(SelectedChannelType[] channels)
ContrastEnhancement createContrastEnhancement()
ContrastEnhancement createContrastEnhancement(Expression gammaValue)
SelectedChannelType createSelectedChannelType(Expression name, ContrastEnhancement enhancement)
SelectedChannelType createSelectedChannelType(String name, ContrastEnhancement enhancement)
SelectedChannelType createSelectedChannelType(String name, Expression gammaValue)
createSelectedChannelType(String, ContrastEnhancement)
SelectedChannelType createSelectedChannelType(Expression name, Expression gammaValue)
ColorMap createColorMap()
ColorMapEntry createColorMapEntry()
Style getDefaultStyle()
Stroke getDefaultStroke()
Fill getDefaultFill()
Mark getDefaultMark()
PointSymbolizer getDefaultPointSymbolizer()
PolygonSymbolizer getDefaultPolygonSymbolizer()
LineSymbolizer getDefaultLineSymbolizer()
TextSymbolizer getDefaultTextSymbolizer()
Graphic createDefaultGraphic()
Graphic getDefaultGraphic()
Font getDefaultFont()
PointPlacement getDefaultPointPlacement()
StyledLayerDescriptor createStyledLayerDescriptor()
UserLayer createUserLayer()
NamedLayer createNamedLayer()
ShadedRelief createShadedRelief(Expression reliefFactor)
AnchorPoint anchorPoint(Expression x, Expression y)
anchorPoint
in interface StyleFactory
x
- y
- ChannelSelection channelSelection(SelectedChannelType gray)
channelSelection
in interface StyleFactory
gray
- ChannelSelection channelSelection(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue)
channelSelection
in interface StyleFactory
red
- green
- blue
- ColorMap colorMap(Expression propertyName, Expression... mapping)
The function will be created based on:
colorMap
in interface StyleFactory
propertyName
- Property name to categorize, or use "Raster"mapping
- Defined as a series of ExpressionsColorReplacement colorReplacement(Expression propertyName, Expression... mapping)
colorReplacement
in interface StyleFactory
propertyName
- Property name to categorize, or use "Raster"mapping
- Defined as a series of ExpressionsContrastEnhancement contrastEnhancement(Expression gamma, ContrastMethod method)
contrastEnhancement
in interface StyleFactory
gamma
- method
- Description description(InternationalString title, InternationalString description)
description
in interface StyleFactory
title
- description
- Displacement displacement(Expression dx, Expression dy)
StyleFactory
displacement
in interface StyleFactory
dx
- dy
- ExternalGraphic externalGraphic(OnLineResource resource, String format, Collection<ColorReplacement> replacements)
StyleFactory
externalGraphic
in interface StyleFactory
resource
- format
- replacements
- ExternalGraphic externalGraphic(Icon inline, Collection<ColorReplacement> replacements)
StyleFactory
This is used to produce high quality output by allowing you to directly draw each symbol by supplying your own Icon implementation.
externalGraphic
in interface StyleFactory
inline
- replacements
- ExternalMark externalMark(OnLineResource resource, String format, int markIndex)
externalMark
in interface StyleFactory
resource
- format
- markIndex
- ExternalMark externalMark(Icon inline)
externalMark
in interface StyleFactory
inline
- FeatureTypeStyle featureTypeStyle(String name, Description description, Id definedFor, Set<Name> featureTypeNames, Set<SemanticType> types, List<Rule> rules)
featureTypeStyle
in interface StyleFactory
name
- Namedescription
- Description with title and abstract informationdefinedFor
- Currently unusedfeatureTypeNames
- FeatureTypes this style applies to, use AbstractFeature to match alltypes
- SemanticTyperules
- May not be null or emptySimpleFe
Fill fill(GraphicFill fill, Expression color, Expression opacity)
StyleFactory
fill
in interface StyleFactory
fill
- color
- opacity
- Font font(List<Expression> family, Expression style, Expression weight, Expression size)
StyleFactory
If fonts are not showing up as you expect please review the list of fonts installed into your JRE.
font
in interface StyleFactory
family
- style
- weight
- size
- Graphic graphic(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchor, Displacement disp)
StyleFactory
graphic
in interface StyleFactory
Graphic graphicFill(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement)
graphicFill
in interface StyleFactory
symbols
- opacity
- size
- anchorPoint
- displacement
- GraphicLegend graphicLegend(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement)
graphicLegend
in interface StyleFactory
symbols
- opacity
- size
- anchorPoint
- displacement
- Graphic graphicStroke(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement, Expression initialGap, Expression gap)
graphicStroke
in interface StyleFactory
symbols
- opacity
- size
- anchorPoint
- displacement
- initialGap
- gap
- Halo halo(Fill fill, Expression radius)
halo
in interface StyleFactory
fill
- radius
- LinePlacement linePlacement(Expression offset, Expression initialGap, Expression gap, boolean repeated, boolean aligned, boolean generalizedLine)
linePlacement
in interface StyleFactory
offset
- initialGap
- gap
- repeated
- aligned
- generalizedLine
- LineSymbolizer lineSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Stroke stroke, Expression offset)
lineSymbolizer
in interface StyleFactory
name
- handle used to refer to this symbolizer (machine readible)geometry
- Expression used to produce the Geometry to renderer; often a PropertyNamedescription
- unit
- Unit of measure used to define this symbolizerstroke
- Definition of how to stroke lineworkoffset
- Offset used to position line relative to origionalMark mark(Expression wellKnownName, Fill fill, Stroke stroke)
mark
in interface StyleFactory
wellKnownName
- fill
- stroke
- Mark mark(ExternalMark externalMark, Fill fill, Stroke stroke)
mark
in interface StyleFactory
externalMark
- fill
- stroke
- PointPlacement pointPlacement(AnchorPoint anchor, Displacement displacement, Expression rotation)
pointPlacement
in interface StyleFactory
anchor
- displacement
- rotation
- PointSymbolizer pointSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Graphic graphic)
pointSymbolizer
in interface StyleFactory
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 renderingPolygonSymbolizer polygonSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Stroke stroke, Fill fill, Displacement displacement, Expression offset)
polygonSymbolizer
in interface StyleFactory
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 distancesstroke
- fill
- displacement
- offset
- RasterSymbolizer rasterSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Expression opacity, ChannelSelection channelSelection, OverlapBehavior overlapsBehaviour, ColorMap colorMap, ContrastEnhancement contrast, ShadedRelief shaded, Symbolizer outline)
rasterSymbolizer
in interface StyleFactory
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 distancesopacity
- channelSelection
- overlapsBehaviour
- colorMap
- contrast
- shaded
- outline
- ExtensionSymbolizer extensionSymbolizer(String name, String geometry, Description description, Unit<?> unit, String extensionName, Map<String,Expression> parameters)
extensionSymbolizer
in interface StyleFactory
name
- handle used to refer to this symbolizer (machine readible)geometry
- 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 processRule rule(String name, Description description, GraphicLegend legend, double min, double max, List<Symbolizer> symbolizers, Filter filter)
rule
in interface StyleFactory
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 appliedsymbolizers
- filter
- SelectedChannelType selectedChannelType(Expression channelName, ContrastEnhancement contrastEnhancement)
selectedChannelType
in interface StyleFactory
channelName
- contrastEnhancement
- SelectedChannelType selectedChannelType(String channelName, ContrastEnhancement contrastEnhancement)
selectedChannelType
in interface StyleFactory
channelName
- contrastEnhancement
- ShadedRelief shadedRelief(Expression reliefFactor, boolean brightnessOnly)
shadedRelief
in interface StyleFactory
reliefFactor
- brightnessOnly
- Stroke stroke(Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke
in interface StyleFactory
Stroke stroke(GraphicFill fill, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke
in interface StyleFactory
Stroke stroke(GraphicStroke stroke, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke
in interface StyleFactory
Style style(String name, Description description, boolean isDefault, List<FeatureTypeStyle> featureTypeStyles, Symbolizer defaultSymbolizer)
style
in interface StyleFactory
name
- description
- isDefault
- featureTypeStyles
- defaultSymbolizer
- TextSymbolizer textSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Expression label, Font font, LabelPlacement placement, Halo halo, Fill fill)
textSymbolizer
in interface StyleFactory
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 usedContrastMethod createContrastMethod(ContrastMethod method)
method
- Copyright © 1996–2019 Geotools. All rights reserved.