org.geotools.styling
Class AbstractStyleFactory

java.lang.Object
  extended byorg.geotools.styling.AbstractStyleFactory
All Implemented Interfaces:
Factory, StyleFactory
Direct Known Subclasses:
StyleFactoryImpl

public abstract class AbstractStyleFactory
extends java.lang.Object
implements StyleFactory

Abstract base class for implementing style factories.


Constructor Summary
AbstractStyleFactory()
           
 
Method Summary
abstract  AnchorPoint createAnchorPoint(Expression x, Expression y)
           
abstract  ChannelSelection createChannelSelection(SelectedChannelType[] channels)
           
abstract  ColorMap createColorMap()
           
abstract  ColorMapEntry createColorMapEntry()
           
abstract  Displacement createDisplacement(Expression x, Expression y)
           
abstract  ExternalGraphic createExternalGraphic(java.lang.String uri, java.lang.String format)
           
abstract  ExternalGraphic createExternalGraphic(java.net.URL url, java.lang.String format)
           
abstract  FeatureTypeStyle createFeatureTypeStyle()
           
abstract  FeatureTypeStyle createFeatureTypeStyle(Rule[] rules)
           
abstract  Fill createFill(Expression color)
           
abstract  Fill createFill(Expression color, Expression opacity)
           
abstract  Fill createFill(Expression color, Expression backgroundColor, Expression opacity, Graphic graphicFill)
           
abstract  Font createFont(Expression fontFamily, Expression fontStyle, Expression fontWeight, Expression fontSize)
           
abstract  Graphic createGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, Expression opacity, Expression size, Expression rotation)
           
abstract  Halo createHalo(Fill fill, Expression radius)
           
abstract  LinePlacement createLinePlacement(Expression offset)
           
abstract  LineSymbolizer createLineSymbolizer()
           
abstract  LineSymbolizer createLineSymbolizer(Stroke stroke, java.lang.String geometryPropertyName)
           
abstract  Mark createMark()
           
abstract  Mark createMark(Expression wellKnownName, Stroke stroke, Fill fill, Expression size, Expression rotation)
           
abstract  NamedStyle createNamedStyle()
           
abstract  PointPlacement createPointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation)
           
abstract  PointSymbolizer createPointSymbolizer()
           
abstract  PointSymbolizer createPointSymbolizer(Graphic graphic, java.lang.String geometryPropertyName)
           
abstract  PolygonSymbolizer createPolygonSymbolizer()
           
abstract  PolygonSymbolizer createPolygonSymbolizer(Stroke stroke, Fill fill, java.lang.String geometryPropertyName)
           
abstract  RasterSymbolizer createRasterSymbolizer(java.lang.String geometryPropertyName, Expression opacity, ChannelSelection channel, Expression overlap, ColorMap colorMap, ContrastEnhancement ce, ShadedRelief relief, Symbolizer outline)
           
abstract  Rule createRule()
           
abstract  SelectedChannelType createSelectedChannelType(java.lang.String name, Expression enhancement)
           
abstract  Stroke createStroke(Expression color, Expression width)
          A convienice method to make a simple stroke
abstract  Stroke createStroke(Expression color, Expression width, Expression opacity)
          A convienice method to make a simple stroke
abstract  Stroke createStroke(Expression color, Expression width, Expression opacity, Expression lineJoin, Expression lineCap, float[] dashArray, Expression dashOffset, Graphic graphicFill, Graphic graphicStroke)
          creates a stroke
abstract  Style createStyle()
           
abstract  TextSymbolizer createTextSymbolizer()
           
abstract  TextSymbolizer createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, java.lang.String geometryPropertyName)
           
abstract  Mark getCircleMark()
          Convinence method for obtaining a mark of a fixed shape
abstract  Mark getCrossMark()
          Convinence method for obtaining a mark of a fixed shape
abstract  Fill getDefaultFill()
           
abstract  Font getDefaultFont()
           
abstract  Graphic getDefaultGraphic()
           
abstract  LineSymbolizer getDefaultLineSymbolizer()
           
abstract  Mark getDefaultMark()
           
abstract  PointPlacement getDefaultPointPlacement()
           
abstract  PointSymbolizer getDefaultPointSymbolizer()
           
abstract  PolygonSymbolizer getDefaultPolygonSymbolizer()
           
abstract  RasterSymbolizer getDefaultRasterSymbolizer()
           
abstract  Stroke getDefaultStroke()
           
abstract  Style getDefaultStyle()
           
abstract  TextSymbolizer getDefaultTextSymbolizer()
          Creates a default Text Symbolizer, using the defaultFill, defaultFont and defaultPointPlacement, Sets the geometry attribute name to be geometry:text.
 java.util.Map getImplementationHints()
          Returns implementation hints for this factory.
abstract  Mark getSquareMark()
          Convinence method for obtaining a mark of a fixed shape
abstract  Mark getStarMark()
          Convinence method for obtaining a mark of a fixed shape
abstract  Mark getTriangleMark()
          Convinence method for obtaining a mark of a fixed shape
abstract  Mark getXMark()
          Convinence method for obtaining a mark of a fixed shape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.geotools.styling.StyleFactory
createContrastEnhancement, createContrastEnhancement, createDefaultGraphic, createExtent, createFeatureTypeConstraint, createImageOutline, createLayerFeatureConstraints, createNamedLayer, createRasterSymbolizer, createRemoteOWS, createSelectedChannelType, createShadedRelief, createStyledLayerDescriptor, createUserLayer
 

Constructor Detail

AbstractStyleFactory

public AbstractStyleFactory()
Method Detail

createTextSymbolizer

public abstract TextSymbolizer createTextSymbolizer(Fill fill,
                                                    Font[] fonts,
                                                    Halo halo,
                                                    Expression label,
                                                    LabelPlacement labelPlacement,
                                                    java.lang.String geometryPropertyName)
Specified by:
createTextSymbolizer in interface StyleFactory

createExternalGraphic

public abstract ExternalGraphic createExternalGraphic(java.net.URL url,
                                                      java.lang.String format)
Specified by:
createExternalGraphic in interface StyleFactory

createExternalGraphic

public abstract ExternalGraphic createExternalGraphic(java.lang.String uri,
                                                      java.lang.String format)
Specified by:
createExternalGraphic in interface StyleFactory

createAnchorPoint

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

createDisplacement

public abstract Displacement createDisplacement(Expression x,
                                                Expression y)
Specified by:
createDisplacement in interface StyleFactory

createPointSymbolizer

public abstract PointSymbolizer createPointSymbolizer()
Specified by:
createPointSymbolizer in interface StyleFactory

createMark

public abstract Mark createMark(Expression wellKnownName,
                                Stroke stroke,
                                Fill fill,
                                Expression size,
                                Expression rotation)
Specified by:
createMark in interface StyleFactory

getCircleMark

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

Specified by:
getCircleMark in interface StyleFactory
Returns:
a Mark that matches the name in this method.

getXMark

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

Specified by:
getXMark in interface StyleFactory
Returns:
a Mark that matches the name in this method.

getStarMark

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

Specified by:
getStarMark in interface StyleFactory
Returns:
a Mark that matches the name in this method.

getSquareMark

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

Specified by:
getSquareMark in interface StyleFactory
Returns:
a Mark that matches the name in this method.

getCrossMark

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

Specified by:
getCrossMark in interface StyleFactory
Returns:
a Mark that matches the name in this method.

getTriangleMark

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

Specified by:
getTriangleMark in interface StyleFactory
Returns:
a Mark that matches the name in this method.

createFeatureTypeStyle

public abstract FeatureTypeStyle createFeatureTypeStyle(Rule[] rules)
Specified by:
createFeatureTypeStyle in interface StyleFactory

createLinePlacement

public abstract LinePlacement createLinePlacement(Expression offset)
Specified by:
createLinePlacement in interface StyleFactory

createPolygonSymbolizer

public abstract PolygonSymbolizer createPolygonSymbolizer()
Specified by:
createPolygonSymbolizer in interface StyleFactory

createHalo

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

createFill

public abstract Fill createFill(Expression color,
                                Expression backgroundColor,
                                Expression opacity,
                                Graphic graphicFill)
Specified by:
createFill in interface StyleFactory

createLineSymbolizer

public abstract LineSymbolizer createLineSymbolizer()
Specified by:
createLineSymbolizer in interface StyleFactory

createPointSymbolizer

public abstract PointSymbolizer createPointSymbolizer(Graphic graphic,
                                                      java.lang.String geometryPropertyName)
Specified by:
createPointSymbolizer in interface StyleFactory

createStyle

public abstract Style createStyle()
Specified by:
createStyle in interface StyleFactory

createNamedStyle

public abstract NamedStyle createNamedStyle()
Specified by:
createNamedStyle in interface StyleFactory

createFill

public abstract Fill createFill(Expression color,
                                Expression opacity)
Specified by:
createFill in interface StyleFactory

createFill

public abstract Fill createFill(Expression color)
Specified by:
createFill in interface StyleFactory

createTextSymbolizer

public abstract TextSymbolizer createTextSymbolizer()
Specified by:
createTextSymbolizer in interface StyleFactory

createPointPlacement

public abstract PointPlacement createPointPlacement(AnchorPoint anchorPoint,
                                                    Displacement displacement,
                                                    Expression rotation)
Specified by:
createPointPlacement in interface StyleFactory

createStroke

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

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

createStroke

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

Specified by:
createStroke in interface StyleFactory
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 abstract 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 interface StyleFactory
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

public abstract Rule createRule()
Specified by:
createRule in interface StyleFactory

createLineSymbolizer

public abstract LineSymbolizer createLineSymbolizer(Stroke stroke,
                                                    java.lang.String geometryPropertyName)
Specified by:
createLineSymbolizer in interface StyleFactory

createFeatureTypeStyle

public abstract FeatureTypeStyle createFeatureTypeStyle()
Specified by:
createFeatureTypeStyle in interface StyleFactory

createGraphic

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

createFont

public abstract Font createFont(Expression fontFamily,
                                Expression fontStyle,
                                Expression fontWeight,
                                Expression fontSize)
Specified by:
createFont in interface StyleFactory

createMark

public abstract Mark createMark()
Specified by:
createMark in interface StyleFactory

createPolygonSymbolizer

public abstract PolygonSymbolizer createPolygonSymbolizer(Stroke stroke,
                                                          Fill fill,
                                                          java.lang.String geometryPropertyName)
Specified by:
createPolygonSymbolizer in interface StyleFactory

createRasterSymbolizer

public abstract RasterSymbolizer createRasterSymbolizer(java.lang.String geometryPropertyName,
                                                        Expression opacity,
                                                        ChannelSelection channel,
                                                        Expression overlap,
                                                        ColorMap colorMap,
                                                        ContrastEnhancement ce,
                                                        ShadedRelief relief,
                                                        Symbolizer outline)
Specified by:
createRasterSymbolizer in interface StyleFactory

getDefaultRasterSymbolizer

public abstract RasterSymbolizer getDefaultRasterSymbolizer()
Specified by:
getDefaultRasterSymbolizer in interface StyleFactory

createChannelSelection

public abstract ChannelSelection createChannelSelection(SelectedChannelType[] channels)
Specified by:
createChannelSelection in interface StyleFactory

createSelectedChannelType

public abstract SelectedChannelType createSelectedChannelType(java.lang.String name,
                                                              Expression enhancement)
Specified by:
createSelectedChannelType in interface StyleFactory

createColorMap

public abstract ColorMap createColorMap()
Specified by:
createColorMap in interface StyleFactory

createColorMapEntry

public abstract ColorMapEntry createColorMapEntry()
Specified by:
createColorMapEntry in interface StyleFactory

getDefaultStyle

public abstract Style getDefaultStyle()
Specified by:
getDefaultStyle in interface StyleFactory

getDefaultStroke

public abstract Stroke getDefaultStroke()
Specified by:
getDefaultStroke in interface StyleFactory

getDefaultFill

public abstract Fill getDefaultFill()
Specified by:
getDefaultFill in interface StyleFactory

getDefaultMark

public abstract Mark getDefaultMark()
Specified by:
getDefaultMark in interface StyleFactory

getDefaultPointSymbolizer

public abstract PointSymbolizer getDefaultPointSymbolizer()
Specified by:
getDefaultPointSymbolizer in interface StyleFactory

getDefaultPolygonSymbolizer

public abstract PolygonSymbolizer getDefaultPolygonSymbolizer()
Specified by:
getDefaultPolygonSymbolizer in interface StyleFactory

getDefaultLineSymbolizer

public abstract LineSymbolizer getDefaultLineSymbolizer()
Specified by:
getDefaultLineSymbolizer in interface StyleFactory

getDefaultTextSymbolizer

public abstract 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 interface StyleFactory
Returns:
A default TextSymbolizer

getDefaultGraphic

public abstract Graphic getDefaultGraphic()
Specified by:
getDefaultGraphic in interface StyleFactory

getDefaultFont

public abstract Font getDefaultFont()
Specified by:
getDefaultFont in interface StyleFactory

getDefaultPointPlacement

public abstract PointPlacement getDefaultPointPlacement()
Specified by:
getDefaultPointPlacement in interface StyleFactory

getImplementationHints

public java.util.Map getImplementationHints()
Returns implementation hints for this factory. The default implementation returns an empty map.

Specified by:
getImplementationHints in interface Factory
Returns:
DOCUMENT ME!


Copyright © GeoTools. All Rights Reserved.