public interface StyleFactory
This factory is responsible for the production of style objects; where noted these create methods are in agreement with the Symbology Encoding 1.1 specification.
Modifier and Type | Method and Description |
---|---|
AnchorPoint |
anchorPoint(Expression x,
Expression y) |
ChannelSelection |
channelSelection(SelectedChannelType gray) |
ChannelSelection |
channelSelection(SelectedChannelType red,
SelectedChannelType green,
SelectedChannelType blue) |
ColorMap |
colorMap(Expression propertyName,
Expression... mapping)
Wrap up a "Categorize" function using the provided expressions.
|
ColorReplacement |
colorReplacement(Expression propertyName,
Expression... mapping)
Wrap up a replacement function using the provided expressions.
|
ContrastEnhancement |
contrastEnhancement(Expression gamma,
ContrastMethod method) |
ContrastEnhancement |
contrastEnhancement(Expression gamma,
String method) |
Description |
description(InternationalString title,
InternationalString description) |
Displacement |
displacement(Expression dx,
Expression dy)
Create Displacement
|
ExtensionSymbolizer |
extensionSymbolizer(String name,
String geometry,
Description description,
Unit<?> unit,
String extensionName,
Map<String,Expression> parameters)
Used to represent a symbolizer intended for a vendor specific rendering process.
|
ExternalGraphic |
externalGraphic(Icon inline,
Collection<ColorReplacement> replacements)
Create ExternalGraphic using a Java Icon.
|
ExternalGraphic |
externalGraphic(OnLineResource resource,
String format,
Collection<ColorReplacement> replacements)
Create externalGraphic
|
ExternalMark |
externalMark(Icon inline) |
ExternalMark |
externalMark(OnLineResource resource,
String format,
int markIndex) |
FeatureTypeStyle |
featureTypeStyle(String name,
Description description,
Id definedFor,
Set<Name> featureTypeNames,
Set<SemanticType> types,
List<Rule> rules) |
Fill |
fill(GraphicFill fill,
Expression color,
Expression opacity)
Create fill.
|
Font |
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.
|
Graphic |
graphic(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchor,
Displacement disp)
Create a graphic.
|
GraphicFill |
graphicFill(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchorPoint,
Displacement displacement) |
GraphicLegend |
graphicLegend(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchorPoint,
Displacement displacement) |
GraphicStroke |
graphicStroke(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchorPoint,
Displacement displacement,
Expression initialGap,
Expression gap) |
Halo |
halo(Fill fill,
Expression radius) |
LinePlacement |
linePlacement(Expression offset,
Expression initialGap,
Expression gap,
boolean repeated,
boolean aligned,
boolean generalizedLine) |
LineSymbolizer |
lineSymbolizer(String name,
Expression geometry,
Description description,
Unit<?> unit,
Stroke stroke,
Expression offset) |
Mark |
mark(Expression wellKnownName,
Fill fill,
Stroke stroke) |
Mark |
mark(ExternalMark externalMark,
Fill fill,
Stroke stroke) |
PointPlacement |
pointPlacement(AnchorPoint anchor,
Displacement displacement,
Expression rotation) |
PointSymbolizer |
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 |
polygonSymbolizer(String name,
Expression geometry,
Description description,
Unit<?> unit,
Stroke stroke,
Fill fill,
Displacement displacement,
Expression 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) |
Rule |
rule(String name,
Description description,
GraphicLegend legend,
double min,
double max,
List<Symbolizer> symbolizers,
Filter filter)
Create a rule from the provided definition.
|
SelectedChannelType |
selectedChannelType(Expression channelName,
ContrastEnhancement contrastEnhancement) |
SelectedChannelType |
selectedChannelType(String channelName,
ContrastEnhancement contrastEnhancement) |
ShadedRelief |
shadedRelief(Expression reliefFactor,
boolean brightnessOnly) |
Stroke |
stroke(Expression color,
Expression opacity,
Expression width,
Expression join,
Expression cap,
float[] dashes,
Expression offset) |
Stroke |
stroke(GraphicFill fill,
Expression color,
Expression opacity,
Expression width,
Expression join,
Expression cap,
float[] dashes,
Expression offset) |
Stroke |
stroke(GraphicStroke stroke,
Expression color,
Expression opacity,
Expression width,
Expression join,
Expression cap,
float[] dashes,
Expression offset) |
Style |
style(String name,
Description description,
boolean isDefault,
List<FeatureTypeStyle> featureTypeStyles,
Symbolizer defaultSymbolizer) |
TextSymbolizer |
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.
|
AnchorPoint anchorPoint(Expression x, Expression y)
ChannelSelection channelSelection(SelectedChannelType gray)
ChannelSelection channelSelection(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue)
ColorMap colorMap(Expression propertyName, Expression... mapping)
The function will be created based on:
propertyName
- Property name to categorize, or use "Raster"mapping
- Defined as a series of ExpressionsColorReplacement colorReplacement(Expression propertyName, Expression... mapping)
propertyName
- Property name to categorize, or use "Raster"mapping
- Defined as a series of ExpressionsContrastEnhancement contrastEnhancement(Expression gamma, ContrastMethod method)
ContrastEnhancement contrastEnhancement(Expression gamma, String method)
Description description(InternationalString title, InternationalString description)
Displacement displacement(Expression dx, Expression dy)
ExternalGraphic externalGraphic(OnLineResource resource, String format, Collection<ColorReplacement> replacements)
ExternalGraphic externalGraphic(Icon inline, Collection<ColorReplacement> replacements)
This is used to produce high quality output by allowing you to directly draw each symbol by supplying your own Icon implementation.
ExternalMark externalMark(OnLineResource resource, String format, int markIndex)
ExternalMark externalMark(Icon inline)
FeatureTypeStyle featureTypeStyle(String name, Description description, Id definedFor, Set<Name> featureTypeNames, Set<SemanticType> types, List<Rule> rules)
rules
- May not be null or emptyFill fill(GraphicFill fill, Expression color, Expression opacity)
Font font(List<Expression> family, Expression style, Expression weight, Expression size)
If fonts are not showing up as you expect please review the list of fonts installed into your JRE.
Graphic graphic(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchor, Displacement disp)
GraphicFill graphicFill(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement)
GraphicLegend graphicLegend(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement)
GraphicStroke graphicStroke(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement, Expression initialGap, Expression gap)
Halo halo(Fill fill, Expression radius)
LinePlacement linePlacement(Expression offset, Expression initialGap, Expression gap, boolean repeated, boolean aligned, boolean generalizedLine)
LineSymbolizer lineSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Stroke stroke, Expression offset)
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 origionalMark mark(Expression wellKnownName, Fill fill, Stroke stroke)
Mark mark(ExternalMark externalMark, Fill fill, Stroke stroke)
PointPlacement pointPlacement(AnchorPoint anchor, Displacement displacement, Expression rotation)
PointSymbolizer pointSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Graphic graphic)
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)
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 distancesRasterSymbolizer rasterSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Expression opacity, ChannelSelection channelSelection, OverlapBehavior overlapsBehaviour, ColorMap colorMap, ContrastEnhancement contrast, ShadedRelief shaded, Symbolizer outline)
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 distancesExtensionSymbolizer extensionSymbolizer(String name, String geometry, Description description, Unit<?> unit, String extensionName, Map<String,Expression> parameters)
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)
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 appliedSelectedChannelType selectedChannelType(Expression channelName, ContrastEnhancement contrastEnhancement)
SelectedChannelType selectedChannelType(String channelName, ContrastEnhancement contrastEnhancement)
ShadedRelief shadedRelief(Expression reliefFactor, boolean brightnessOnly)
Stroke stroke(Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
Stroke stroke(GraphicFill fill, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
Stroke stroke(GraphicStroke stroke, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
Style style(String name, Description description, boolean isDefault, List<FeatureTypeStyle> featureTypeStyles, Symbolizer defaultSymbolizer)
TextSymbolizer textSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Expression label, Font font, LabelPlacement placement, Halo halo, Fill fill)
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 usedCopyright © 1996–2022 Geotools. All rights reserved.