org.geotools.styling
Interface StyleFactory

All Superinterfaces:
Factory, StyleFactory
All Known Subinterfaces:
StyleFactory2
All Known Implementing Classes:
StyleFactoryImpl

public interface StyleFactory
extends Factory, StyleFactory

Abstract base class for implementing style factories.


Method Summary
 AnchorPoint anchorPoint(Expression x, Expression y)
          Indicate what part of a Graphic is used to mark the location.
 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)
           
 AnchorPoint createAnchorPoint(Expression x, Expression y)
           
 ChannelSelection createChannelSelection(SelectedChannelType[] channels)
           
 ColorMap createColorMap()
           
 ColorMapEntry createColorMapEntry()
           
 ContrastEnhancement createContrastEnhancement()
           
 ContrastEnhancement createContrastEnhancement(Expression gammaValue)
           
 Graphic createDefaultGraphic()
           
 Displacement createDisplacement(Expression x, Expression y)
           
 Extent createExtent(String name, String value)
          Creates a new extent.
 ExternalGraphic createExternalGraphic(Icon inlineContent, String format)
           
 ExternalGraphic createExternalGraphic(String uri, String format)
           
 ExternalGraphic createExternalGraphic(URL url, String format)
           
 FeatureTypeConstraint createFeatureTypeConstraint(String featureTypeName, Filter filter, Extent[] extents)
          Creates a new feature type constraint.
 FeatureTypeStyle createFeatureTypeStyle()
           
 FeatureTypeStyle createFeatureTypeStyle(Rule[] rules)
           
 Fill createFill(Expression color)
           
 Fill createFill(Expression color, Expression opacity)
           
 Fill createFill(Expression color, Expression backgroundColor, Expression opacity, Graphic graphicFill)
           
 Font createFont(Expression fontFamily, Expression fontStyle, Expression fontWeight, Expression fontSize)
           
 Graphic createGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, Expression opacity, Expression size, Expression rotation)
           
 Halo createHalo(Fill fill, Expression radius)
           
 ImageOutline createImageOutline(Symbolizer symbolizer)
          Creates a new ImageOutline.
 LayerFeatureConstraints createLayerFeatureConstraints(FeatureTypeConstraint[] featureTypeConstraints)
           
 LinePlacement createLinePlacement(Expression offset)
           
 LineSymbolizer createLineSymbolizer()
          Create default line symbolizer
 LineSymbolizer createLineSymbolizer(Stroke stroke, String geometryPropertyName)
           
 Mark createMark()
           
 Mark createMark(Expression wellKnownName, Stroke stroke, Fill fill, Expression size, Expression rotation)
           
 NamedLayer createNamedLayer()
           
 NamedStyle createNamedStyle()
           
 PointPlacement createPointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation)
           
 PointSymbolizer createPointSymbolizer()
           
 PointSymbolizer createPointSymbolizer(Graphic graphic, String geometryPropertyName)
           
 PolygonSymbolizer createPolygonSymbolizer()
           
 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)
           
 RemoteOWS createRemoteOWS(String service, String onlineResource)
           
 Rule createRule()
           
 SelectedChannelType createSelectedChannelType(String name, ContrastEnhancement enhancement)
           
 SelectedChannelType createSelectedChannelType(String name, Expression gammaValue)
          Deprecated. Use createSelectedChannelType(String, ContrastEnhancement)
 ShadedRelief createShadedRelief(Expression reliefFactor)
           
 Stroke createStroke(Expression color, Expression width)
          A convienice method to make a simple stroke
 Stroke createStroke(Expression color, Expression width, Expression opacity)
          A convienice method to make a simple stroke
 Stroke createStroke(Expression color, Expression width, Expression opacity, Expression lineJoin, Expression lineCap, float[] dashArray, Expression dashOffset, Graphic graphicFill, Graphic graphicStroke)
          creates a stroke
 Style createStyle()
           
 StyledLayerDescriptor createStyledLayerDescriptor()
           
 TextSymbolizer createTextSymbolizer()
           
 TextSymbolizer createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName)
           
 UserLayer createUserLayer()
           
 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.
 Mark getCircleMark()
          Convinence method for obtaining a mark of a fixed shape
 Mark getCrossMark()
          Convinence method for obtaining a mark of a fixed shape
 Fill getDefaultFill()
           
 Font getDefaultFont()
           
 Graphic getDefaultGraphic()
           
 LineSymbolizer getDefaultLineSymbolizer()
           
 Mark getDefaultMark()
           
 PointPlacement getDefaultPointPlacement()
           
 PointSymbolizer getDefaultPointSymbolizer()
           
 PolygonSymbolizer getDefaultPolygonSymbolizer()
           
 RasterSymbolizer getDefaultRasterSymbolizer()
           
 Stroke getDefaultStroke()
           
 Style getDefaultStyle()
           
 TextSymbolizer getDefaultTextSymbolizer()
          Creates a default Text Symbolizer, using the defaultFill, defaultFont and defaultPointPlacement, Sets the geometry attribute name to be geometry:text.
 Mark getSquareMark()
          Convinence method for obtaining a mark of a fixed shape
 Mark getStarMark()
          Convinence method for obtaining a mark of a fixed shape
 Mark getTriangleMark()
          Convinence method for obtaining a mark of a fixed shape
 Mark getXMark()
          Convinence method for obtaining a mark of a fixed shape
 Graphic graphic(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchor, Displacement disp)
          Create a graphic.
 Graphic 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)
           
 Graphic 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(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.
 
Methods inherited from interface Factory
getImplementationHints
 

Method Detail

createTextSymbolizer

TextSymbolizer createTextSymbolizer(Fill fill,
                                    Font[] fonts,
                                    Halo halo,
                                    Expression label,
                                    LabelPlacement labelPlacement,
                                    String geometryPropertyName)

createExternalGraphic

ExternalGraphic createExternalGraphic(URL url,
                                      String format)

createExternalGraphic

ExternalGraphic createExternalGraphic(String uri,
                                      String format)

createExternalGraphic

ExternalGraphic createExternalGraphic(Icon inlineContent,
                                      String format)

createAnchorPoint

AnchorPoint createAnchorPoint(Expression x,
                              Expression y)

createDisplacement

Displacement createDisplacement(Expression x,
                                Expression y)

createPointSymbolizer

PointSymbolizer createPointSymbolizer()

createMark

Mark createMark(Expression wellKnownName,
                Stroke stroke,
                Fill fill,
                Expression size,
                Expression rotation)

getCircleMark

Mark getCircleMark()
Convinence method for obtaining a mark of a fixed shape

Returns:
a Mark that matches the name in this method.

getXMark

Mark getXMark()
Convinence method for obtaining a mark of a fixed shape

Returns:
a Mark that matches the name in this method.

getStarMark

Mark getStarMark()
Convinence method for obtaining a mark of a fixed shape

Returns:
a Mark that matches the name in this method.

getSquareMark

Mark getSquareMark()
Convinence method for obtaining a mark of a fixed shape

Returns:
a Mark that matches the name in this method.

getCrossMark

Mark getCrossMark()
Convinence method for obtaining a mark of a fixed shape

Returns:
a Mark that matches the name in this method.

getTriangleMark

Mark getTriangleMark()
Convinence method for obtaining a mark of a fixed shape

Returns:
a Mark that matches the name in this method.

createExtent

Extent createExtent(String name,
                    String value)
Creates a new extent.

Parameters:
name - The name of the extent.
value - The value of the extent.
Returns:
The new extent.

createFeatureTypeConstraint

FeatureTypeConstraint createFeatureTypeConstraint(String featureTypeName,
                                                  Filter filter,
                                                  Extent[] extents)
Creates a new feature type constraint.

Parameters:
featureTypeName - The feature type name.
filter - The filter.
extents - The extents.
Returns:
The new feature type constaint.

createLayerFeatureConstraints

LayerFeatureConstraints createLayerFeatureConstraints(FeatureTypeConstraint[] featureTypeConstraints)

createFeatureTypeStyle

FeatureTypeStyle createFeatureTypeStyle(Rule[] rules)

createImageOutline

ImageOutline createImageOutline(Symbolizer symbolizer)
Creates a new ImageOutline.

Parameters:
symbolizer - A line or polygon symbolizer.
Returns:
The new image outline.

createLinePlacement

LinePlacement createLinePlacement(Expression offset)

createPolygonSymbolizer

PolygonSymbolizer createPolygonSymbolizer()

createHalo

Halo createHalo(Fill fill,
                Expression radius)

createFill

Fill createFill(Expression color,
                Expression backgroundColor,
                Expression opacity,
                Graphic graphicFill)

createLineSymbolizer

LineSymbolizer createLineSymbolizer()
Create default line symbolizer

Returns:

createPointSymbolizer

PointSymbolizer createPointSymbolizer(Graphic graphic,
                                      String geometryPropertyName)

createStyle

Style createStyle()

createNamedStyle

NamedStyle createNamedStyle()

createFill

Fill createFill(Expression color,
                Expression opacity)

createFill

Fill createFill(Expression color)

createTextSymbolizer

TextSymbolizer createTextSymbolizer()

createPointPlacement

PointPlacement createPointPlacement(AnchorPoint anchorPoint,
                                    Displacement displacement,
                                    Expression rotation)

createStroke

Stroke createStroke(Expression color,
                    Expression width)
A convienice method to make a simple stroke

Parameters:
color - the color of the line
width - the width of the line
Returns:
the stroke object
See Also:
org.geotools.stroke

createStroke

Stroke createStroke(Expression color,
                    Expression width,
                    Expression opacity)
A convienice method to make a simple stroke

Parameters:
color - the color of the line
width - The width of the line
opacity - The opacity of the line
Returns:
The stroke
See Also:
org.geotools.stroke

createStroke

Stroke createStroke(Expression color,
                    Expression width,
                    Expression opacity,
                    Expression lineJoin,
                    Expression lineCap,
                    float[] dashArray,
                    Expression dashOffset,
                    Graphic graphicFill,
                    Graphic graphicStroke)
creates a stroke

Parameters:
color - The color of the line
width - The width of the line
opacity - The opacity of the line
lineJoin - - the type of Line joint
lineCap - - the type of line cap
dashArray - - an array of floats describing the dashes in the line
dashOffset - - where in the dash array to start drawing from
graphicFill - - a graphic object to fill the line with
graphicStroke - - a graphic object to draw the line with
Returns:
The completed stroke.
See Also:
org.geotools.stroke

createRule

Rule createRule()

createLineSymbolizer

LineSymbolizer createLineSymbolizer(Stroke stroke,
                                    String geometryPropertyName)

createFeatureTypeStyle

FeatureTypeStyle createFeatureTypeStyle()

createGraphic

Graphic createGraphic(ExternalGraphic[] externalGraphics,
                      Mark[] marks,
                      Symbol[] symbols,
                      Expression opacity,
                      Expression size,
                      Expression rotation)

createFont

Font createFont(Expression fontFamily,
                Expression fontStyle,
                Expression fontWeight,
                Expression fontSize)

createMark

Mark createMark()

createPolygonSymbolizer

PolygonSymbolizer createPolygonSymbolizer(Stroke stroke,
                                          Fill fill,
                                          String geometryPropertyName)

createRasterSymbolizer

RasterSymbolizer createRasterSymbolizer()

createRasterSymbolizer

RasterSymbolizer createRasterSymbolizer(String geometryPropertyName,
                                        Expression opacity,
                                        ChannelSelection channel,
                                        Expression overlap,
                                        ColorMap colorMap,
                                        ContrastEnhancement ce,
                                        ShadedRelief relief,
                                        Symbolizer outline)

getDefaultRasterSymbolizer

RasterSymbolizer getDefaultRasterSymbolizer()

createChannelSelection

ChannelSelection createChannelSelection(SelectedChannelType[] channels)

createContrastEnhancement

ContrastEnhancement createContrastEnhancement()

createContrastEnhancement

ContrastEnhancement createContrastEnhancement(Expression gammaValue)

createSelectedChannelType

SelectedChannelType createSelectedChannelType(String name,
                                              ContrastEnhancement enhancement)

createSelectedChannelType

SelectedChannelType createSelectedChannelType(String name,
                                              Expression gammaValue)
Deprecated. Use createSelectedChannelType(String, ContrastEnhancement)


createColorMap

ColorMap createColorMap()

createColorMapEntry

ColorMapEntry createColorMapEntry()

getDefaultStyle

Style getDefaultStyle()

getDefaultStroke

Stroke getDefaultStroke()

getDefaultFill

Fill getDefaultFill()

getDefaultMark

Mark getDefaultMark()

getDefaultPointSymbolizer

PointSymbolizer getDefaultPointSymbolizer()

getDefaultPolygonSymbolizer

PolygonSymbolizer getDefaultPolygonSymbolizer()

getDefaultLineSymbolizer

LineSymbolizer getDefaultLineSymbolizer()

getDefaultTextSymbolizer

TextSymbolizer 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

Returns:
A default TextSymbolizer

createDefaultGraphic

Graphic createDefaultGraphic()

getDefaultGraphic

Graphic getDefaultGraphic()

getDefaultFont

Font getDefaultFont()

getDefaultPointPlacement

PointPlacement getDefaultPointPlacement()

createStyledLayerDescriptor

StyledLayerDescriptor createStyledLayerDescriptor()

createUserLayer

UserLayer createUserLayer()

createNamedLayer

NamedLayer createNamedLayer()

createRemoteOWS

RemoteOWS createRemoteOWS(String service,
                          String onlineResource)

createShadedRelief

ShadedRelief createShadedRelief(Expression reliefFactor)

anchorPoint

AnchorPoint anchorPoint(Expression x,
                        Expression y)
Indicate what part of a Graphic is used to mark the location.

Specified by:
anchorPoint in interface StyleFactory
Parameters:
x -
y -
Returns:

channelSelection

ChannelSelection channelSelection(SelectedChannelType gray)
Specified by:
channelSelection in interface StyleFactory
Parameters:
gray -
Returns:

channelSelection

ChannelSelection channelSelection(SelectedChannelType red,
                                  SelectedChannelType green,
                                  SelectedChannelType blue)
Specified by:
channelSelection in interface StyleFactory
Parameters:
red -
green -
blue -
Returns:

colorMap

ColorMap colorMap(Expression propertyName,
                  Expression... mapping)
Wrap up a "Categorize" function using the provided expressions.

The function will be created based on:

  1. PropertyName; use "Rasterdata" to indicate this is a color map
  2. Literal: lookup value
  3. Literal: threshold 1
  4. Literal: value 1
  5. Literal: threshold 2
  6. Literal: value 2
  7. Literal: (Optional) succeeding or preceding

Specified by:
colorMap in interface StyleFactory
Parameters:
propertyName - Property name to categorize, or use "Raster"
mapping - Defined as a series of Expressions
Returns:
ColorMap wrapped around the "Cateogize" function

colorReplacement

ColorReplacement colorReplacement(Expression propertyName,
                                  Expression... mapping)
Wrap up a replacement function using the provided expressions.

Specified by:
colorReplacement in interface StyleFactory
Parameters:
propertyName - Property name to categorize, or use "Raster"
mapping - Defined as a series of Expressions
Returns:
ColorReplacement wrapped around a Function

contrastEnhancement

ContrastEnhancement contrastEnhancement(Expression gamma,
                                        ContrastMethod method)
Specified by:
contrastEnhancement in interface StyleFactory
Parameters:
gamma -
method -
Returns:

description

Description description(InternationalString title,
                        InternationalString description)
Specified by:
description in interface StyleFactory
Parameters:
title -
description -
Returns:

displacement

Displacement displacement(Expression dx,
                          Expression dy)
Description copied from interface: StyleFactory
Create Displacement

Specified by:
displacement in interface StyleFactory
Parameters:
dx -
dy -
Returns:

externalGraphic

ExternalGraphic externalGraphic(OnLineResource resource,
                                String format,
                                Collection<ColorReplacement> replacements)
Description copied from interface: StyleFactory
Create externalGraphic

Specified by:
externalGraphic in interface StyleFactory
Parameters:
resource -
format -
replacements -
Returns:

externalGraphic

ExternalGraphic externalGraphic(Icon inline,
                                Collection<ColorReplacement> replacements)
Description copied from interface: StyleFactory
Create 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:
externalGraphic in interface StyleFactory
Parameters:
inline -
replacements -
Returns:

externalMark

ExternalMark externalMark(OnLineResource resource,
                          String format,
                          int markIndex)
Specified by:
externalMark in interface StyleFactory
Parameters:
resource -
format -
markIndex -
Returns:

externalMark

ExternalMark externalMark(Icon inline)
Specified by:
externalMark in interface StyleFactory
Parameters:
inline -
Returns:

featureTypeStyle

FeatureTypeStyle featureTypeStyle(String name,
                                  Description description,
                                  Id definedFor,
                                  Set<Name> featureTypeNames,
                                  Set<SemanticType> types,
                                  List<Rule> rules)
Specified by:
featureTypeStyle in interface StyleFactory
Parameters:
name -
description -
definedFor -
featureTypeNames -
types -
rules - May not be null or empty
Returns:

fill

Fill fill(GraphicFill fill,
          Expression color,
          Expression opacity)
Description copied from interface: StyleFactory
Create fill.

Specified by:
fill in interface StyleFactory
Parameters:
fill -
color -
opacity -
Returns:

font

Font font(List<Expression> family,
          Expression style,
          Expression weight,
          Expression size)
Description copied from interface: StyleFactory
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.

If fonts are not showing up as you expect please review the list of fonts installed into your JRE.

Specified by:
font in interface StyleFactory
Parameters:
family -
style -
weight -
size -
Returns:

graphic

Graphic graphic(List<GraphicalSymbol> symbols,
                Expression opacity,
                Expression size,
                Expression rotation,
                AnchorPoint anchor,
                Displacement disp)
Description copied from interface: StyleFactory
Create a graphic.

Specified by:
graphic in interface StyleFactory
Returns:

graphicFill

Graphic graphicFill(List<GraphicalSymbol> symbols,
                    Expression opacity,
                    Expression size,
                    Expression rotation,
                    AnchorPoint anchorPoint,
                    Displacement displacement)
Specified by:
graphicFill in interface StyleFactory
Parameters:
symbols -
opacity -
size -
anchorPoint -
displacement -
Returns:

graphicLegend

GraphicLegend graphicLegend(List<GraphicalSymbol> symbols,
                            Expression opacity,
                            Expression size,
                            Expression rotation,
                            AnchorPoint anchorPoint,
                            Displacement displacement)
Specified by:
graphicLegend in interface StyleFactory
Parameters:
symbols -
opacity -
size -
anchorPoint -
displacement -
Returns:

graphicStroke

Graphic graphicStroke(List<GraphicalSymbol> symbols,
                      Expression opacity,
                      Expression size,
                      Expression rotation,
                      AnchorPoint anchorPoint,
                      Displacement displacement,
                      Expression initialGap,
                      Expression gap)
Specified by:
graphicStroke in interface StyleFactory
Parameters:
symbols -
opacity -
size -
anchorPoint -
displacement -
initialGap -
gap -
Returns:

halo

Halo halo(Fill fill,
          Expression radius)
Specified by:
halo in interface StyleFactory
Parameters:
fill -
radius -
Returns:

linePlacement

LinePlacement linePlacement(Expression offset,
                            Expression initialGap,
                            Expression gap,
                            boolean repeated,
                            boolean aligned,
                            boolean generalizedLine)
Specified by:
linePlacement in interface StyleFactory
Parameters:
offset -
initialGap -
gap -
repeated -
aligned -
generalizedLine -
Returns:

lineSymbolizer

LineSymbolizer lineSymbolizer(String name,
                              Expression geometry,
                              Description description,
                              Unit<?> unit,
                              Stroke stroke,
                              Expression offset)
Specified by:
lineSymbolizer in interface StyleFactory
Parameters:
name - handle used to refer to this symbolizer (machine readible)
geometry - Expression used to produce the Geometry to renderer; often a PropertyName
description -
unit - Unit of measure used to define this symbolizer
stroke - Definition of how to stroke linework
offset - Offset used to position line relative to origional
Returns:
Newly created Line Symbolizer

mark

Mark mark(Expression wellKnownName,
          Fill fill,
          Stroke stroke)
Specified by:
mark in interface StyleFactory
Parameters:
wellKnownName -
fill -
stroke -
Returns:

mark

Mark mark(ExternalMark externalMark,
          Fill fill,
          Stroke stroke)
Specified by:
mark in interface StyleFactory
Parameters:
externalMark -
fill -
stroke -
Returns:

pointPlacement

PointPlacement pointPlacement(AnchorPoint anchor,
                              Displacement displacement,
                              Expression rotation)
Specified by:
pointPlacement in interface StyleFactory
Parameters:
anchor -
displacement -
rotation -
Returns:

pointSymbolizer

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.

Specified by:
pointSymbolizer in interface StyleFactory
Parameters:
name - handle used to refer to this symbolizer (machine readable)
geometry - Expression used to extract the Geometry rendered; usually a PropertyName
description - Human readable description of symboizer
unit - Unit of Measure used to interpret symbolizer distances
graphic - Graphic used to represent the geometry when rendering
Returns:
Newly created PointSymbolizer

polygonSymbolizer

PolygonSymbolizer polygonSymbolizer(String name,
                                    Expression geometry,
                                    Description description,
                                    Unit<?> unit,
                                    Stroke stroke,
                                    Fill fill,
                                    Displacement displacement,
                                    Expression offset)
Specified by:
polygonSymbolizer in interface StyleFactory
Parameters:
name - handle used to refer to this symbolizer (machine readable)
geometry - Expression used to extract the Geometry rendered; usually a PropertyName
description - Human readable description of symboizer
unit - Unit of Measure used to interpret symbolizer distances
stroke -
fill -
displacement -
offset -
Returns:

rasterSymbolizer

RasterSymbolizer rasterSymbolizer(String name,
                                  Expression geometry,
                                  Description description,
                                  Unit<?> unit,
                                  Expression opacity,
                                  ChannelSelection channelSelection,
                                  OverlapBehavior overlapsBehaviour,
                                  ColorMap colorMap,
                                  ContrastEnhancement contrast,
                                  ShadedRelief shaded,
                                  Symbolizer outline)
Specified by:
rasterSymbolizer in interface StyleFactory
Parameters:
name - handle used to refer to this symbolizer (machine readable)
geometry - Expression used to extract the Geometry rendered; usually a PropertyName
description - Human readable description of symboizer
unit - Unit of Measure used to interpret symbolizer distances
opacity -
channelSelection -
overlapsBehaviour -
colorMap -
contrast -
shaded -
outline -
Returns:
RasterSymbolizer

extensionSymbolizer

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. 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:
extensionSymbolizer in interface StyleFactory
Parameters:
name - handle used to refer to this symbolizer (machine readible)
geometry - Geometry expression to renderer; formally a PropertyName
description - Description of this symbolizer; human readable
unit - Unit of measure to use when interpretting this symbolizer
extensionName - Extension name used to identify the vendor specific extension being controlled
parameters - Named expressions used to configure the vendor specific rendering process
Returns:
newly created ExtensionSymbolizer

rule

Rule rule(String name,
          Description description,
          GraphicLegend legend,
          double min,
          double max,
          List<Symbolizer> symbolizers,
          Filter filter)
Create a rule from the provided definition.

Specified by:
rule in interface StyleFactory
Parameters:
name - handle used to refer to this rule (machine readable)
description - Human readable description of this rule
legend - Graphic used to indicate this rule in a legend or user interface
min - minimum scale denominator used to control when this rule is applied
max - maximum scale denominator used to control when this rule is applied
symbolizers -
filter -
Returns:
Newly created Rule

selectedChannelType

SelectedChannelType selectedChannelType(String channelName,
                                        ContrastEnhancement contrastEnhancement)
Specified by:
selectedChannelType in interface StyleFactory
Parameters:
channelName -
contrastEnhancement -
Returns:
SelectedChannelType

shadedRelief

ShadedRelief shadedRelief(Expression reliefFactor,
                          boolean brightnessOnly)
Specified by:
shadedRelief in interface StyleFactory
Parameters:
reliefFactor -
brightnessOnly -
Returns:
ShadedRelief

stroke

Stroke stroke(Expression color,
              Expression opacity,
              Expression width,
              Expression join,
              Expression cap,
              float[] dashes,
              Expression offset)
Specified by:
stroke in interface StyleFactory

stroke

Stroke stroke(GraphicFill fill,
              Expression color,
              Expression opacity,
              Expression width,
              Expression join,
              Expression cap,
              float[] dashes,
              Expression offset)
Specified by:
stroke in interface StyleFactory

stroke

Stroke stroke(GraphicStroke stroke,
              Expression color,
              Expression opacity,
              Expression width,
              Expression join,
              Expression cap,
              float[] dashes,
              Expression offset)
Specified by:
stroke in interface StyleFactory

style

Style style(String name,
            Description description,
            boolean isDefault,
            List<FeatureTypeStyle> featureTypeStyles,
            Symbolizer defaultSymbolizer)
Specified by:
style in interface StyleFactory
Parameters:
name -
description -
isDefault -
featureTypeStyles -
defaultSymbolizer -
Returns:

textSymbolizer

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.

Specified by:
textSymbolizer in interface StyleFactory
Parameters:
name - Handle used to refer to this symbolizer (machine readable)
geometry - Geometry to be rendered
description - Human readable description
unit - Unit of measure used to interpret symbolizer sizes
label - Text displayed for this symbolizer
font - Font selected to renderer this symbolizer
placement - Placement information relative to orgiginal geometry
halo - definition of a halo or outline surrounding the symbolizer
fill - definition of fill used
Returns:
newly created TextSymbolizer


Copyright © 1996-2014 Geotools. All Rights Reserved.