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 StyleFactorypublic ChannelSelection channelSelection(SelectedChannelType gray)
channelSelection in interface StyleFactorypublic ChannelSelectionImpl channelSelection(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue)
channelSelection in interface StyleFactorypublic ColorMapImpl colorMap(Expression propertyName, Expression... mapping)
StyleFactoryThe function will be created based on:
colorMap in interface StyleFactorypropertyName - Property name to categorize, or use "Raster"mapping - Defined as a series of Expressionspublic ColorReplacementImpl colorReplacement(Expression propertyName, Expression... mapping)
StyleFactorycolorReplacement in interface StyleFactorypropertyName - Property name to categorize, or use "Raster"mapping - Defined as a series of Expressionspublic ContrastEnhancementImpl contrastEnhancement(Expression gamma, String method)
contrastEnhancement in interface StyleFactorypublic ContrastEnhancementImpl contrastEnhancement(Expression gamma, ContrastMethod method)
contrastEnhancement in interface StyleFactorypublic DescriptionImpl description(InternationalString title, InternationalString description)
description in interface StyleFactorypublic DisplacementImpl displacement(Expression dx, Expression dy)
StyleFactorydisplacement in interface StyleFactorypublic ExternalGraphic externalGraphic(Icon inline, Collection<ColorReplacement> replacements)
StyleFactoryThis is used to produce high quality output by allowing you to directly draw each symbol by supplying your own Icon implementation.
externalGraphic in interface StyleFactorypublic ExternalGraphic externalGraphic(OnLineResource resource, String format, Collection<ColorReplacement> replacements)
StyleFactoryexternalGraphic in interface StyleFactorypublic ExternalMarkImpl externalMark(Icon inline)
externalMark in interface StyleFactorypublic ExternalMarkImpl externalMark(OnLineResource resource, String format, int markIndex)
externalMark in interface StyleFactorypublic FeatureTypeStyleImpl featureTypeStyle(String name, Description description, Id definedFor, Set<Name> featureTypeNames, Set<SemanticType> types, List<Rule> rules)
featureTypeStyle in interface StyleFactoryrules - May not be null or emptypublic FillImpl fill(GraphicFill graphicFill, Expression color, Expression opacity)
StyleFactoryfill in interface StyleFactorypublic FontImpl font(List<Expression> family, Expression style, Expression weight, Expression size)
StyleFactoryIf fonts are not showing up as you expect please review the list of fonts installed into your JRE.
font in interface StyleFactorypublic GraphicImpl graphic(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchor, Displacement disp)
StyleFactorygraphic in interface StyleFactorypublic GraphicImpl graphicFill(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement)
graphicFill in interface StyleFactorypublic GraphicImpl graphicLegend(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement)
graphicLegend in interface StyleFactorypublic GraphicImpl graphicStroke(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement, Expression initialGap, Expression gap)
graphicStroke in interface StyleFactorypublic HaloImpl halo(Fill fill, Expression radius)
halo in interface StyleFactorypublic LinePlacementImpl linePlacement(Expression offset, Expression initialGap, Expression gap, boolean repeated, boolean aligned, boolean generalizedLine)
linePlacement in interface StyleFactorypublic LineSymbolizerImpl lineSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Stroke stroke, Expression offset)
lineSymbolizer in interface StyleFactoryname - 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 StyleFactorypublic MarkImpl mark(ExternalMark externalMark, Fill fill, Stroke stroke)
mark in interface StyleFactorypublic PointPlacementImpl pointPlacement(AnchorPoint anchor, Displacement displacement, Expression rotation)
pointPlacement in interface StyleFactorypublic PointSymbolizerImpl pointSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Graphic graphic)
StyleFactorypointSymbolizer in interface StyleFactoryname - 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 StyleFactoryname - 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 StyleFactoryname - 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)
StyleFactoryextensionSymbolizer in interface StyleFactoryname - 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)
StyleFactoryrule in interface StyleFactoryname - 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 StyleFactorypublic SelectedChannelTypeImpl selectedChannelType(String channelName, ContrastEnhancement contrastEnhancement)
selectedChannelType in interface StyleFactorypublic ShadedReliefImpl shadedRelief(Expression reliefFactor, boolean brightnessOnly)
shadedRelief in interface StyleFactorypublic StrokeImpl stroke(Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke in interface StyleFactorypublic StrokeImpl stroke(GraphicFill fill, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke in interface StyleFactorypublic StrokeImpl stroke(GraphicStroke stroke, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke in interface StyleFactorypublic StyleImpl style(String name, Description description, boolean isDefault, List<FeatureTypeStyle> featureTypeStyles, Symbolizer defaultSymbolizer)
style in interface StyleFactorypublic TextSymbolizerImpl textSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Expression label, Font font, LabelPlacement placement, Halo halo, Fill fill)
StyleFactorytextSymbolizer in interface StyleFactoryname - 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.