org.geotools.styling
Class StyleFactoryImpl

Object
  extended by AbstractStyleFactory
      extended by StyleFactoryImpl
All Implemented Interfaces:
Factory, StyleFactory2, StyleFactory

public class StyleFactoryImpl
extends AbstractStyleFactory
implements StyleFactory2, StyleFactory

Factory for creating Styles. All style elements are returned as Interfaces from org.geotools.core as opposed to Implementations from org.geotools.defaultcore.

This class implements:

Author:
iant
Module:
modules/library/main (gt-main.jar)

Constructor Summary
  StyleFactoryImpl()
           
protected StyleFactoryImpl(FilterFactory2 factory)
           
 
Method Summary
 AnchorPoint anchorPoint(Expression x, Expression y)
           
 ChannelSelection channelSelection(SelectedChannelType gray)
           
 ChannelSelection channelSelection(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue)
           
 ColorMap colorMap(Expression propertyName, Expression... mapping)
           
 ColorReplacementImpl colorReplacement(Expression propertyName, Expression... mapping)
           
 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)
           
 ExternalGraphic createExternalGraphic(String uri, String format)
           
 ExternalGraphic createExternalGraphic(URL url, String format)
           
 FeatureTypeConstraint createFeatureTypeConstraint(String featureTypeName, Filter filter, Extent[] extents)
           
 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)
           
 LayerFeatureConstraints createLayerFeatureConstraints(FeatureTypeConstraint[] featureTypeConstraints)
           
 LinePlacement createLinePlacement(Expression offset)
           
 LineSymbolizer createLineSymbolizer()
           
 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 cenhancement, ShadedRelief relief, Symbolizer outline)
           
 RemoteOWS createRemoteOWS(String service, String onlineResource)
           
 Rule createRule()
           
 Rule createRule(Symbolizer[] symbolizers, Description desc, Graphic[] legends, String name, Filter filter, boolean isElseFilter, double maxScale, double minScale)
           
 SelectedChannelType createSelectedChannelType(String name, ContrastEnhancement enhancement)
           
 SelectedChannelType createSelectedChannelType(String name, Expression gammaValue)
           
 ShadedRelief createShadedRelief(Expression reliefFactor)
           
 Stroke createStroke(Expression color, Expression width)
          A method to make a simple stroke of a provided color and width.
 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)
           
 TextSymbolizer2 createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName, Graphic graphic)
          Label Shield hack, non SLD 1.1
 UserLayer createUserLayer()
           
 Description description(InternationalString title, InternationalString description)
           
 Displacement displacement(Expression dx, Expression dy)
           
 ExtensionSymbolizer extensionSymbolizer(String name, String propertyName, Description description, Unit<?> unit, String extensionName, Map<String,Expression> parameters)
           
 ExternalGraphic externalGraphic(Icon inline, Collection<ColorReplacement> replacements)
           
 ExternalGraphic externalGraphic(OnLineResource resource, String format, Collection<ColorReplacement> replacements)
           
 ExternalMarkImpl externalMark(Icon inline)
           
 ExternalMarkImpl 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)
           
 Font font(List<Expression> family, Expression style, Expression weight, Expression size)
           
 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()
          Creates a defaultFont which is valid on all machines.
 Graphic getDefaultGraphic()
           
 LineSymbolizer getDefaultLineSymbolizer()
           
 Mark getDefaultMark()
           
 PointPlacement getDefaultPointPlacement()
          returns a default PointPlacement with a 0,0 anchorPoint and a displacement of 0,0 and a rotation of 0
 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)
           
 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)
           
 MarkImpl 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)
           
 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)
           
 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)
           
 
Methods inherited from class AbstractStyleFactory
getImplementationHints
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Factory
getImplementationHints
 

Constructor Detail

StyleFactoryImpl

public StyleFactoryImpl()

StyleFactoryImpl

protected StyleFactoryImpl(FilterFactory2 factory)
Method Detail

createStyle

public Style createStyle()
Specified by:
createStyle in class AbstractStyleFactory

createNamedStyle

public NamedStyle createNamedStyle()
Specified by:
createNamedStyle in class AbstractStyleFactory

createPointSymbolizer

public PointSymbolizer createPointSymbolizer()
Specified by:
createPointSymbolizer in class AbstractStyleFactory

createPointSymbolizer

public PointSymbolizer createPointSymbolizer(Graphic graphic,
                                             String geometryPropertyName)
Specified by:
createPointSymbolizer in class AbstractStyleFactory

createPolygonSymbolizer

public PolygonSymbolizer createPolygonSymbolizer()
Specified by:
createPolygonSymbolizer in class AbstractStyleFactory

createPolygonSymbolizer

public PolygonSymbolizer createPolygonSymbolizer(Stroke stroke,
                                                 Fill fill,
                                                 String geometryPropertyName)
Specified by:
createPolygonSymbolizer in class AbstractStyleFactory

createLineSymbolizer

public LineSymbolizer createLineSymbolizer()
Specified by:
createLineSymbolizer in class AbstractStyleFactory

createLineSymbolizer

public LineSymbolizer createLineSymbolizer(Stroke stroke,
                                           String geometryPropertyName)
Specified by:
createLineSymbolizer in class AbstractStyleFactory

createTextSymbolizer

public TextSymbolizer createTextSymbolizer()
Specified by:
createTextSymbolizer in class AbstractStyleFactory

createTextSymbolizer

public TextSymbolizer createTextSymbolizer(Fill fill,
                                           Font[] fonts,
                                           Halo halo,
                                           Expression label,
                                           LabelPlacement labelPlacement,
                                           String geometryPropertyName)
Specified by:
createTextSymbolizer in class AbstractStyleFactory

createTextSymbolizer

public TextSymbolizer2 createTextSymbolizer(Fill fill,
                                            Font[] fonts,
                                            Halo halo,
                                            Expression label,
                                            LabelPlacement labelPlacement,
                                            String geometryPropertyName,
                                            Graphic graphic)
Description copied from interface: StyleFactory2
Label Shield hack, non SLD 1.1

Specified by:
createTextSymbolizer in interface StyleFactory2
Parameters:
fill - Fill
fonts - Font information (CSS)
halo - Describes Halo
label - Expression for label
labelPlacement - Captures label position
geometryPropertyName - With respect to this geometry
graphic - Used to draw a backdrop behind label
Returns:
TextSymbolizer2 allowing for a backdrop behind text label

createExtent

public Extent createExtent(String name,
                           String value)

createFeatureTypeConstraint

public FeatureTypeConstraint createFeatureTypeConstraint(String featureTypeName,
                                                         Filter filter,
                                                         Extent[] extents)

createLayerFeatureConstraints

public LayerFeatureConstraints createLayerFeatureConstraints(FeatureTypeConstraint[] featureTypeConstraints)

createFeatureTypeStyle

public FeatureTypeStyle createFeatureTypeStyle()
Specified by:
createFeatureTypeStyle in class AbstractStyleFactory

createFeatureTypeStyle

public FeatureTypeStyle createFeatureTypeStyle(Rule[] rules)
Specified by:
createFeatureTypeStyle in class AbstractStyleFactory

createRule

public Rule createRule()
Specified by:
createRule in class AbstractStyleFactory

createRule

public Rule createRule(Symbolizer[] symbolizers,
                       Description desc,
                       Graphic[] legends,
                       String name,
                       Filter filter,
                       boolean isElseFilter,
                       double maxScale,
                       double minScale)

createImageOutline

public ImageOutline createImageOutline(Symbolizer symbolizer)

createStroke

public Stroke createStroke(Expression color,
                           Expression width)
A method to make a simple stroke of a provided color and width.

Specified by:
createStroke in class AbstractStyleFactory
Parameters:
color - the color of the line
width - the width of the line
Returns:
the stroke object
See Also:
org.geotools.stroke

createStroke

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

Specified by:
createStroke in class AbstractStyleFactory
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

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

Specified by:
createStroke in class AbstractStyleFactory
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.
Throws:
IllegalArgumentException - DOCUMENT ME!
See Also:
org.geotools.stroke

createFill

public Fill createFill(Expression color,
                       Expression backgroundColor,
                       Expression opacity,
                       Graphic graphicFill)
Specified by:
createFill in class AbstractStyleFactory

createFill

public Fill createFill(Expression color,
                       Expression opacity)
Specified by:
createFill in class AbstractStyleFactory

createFill

public Fill createFill(Expression color)
Specified by:
createFill in class AbstractStyleFactory

createMark

public Mark createMark(Expression wellKnownName,
                       Stroke stroke,
                       Fill fill,
                       Expression size,
                       Expression rotation)
Specified by:
createMark in class AbstractStyleFactory

getSquareMark

public Mark getSquareMark()
Description copied from class: AbstractStyleFactory
Convinence method for obtaining a mark of a fixed shape

Specified by:
getSquareMark in class AbstractStyleFactory
Returns:
a Mark that matches the name in this method.

getCircleMark

public Mark getCircleMark()
Description copied from class: AbstractStyleFactory
Convinence method for obtaining a mark of a fixed shape

Specified by:
getCircleMark in class AbstractStyleFactory
Returns:
a Mark that matches the name in this method.

getCrossMark

public Mark getCrossMark()
Description copied from class: AbstractStyleFactory
Convinence method for obtaining a mark of a fixed shape

Specified by:
getCrossMark in class AbstractStyleFactory
Returns:
a Mark that matches the name in this method.

getXMark

public Mark getXMark()
Description copied from class: AbstractStyleFactory
Convinence method for obtaining a mark of a fixed shape

Specified by:
getXMark in class AbstractStyleFactory
Returns:
a Mark that matches the name in this method.

getTriangleMark

public Mark getTriangleMark()
Description copied from class: AbstractStyleFactory
Convinence method for obtaining a mark of a fixed shape

Specified by:
getTriangleMark in class AbstractStyleFactory
Returns:
a Mark that matches the name in this method.

getStarMark

public Mark getStarMark()
Description copied from class: AbstractStyleFactory
Convinence method for obtaining a mark of a fixed shape

Specified by:
getStarMark in class AbstractStyleFactory
Returns:
a Mark that matches the name in this method.

createMark

public Mark createMark()
Specified by:
createMark in class AbstractStyleFactory

createGraphic

public Graphic createGraphic(ExternalGraphic[] externalGraphics,
                             Mark[] marks,
                             Symbol[] symbols,
                             Expression opacity,
                             Expression size,
                             Expression rotation)
Specified by:
createGraphic in class AbstractStyleFactory

createExternalGraphic

public ExternalGraphic createExternalGraphic(String uri,
                                             String format)
Specified by:
createExternalGraphic in class AbstractStyleFactory

createExternalGraphic

public ExternalGraphic createExternalGraphic(URL url,
                                             String format)
Specified by:
createExternalGraphic in class AbstractStyleFactory

createFont

public Font createFont(Expression fontFamily,
                       Expression fontStyle,
                       Expression fontWeight,
                       Expression fontSize)
Specified by:
createFont in class AbstractStyleFactory

createLinePlacement

public LinePlacement createLinePlacement(Expression offset)
Specified by:
createLinePlacement in class AbstractStyleFactory

createPointPlacement

public PointPlacement createPointPlacement(AnchorPoint anchorPoint,
                                           Displacement displacement,
                                           Expression rotation)
Specified by:
createPointPlacement in class AbstractStyleFactory

createAnchorPoint

public AnchorPoint createAnchorPoint(Expression x,
                                     Expression y)
Specified by:
createAnchorPoint in class AbstractStyleFactory

createDisplacement

public Displacement createDisplacement(Expression x,
                                       Expression y)
Specified by:
createDisplacement in class AbstractStyleFactory

createHalo

public Halo createHalo(Fill fill,
                       Expression radius)
Specified by:
createHalo in class AbstractStyleFactory

getDefaultFill

public Fill getDefaultFill()
Specified by:
getDefaultFill in class AbstractStyleFactory

getDefaultLineSymbolizer

public LineSymbolizer getDefaultLineSymbolizer()
Specified by:
getDefaultLineSymbolizer in class AbstractStyleFactory

getDefaultMark

public Mark getDefaultMark()
Specified by:
getDefaultMark in class AbstractStyleFactory

getDefaultPointSymbolizer

public PointSymbolizer getDefaultPointSymbolizer()
Specified by:
getDefaultPointSymbolizer in class AbstractStyleFactory

getDefaultPolygonSymbolizer

public PolygonSymbolizer getDefaultPolygonSymbolizer()
Specified by:
getDefaultPolygonSymbolizer in class AbstractStyleFactory

getDefaultStroke

public Stroke getDefaultStroke()
Specified by:
getDefaultStroke in class AbstractStyleFactory

getDefaultStyle

public Style getDefaultStyle()
Specified by:
getDefaultStyle in class AbstractStyleFactory

getDefaultTextSymbolizer

public 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

Specified by:
getDefaultTextSymbolizer in class AbstractStyleFactory
Returns:
A default TextSymbolizer

getDefaultFont

public Font getDefaultFont()
Creates a defaultFont which is valid on all machines. The font is of size 10, Style and Weight normal and uses a serif font.

Specified by:
getDefaultFont in class AbstractStyleFactory
Returns:
the default Font
Throws:
RuntimeException - DOCUMENT ME!

createDefaultGraphic

public Graphic createDefaultGraphic()

getDefaultGraphic

public Graphic getDefaultGraphic()
Specified by:
getDefaultGraphic in class AbstractStyleFactory

getDefaultPointPlacement

public PointPlacement getDefaultPointPlacement()
returns a default PointPlacement with a 0,0 anchorPoint and a displacement of 0,0 and a rotation of 0

Specified by:
getDefaultPointPlacement in class AbstractStyleFactory
Returns:
a default PointPlacement.

createRasterSymbolizer

public RasterSymbolizer createRasterSymbolizer()

createRasterSymbolizer

public RasterSymbolizer createRasterSymbolizer(String geometryPropertyName,
                                               Expression opacity,
                                               ChannelSelection channel,
                                               Expression overlap,
                                               ColorMap colorMap,
                                               ContrastEnhancement cenhancement,
                                               ShadedRelief relief,
                                               Symbolizer outline)
Specified by:
createRasterSymbolizer in class AbstractStyleFactory

getDefaultRasterSymbolizer

public RasterSymbolizer getDefaultRasterSymbolizer()
Specified by:
getDefaultRasterSymbolizer in class AbstractStyleFactory

createChannelSelection

public ChannelSelection createChannelSelection(SelectedChannelType[] channels)
Specified by:
createChannelSelection in class AbstractStyleFactory

createColorMap

public ColorMap createColorMap()
Specified by:
createColorMap in class AbstractStyleFactory

createColorMapEntry

public ColorMapEntry createColorMapEntry()
Specified by:
createColorMapEntry in class AbstractStyleFactory

createContrastEnhancement

public ContrastEnhancement createContrastEnhancement()

createContrastEnhancement

public ContrastEnhancement createContrastEnhancement(Expression gammaValue)

createSelectedChannelType

public SelectedChannelType createSelectedChannelType(String name,
                                                     ContrastEnhancement enhancement)

createSelectedChannelType

public SelectedChannelType createSelectedChannelType(String name,
                                                     Expression gammaValue)
Specified by:
createSelectedChannelType in class AbstractStyleFactory

createStyledLayerDescriptor

public StyledLayerDescriptor createStyledLayerDescriptor()

createUserLayer

public UserLayer createUserLayer()

createNamedLayer

public NamedLayer createNamedLayer()

createRemoteOWS

public RemoteOWS createRemoteOWS(String service,
                                 String onlineResource)

createShadedRelief

public ShadedRelief createShadedRelief(Expression reliefFactor)

anchorPoint

public AnchorPoint anchorPoint(Expression x,
                               Expression y)
Specified by:
anchorPoint in interface StyleFactory

channelSelection

public ChannelSelection channelSelection(SelectedChannelType gray)
Specified by:
channelSelection in interface StyleFactory

channelSelection

public ChannelSelection channelSelection(SelectedChannelType red,
                                         SelectedChannelType green,
                                         SelectedChannelType blue)
Specified by:
channelSelection in interface StyleFactory

colorMap

public ColorMap colorMap(Expression propertyName,
                         Expression... mapping)
Specified by:
colorMap in interface StyleFactory

colorReplacement

public ColorReplacementImpl colorReplacement(Expression propertyName,
                                             Expression... mapping)
Specified by:
colorReplacement in interface StyleFactory

contrastEnhancement

public ContrastEnhancement contrastEnhancement(Expression gamma,
                                               ContrastMethod method)
Specified by:
contrastEnhancement in interface StyleFactory

description

public Description description(InternationalString title,
                               InternationalString description)
Specified by:
description in interface StyleFactory

displacement

public Displacement displacement(Expression dx,
                                 Expression dy)
Specified by:
displacement in interface StyleFactory

externalGraphic

public ExternalGraphic externalGraphic(Icon inline,
                                       Collection<ColorReplacement> replacements)
Specified by:
externalGraphic in interface StyleFactory

externalGraphic

public ExternalGraphic externalGraphic(OnLineResource resource,
                                       String format,
                                       Collection<ColorReplacement> replacements)
Specified by:
externalGraphic in interface StyleFactory

externalMark

public ExternalMarkImpl externalMark(Icon inline)
Specified by:
externalMark in interface StyleFactory

externalMark

public ExternalMarkImpl externalMark(OnLineResource resource,
                                     String format,
                                     int markIndex)
Specified by:
externalMark in interface StyleFactory

featureTypeStyle

public FeatureTypeStyle featureTypeStyle(String name,
                                         Description description,
                                         Id definedFor,
                                         Set<Name> featureTypeNames,
                                         Set<SemanticType> types,
                                         List<Rule> rules)
Specified by:
featureTypeStyle in interface StyleFactory

fill

public Fill fill(GraphicFill fill,
                 Expression color,
                 Expression opacity)
Specified by:
fill in interface StyleFactory

font

public Font font(List<Expression> family,
                 Expression style,
                 Expression weight,
                 Expression size)
Specified by:
font in interface StyleFactory

graphic

public Graphic graphic(List<GraphicalSymbol> symbols,
                       Expression opacity,
                       Expression size,
                       Expression rotation,
                       AnchorPoint anchor,
                       Displacement disp)
Specified by:
graphic in interface StyleFactory

graphicFill

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

graphicLegend

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

graphicStroke

public 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

halo

public Halo halo(Fill fill,
                 Expression radius)
Specified by:
halo in interface StyleFactory

linePlacement

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

lineSymbolizer

public LineSymbolizer lineSymbolizer(String name,
                                     Expression geometry,
                                     Description description,
                                     Unit<?> unit,
                                     Stroke stroke,
                                     Expression offset)
Specified by:
lineSymbolizer in interface StyleFactory

mark

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

mark

public MarkImpl mark(ExternalMark externalMark,
                     Fill fill,
                     Stroke stroke)
Specified by:
mark in interface StyleFactory

pointPlacement

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

pointSymbolizer

public PointSymbolizer pointSymbolizer(String name,
                                       Expression geometry,
                                       Description description,
                                       Unit<?> unit,
                                       Graphic graphic)
Specified by:
pointSymbolizer in interface StyleFactory

polygonSymbolizer

public PolygonSymbolizer polygonSymbolizer(String name,
                                           Expression geometry,
                                           Description description,
                                           Unit<?> unit,
                                           Stroke stroke,
                                           Fill fill,
                                           Displacement displacement,
                                           Expression offset)
Specified by:
polygonSymbolizer in interface StyleFactory

rasterSymbolizer

public 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

extensionSymbolizer

public ExtensionSymbolizer extensionSymbolizer(String name,
                                               String propertyName,
                                               Description description,
                                               Unit<?> unit,
                                               String extensionName,
                                               Map<String,Expression> parameters)
Specified by:
extensionSymbolizer in interface StyleFactory

rule

public Rule rule(String name,
                 Description description,
                 GraphicLegend legend,
                 double min,
                 double max,
                 List<Symbolizer> symbolizers,
                 Filter filter)
Specified by:
rule in interface StyleFactory

selectedChannelType

public SelectedChannelType selectedChannelType(String channelName,
                                               ContrastEnhancement contrastEnhancement)
Specified by:
selectedChannelType in interface StyleFactory

shadedRelief

public ShadedRelief shadedRelief(Expression reliefFactor,
                                 boolean brightnessOnly)
Specified by:
shadedRelief in interface StyleFactory

stroke

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

stroke

public 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

public 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

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

textSymbolizer

public TextSymbolizer textSymbolizer(String name,
                                     Expression geometry,
                                     Description description,
                                     Unit<?> unit,
                                     Expression label,
                                     Font font,
                                     LabelPlacement placement,
                                     Halo halo,
                                     Fill fill)
Specified by:
textSymbolizer in interface StyleFactory


Copyright © 1996-2009 Geotools. All Rights Reserved.