org.geotools.styling
Interface StyleFactory
- All Superinterfaces:
- Factory
- All Known Subinterfaces:
- StyleFactory2
- All Known Implementing Classes:
- AbstractStyleFactory, StyleFactoryImpl
- public interface StyleFactory
- extends Factory
Abstract base class for implementing style factories.
Method Summary |
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(java.lang.String name,
java.lang.String value)
Creates a new extent. |
ExternalGraphic |
createExternalGraphic(java.lang.String uri,
java.lang.String format)
|
ExternalGraphic |
createExternalGraphic(java.net.URL url,
java.lang.String format)
|
FeatureTypeConstraint |
createFeatureTypeConstraint(java.lang.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()
|
LineSymbolizer |
createLineSymbolizer(Stroke stroke,
java.lang.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,
java.lang.String geometryPropertyName)
|
PolygonSymbolizer |
createPolygonSymbolizer()
|
PolygonSymbolizer |
createPolygonSymbolizer(Stroke stroke,
Fill fill,
java.lang.String geometryPropertyName)
|
RasterSymbolizer |
createRasterSymbolizer()
|
RasterSymbolizer |
createRasterSymbolizer(java.lang.String geometryPropertyName,
Expression opacity,
ChannelSelection channel,
Expression overlap,
ColorMap colorMap,
ContrastEnhancement ce,
ShadedRelief relief,
Symbolizer outline)
|
RemoteOWS |
createRemoteOWS(java.lang.String service,
java.lang.String onlineResource)
|
Rule |
createRule()
|
SelectedChannelType |
createSelectedChannelType(java.lang.String name,
ContrastEnhancement enhancement)
|
SelectedChannelType |
createSelectedChannelType(java.lang.String name,
Expression gammaValue)
Deprecated. Use {@link #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,
java.lang.String geometryPropertyName)
|
UserLayer |
createUserLayer()
|
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 |
createTextSymbolizer
public TextSymbolizer createTextSymbolizer(Fill fill,
Font[] fonts,
Halo halo,
Expression label,
LabelPlacement labelPlacement,
java.lang.String geometryPropertyName)
createExternalGraphic
public ExternalGraphic createExternalGraphic(java.net.URL url,
java.lang.String format)
createExternalGraphic
public ExternalGraphic createExternalGraphic(java.lang.String uri,
java.lang.String format)
createAnchorPoint
public AnchorPoint createAnchorPoint(Expression x,
Expression y)
createDisplacement
public Displacement createDisplacement(Expression x,
Expression y)
createPointSymbolizer
public PointSymbolizer createPointSymbolizer()
createMark
public Mark createMark(Expression wellKnownName,
Stroke stroke,
Fill fill,
Expression size,
Expression rotation)
getCircleMark
public Mark getCircleMark()
- Convinence method for obtaining a mark of a fixed shape
- Returns:
- a Mark that matches the name in this method.
getXMark
public Mark getXMark()
- Convinence method for obtaining a mark of a fixed shape
- Returns:
- a Mark that matches the name in this method.
getStarMark
public Mark getStarMark()
- Convinence method for obtaining a mark of a fixed shape
- Returns:
- a Mark that matches the name in this method.
getSquareMark
public Mark getSquareMark()
- Convinence method for obtaining a mark of a fixed shape
- Returns:
- a Mark that matches the name in this method.
getCrossMark
public Mark getCrossMark()
- Convinence method for obtaining a mark of a fixed shape
- Returns:
- a Mark that matches the name in this method.
getTriangleMark
public Mark getTriangleMark()
- Convinence method for obtaining a mark of a fixed shape
- Returns:
- a Mark that matches the name in this method.
createExtent
public Extent createExtent(java.lang.String name,
java.lang.String value)
- Creates a new extent.
- Parameters:
name
- The name of the extent.value
- The value of the extent.
- Returns:
- The new extent.
createFeatureTypeConstraint
public FeatureTypeConstraint createFeatureTypeConstraint(java.lang.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
public LayerFeatureConstraints createLayerFeatureConstraints(FeatureTypeConstraint[] featureTypeConstraints)
createFeatureTypeStyle
public FeatureTypeStyle createFeatureTypeStyle(Rule[] rules)
createImageOutline
public ImageOutline createImageOutline(Symbolizer symbolizer)
- Creates a new ImageOutline.
- Parameters:
symbolizer
- A line or polygon symbolizer.
- Returns:
- The new image outline.
createLinePlacement
public LinePlacement createLinePlacement(Expression offset)
createPolygonSymbolizer
public PolygonSymbolizer createPolygonSymbolizer()
createHalo
public Halo createHalo(Fill fill,
Expression radius)
createFill
public Fill createFill(Expression color,
Expression backgroundColor,
Expression opacity,
Graphic graphicFill)
createLineSymbolizer
public LineSymbolizer createLineSymbolizer()
createPointSymbolizer
public PointSymbolizer createPointSymbolizer(Graphic graphic,
java.lang.String geometryPropertyName)
createStyle
public Style createStyle()
createNamedStyle
public NamedStyle createNamedStyle()
createFill
public Fill createFill(Expression color,
Expression opacity)
createFill
public Fill createFill(Expression color)
createTextSymbolizer
public TextSymbolizer createTextSymbolizer()
createPointPlacement
public PointPlacement createPointPlacement(AnchorPoint anchorPoint,
Displacement displacement,
Expression rotation)
createStroke
public Stroke createStroke(Expression color,
Expression width)
- A convienice method to make a simple stroke
- Parameters:
color
- the color of the linewidth
- 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
- Parameters:
color
- the color of the linewidth
- The width of the lineopacity
- 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
- Parameters:
color
- The color of the linewidth
- The width of the lineopacity
- The opacity of the linelineJoin
- - the type of Line jointlineCap
- - the type of line capdashArray
- - an array of floats describing the dashes in the linedashOffset
- - where in the dash array to start drawing fromgraphicFill
- - a graphic object to fill the line withgraphicStroke
- - a graphic object to draw the line with
- Returns:
- The completed stroke.
- See Also:
org.geotools.stroke
createRule
public Rule createRule()
createLineSymbolizer
public LineSymbolizer createLineSymbolizer(Stroke stroke,
java.lang.String geometryPropertyName)
createFeatureTypeStyle
public FeatureTypeStyle createFeatureTypeStyle()
createGraphic
public Graphic createGraphic(ExternalGraphic[] externalGraphics,
Mark[] marks,
Symbol[] symbols,
Expression opacity,
Expression size,
Expression rotation)
createFont
public Font createFont(Expression fontFamily,
Expression fontStyle,
Expression fontWeight,
Expression fontSize)
createMark
public Mark createMark()
createPolygonSymbolizer
public PolygonSymbolizer createPolygonSymbolizer(Stroke stroke,
Fill fill,
java.lang.String geometryPropertyName)
createRasterSymbolizer
public RasterSymbolizer createRasterSymbolizer()
createRasterSymbolizer
public RasterSymbolizer createRasterSymbolizer(java.lang.String geometryPropertyName,
Expression opacity,
ChannelSelection channel,
Expression overlap,
ColorMap colorMap,
ContrastEnhancement ce,
ShadedRelief relief,
Symbolizer outline)
getDefaultRasterSymbolizer
public RasterSymbolizer getDefaultRasterSymbolizer()
createChannelSelection
public ChannelSelection createChannelSelection(SelectedChannelType[] channels)
createContrastEnhancement
public ContrastEnhancement createContrastEnhancement()
createContrastEnhancement
public ContrastEnhancement createContrastEnhancement(Expression gammaValue)
createSelectedChannelType
public SelectedChannelType createSelectedChannelType(java.lang.String name,
ContrastEnhancement enhancement)
createSelectedChannelType
public SelectedChannelType createSelectedChannelType(java.lang.String name,
Expression gammaValue)
- Deprecated. Use {@link #createSelectedChannelType(String, ContrastEnhancement)
createColorMap
public ColorMap createColorMap()
createColorMapEntry
public ColorMapEntry createColorMapEntry()
getDefaultStyle
public Style getDefaultStyle()
getDefaultStroke
public Stroke getDefaultStroke()
getDefaultFill
public Fill getDefaultFill()
getDefaultMark
public Mark getDefaultMark()
getDefaultPointSymbolizer
public PointSymbolizer getDefaultPointSymbolizer()
getDefaultPolygonSymbolizer
public PolygonSymbolizer getDefaultPolygonSymbolizer()
getDefaultLineSymbolizer
public LineSymbolizer getDefaultLineSymbolizer()
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
- Returns:
- A default TextSymbolizer
createDefaultGraphic
public Graphic createDefaultGraphic()
getDefaultGraphic
public Graphic getDefaultGraphic()
getDefaultFont
public Font getDefaultFont()
getDefaultPointPlacement
public PointPlacement getDefaultPointPlacement()
createStyledLayerDescriptor
public StyledLayerDescriptor createStyledLayerDescriptor()
createUserLayer
public UserLayer createUserLayer()
createNamedLayer
public NamedLayer createNamedLayer()
createRemoteOWS
public RemoteOWS createRemoteOWS(java.lang.String service,
java.lang.String onlineResource)
createShadedRelief
public ShadedRelief createShadedRelief(Expression reliefFactor)
Copyright © GeoTools. All Rights Reserved.