public class StyleFactoryImpl2 extends Object implements StyleFactory
This factory is simple; it just creates styles with no logic or magic default values. For magic default values please read the SE or SLD specification; or use an appropriate builder.
Modifier | Constructor and Description |
---|---|
|
StyleFactoryImpl2() |
protected |
StyleFactoryImpl2(FilterFactory2 factory) |
Modifier and Type | Method and Description |
---|---|
AnchorPoint |
anchorPoint(Expression x,
Expression y) |
ChannelSelection |
channelSelection(SelectedChannelType gray) |
ChannelSelectionImpl |
channelSelection(SelectedChannelType red,
SelectedChannelType green,
SelectedChannelType blue) |
ColorMapImpl |
colorMap(Expression propertyName,
Expression... mapping)
Wrap up a "Categorize" function using the provided expressions.
|
ColorReplacementImpl |
colorReplacement(Expression propertyName,
Expression... mapping)
Wrap up a replacement function using the provided expressions.
|
ContrastEnhancementImpl |
contrastEnhancement(Expression gamma,
ContrastMethod method) |
ContrastEnhancementImpl |
contrastEnhancement(Expression gamma,
String method) |
DescriptionImpl |
description(InternationalString title,
InternationalString description) |
DisplacementImpl |
displacement(Expression dx,
Expression dy)
Create Displacement
|
ExtensionSymbolizer |
extensionSymbolizer(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 |
externalGraphic(Icon inline,
Collection<ColorReplacement> replacements)
Create ExternalGraphic using a Java Icon.
|
ExternalGraphic |
externalGraphic(OnLineResource resource,
String format,
Collection<ColorReplacement> replacements)
Create externalGraphic
|
ExternalMarkImpl |
externalMark(Icon inline) |
ExternalMarkImpl |
externalMark(OnLineResource resource,
String format,
int markIndex) |
FeatureTypeStyleImpl |
featureTypeStyle(String name,
Description description,
Id definedFor,
Set<Name> featureTypeNames,
Set<SemanticType> types,
List<Rule> rules) |
FillImpl |
fill(GraphicFill graphicFill,
Expression color,
Expression opacity)
Create fill.
|
FontImpl |
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.
|
GraphicImpl |
graphic(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchor,
Displacement disp)
Create a graphic.
|
GraphicImpl |
graphicFill(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchorPoint,
Displacement displacement) |
GraphicImpl |
graphicLegend(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchorPoint,
Displacement displacement) |
GraphicImpl |
graphicStroke(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchorPoint,
Displacement displacement,
Expression initialGap,
Expression gap) |
HaloImpl |
halo(Fill fill,
Expression radius) |
LinePlacementImpl |
linePlacement(Expression offset,
Expression initialGap,
Expression gap,
boolean repeated,
boolean aligned,
boolean generalizedLine) |
LineSymbolizerImpl |
lineSymbolizer(String name,
Expression geometry,
Description description,
Unit<?> unit,
Stroke stroke,
Expression offset) |
MarkImpl |
mark(Expression wellKnownName,
Fill fill,
Stroke stroke) |
MarkImpl |
mark(ExternalMark externalMark,
Fill fill,
Stroke stroke) |
PointPlacementImpl |
pointPlacement(AnchorPoint anchor,
Displacement displacement,
Expression rotation) |
PointSymbolizerImpl |
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.
|
PolygonSymbolizerImpl |
polygonSymbolizer(String name,
Expression geometry,
Description description,
Unit<?> unit,
Stroke stroke,
Fill fill,
Displacement displacement,
Expression offset) |
RasterSymbolizerImpl |
rasterSymbolizer(String name,
Expression geometry,
Description description,
Unit<?> unit,
Expression opacity,
ChannelSelection channelSelection,
OverlapBehavior overlapsBehaviour,
ColorMap colorMap,
ContrastEnhancement contrast,
ShadedRelief shaded,
Symbolizer outline) |
RuleImpl |
rule(String name,
Description description,
GraphicLegend legend,
double min,
double max,
List<Symbolizer> symbolizers,
Filter filter)
Create a rule from the provided definition.
|
SelectedChannelTypeImpl |
selectedChannelType(Expression channelName,
ContrastEnhancement contrastEnhancement) |
SelectedChannelTypeImpl |
selectedChannelType(String channelName,
ContrastEnhancement contrastEnhancement) |
ShadedReliefImpl |
shadedRelief(Expression reliefFactor,
boolean brightnessOnly) |
StrokeImpl |
stroke(Expression color,
Expression opacity,
Expression width,
Expression join,
Expression cap,
float[] dashes,
Expression offset) |
StrokeImpl |
stroke(GraphicFill fill,
Expression color,
Expression opacity,
Expression width,
Expression join,
Expression cap,
float[] dashes,
Expression offset) |
StrokeImpl |
stroke(GraphicStroke stroke,
Expression color,
Expression opacity,
Expression width,
Expression join,
Expression cap,
float[] dashes,
Expression offset) |
StyleImpl |
style(String name,
Description description,
boolean isDefault,
List<FeatureTypeStyle> featureTypeStyles,
Symbolizer defaultSymbolizer) |
TextSymbolizerImpl |
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.
|
public StyleFactoryImpl2()
protected StyleFactoryImpl2(FilterFactory2 factory)
public AnchorPoint anchorPoint(Expression x, Expression y)
anchorPoint
in interface StyleFactory
public ChannelSelection channelSelection(SelectedChannelType gray)
channelSelection
in interface StyleFactory
public ChannelSelectionImpl channelSelection(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue)
channelSelection
in interface StyleFactory
public ColorMapImpl colorMap(Expression propertyName, Expression... mapping)
StyleFactory
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 Expressionspublic ColorReplacementImpl colorReplacement(Expression propertyName, Expression... mapping)
StyleFactory
colorReplacement
in interface StyleFactory
propertyName
- Property name to categorize, or use "Raster"mapping
- Defined as a series of Expressionspublic ContrastEnhancementImpl contrastEnhancement(Expression gamma, String method)
contrastEnhancement
in interface StyleFactory
public ContrastEnhancementImpl contrastEnhancement(Expression gamma, ContrastMethod method)
contrastEnhancement
in interface StyleFactory
public DescriptionImpl description(InternationalString title, InternationalString description)
description
in interface StyleFactory
public DisplacementImpl displacement(Expression dx, Expression dy)
StyleFactory
displacement
in interface StyleFactory
public 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
public ExternalGraphic externalGraphic(OnLineResource resource, String format, Collection<ColorReplacement> replacements)
StyleFactory
externalGraphic
in interface StyleFactory
public ExternalMarkImpl externalMark(Icon inline)
externalMark
in interface StyleFactory
public ExternalMarkImpl externalMark(OnLineResource resource, String format, int markIndex)
externalMark
in interface StyleFactory
public FeatureTypeStyleImpl featureTypeStyle(String name, Description description, Id definedFor, Set<Name> featureTypeNames, Set<SemanticType> types, List<Rule> rules)
featureTypeStyle
in interface StyleFactory
rules
- May not be null or emptypublic FillImpl fill(GraphicFill graphicFill, Expression color, Expression opacity)
StyleFactory
fill
in interface StyleFactory
public FontImpl 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
public GraphicImpl graphic(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchor, Displacement disp)
StyleFactory
graphic
in interface StyleFactory
public GraphicImpl graphicFill(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement)
graphicFill
in interface StyleFactory
public GraphicImpl graphicLegend(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement)
graphicLegend
in interface StyleFactory
public GraphicImpl graphicStroke(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement, Expression initialGap, Expression gap)
graphicStroke
in interface StyleFactory
public HaloImpl halo(Fill fill, Expression radius)
halo
in interface StyleFactory
public LinePlacementImpl linePlacement(Expression offset, Expression initialGap, Expression gap, boolean repeated, boolean aligned, boolean generalizedLine)
linePlacement
in interface StyleFactory
public LineSymbolizerImpl 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 PropertyNameunit
- Unit of measure used to define this symbolizerstroke
- Definition of how to stroke lineworkoffset
- Offset used to position line relative to origionalpublic MarkImpl mark(Expression wellKnownName, Fill fill, Stroke stroke)
mark
in interface StyleFactory
public MarkImpl mark(ExternalMark externalMark, Fill fill, Stroke stroke)
mark
in interface StyleFactory
public PointPlacementImpl pointPlacement(AnchorPoint anchor, Displacement displacement, Expression rotation)
pointPlacement
in interface StyleFactory
public PointSymbolizerImpl pointSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Graphic graphic)
StyleFactory
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 renderingpublic PolygonSymbolizerImpl 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 distancespublic RasterSymbolizerImpl 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 distancespublic ExtensionSymbolizer extensionSymbolizer(String name, String propertyName, Description description, Unit<?> unit, String extensionName, Map<String,Expression> parameters)
StyleFactory
extensionSymbolizer
in interface StyleFactory
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 processpublic RuleImpl rule(String name, Description description, GraphicLegend legend, double min, double max, List<Symbolizer> symbolizers, Filter filter)
StyleFactory
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 appliedpublic SelectedChannelTypeImpl selectedChannelType(Expression channelName, ContrastEnhancement contrastEnhancement)
selectedChannelType
in interface StyleFactory
public SelectedChannelTypeImpl selectedChannelType(String channelName, ContrastEnhancement contrastEnhancement)
selectedChannelType
in interface StyleFactory
public ShadedReliefImpl shadedRelief(Expression reliefFactor, boolean brightnessOnly)
shadedRelief
in interface StyleFactory
public StrokeImpl stroke(Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke
in interface StyleFactory
public StrokeImpl stroke(GraphicFill fill, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke
in interface StyleFactory
public StrokeImpl stroke(GraphicStroke stroke, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke
in interface StyleFactory
public StyleImpl style(String name, Description description, boolean isDefault, List<FeatureTypeStyle> featureTypeStyles, Symbolizer defaultSymbolizer)
style
in interface StyleFactory
public TextSymbolizerImpl textSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Expression label, Font font, LabelPlacement placement, Halo halo, Fill fill)
StyleFactory
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 usedCopyright © 1996–2019 Geotools. All rights reserved.