org.geotools.styling
Class AbstractStyleFactory

Object
  extended by AbstractStyleFactory
All Implemented Interfaces:
Factory, StyleFactory
Direct Known Subclasses:
StyleFactoryImpl

public abstract class AbstractStyleFactory
extends 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(Icon inlineContent, String format)
           
abstract  ExternalGraphic createExternalGraphic(String uri, String format)
           
abstract  ExternalGraphic createExternalGraphic(URL url, 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()
          Create default line symbolizer
abstract  LineSymbolizer createLineSymbolizer(Stroke stroke, 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, String geometryPropertyName)
           
abstract  PolygonSymbolizer createPolygonSymbolizer()
           
abstract  PolygonSymbolizer createPolygonSymbolizer(Stroke stroke, Fill fill, String geometryPropertyName)
           
abstract  RasterSymbolizer createRasterSymbolizer(String geometryPropertyName, Expression opacity, ChannelSelection channel, Expression overlap, ColorMap colorMap, ContrastEnhancement ce, ShadedRelief relief, Symbolizer outline)
           
abstract  Rule createRule()
           
abstract  SelectedChannelType createSelectedChannelType(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, 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.
 Map<RenderingHints.Key,?> 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface StyleFactory
anchorPoint, channelSelection, channelSelection, colorMap, colorReplacement, contrastEnhancement, createContrastEnhancement, createContrastEnhancement, createDefaultGraphic, createExtent, createFeatureTypeConstraint, createImageOutline, createLayerFeatureConstraints, createNamedLayer, createRasterSymbolizer, createRemoteOWS, createSelectedChannelType, createShadedRelief, createStyledLayerDescriptor, createUserLayer, description, displacement, extensionSymbolizer, externalGraphic, externalGraphic, externalMark, externalMark, featureTypeStyle, fill, font, graphic, graphicFill, graphicLegend, graphicStroke, halo, linePlacement, lineSymbolizer, mark, mark, pointPlacement, pointSymbolizer, polygonSymbolizer, rasterSymbolizer, rule, selectedChannelType, shadedRelief, stroke, stroke, stroke, style, textSymbolizer
 

Constructor Detail

AbstractStyleFactory

public AbstractStyleFactory()
Method Detail

createTextSymbolizer

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

createExternalGraphic

public abstract ExternalGraphic createExternalGraphic(URL url,
                                                      String format)

createExternalGraphic

public abstract ExternalGraphic createExternalGraphic(String uri,
                                                      String format)

createExternalGraphic

public abstract ExternalGraphic createExternalGraphic(Icon inlineContent,
                                                      String format)

createAnchorPoint

public abstract AnchorPoint createAnchorPoint(Expression x,
                                              Expression y)

createDisplacement

public abstract Displacement createDisplacement(Expression x,
                                                Expression y)

createPointSymbolizer

public abstract PointSymbolizer createPointSymbolizer()

createMark

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

getCircleMark

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

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

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

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

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

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

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

createFeatureTypeStyle

public abstract FeatureTypeStyle createFeatureTypeStyle(Rule[] rules)

createLinePlacement

public abstract LinePlacement createLinePlacement(Expression offset)

createPolygonSymbolizer

public abstract PolygonSymbolizer createPolygonSymbolizer()

createHalo

public abstract Halo createHalo(Fill fill,
                                Expression radius)

createFill

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

createLineSymbolizer

public abstract LineSymbolizer createLineSymbolizer()
Description copied from interface: StyleFactory
Create default line symbolizer

Returns:

createPointSymbolizer

public abstract PointSymbolizer createPointSymbolizer(Graphic graphic,
                                                      String geometryPropertyName)

createStyle

public abstract Style createStyle()

createNamedStyle

public abstract NamedStyle createNamedStyle()

createFill

public abstract Fill createFill(Expression color,
                                Expression opacity)

createFill

public abstract Fill createFill(Expression color)

createTextSymbolizer

public abstract TextSymbolizer createTextSymbolizer()

createPointPlacement

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

createStroke

public abstract 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

public abstract 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

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

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()

createLineSymbolizer

public abstract LineSymbolizer createLineSymbolizer(Stroke stroke,
                                                    String geometryPropertyName)

createFeatureTypeStyle

public abstract FeatureTypeStyle createFeatureTypeStyle()

createGraphic

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

createFont

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

createMark

public abstract Mark createMark()

createPolygonSymbolizer

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

createRasterSymbolizer

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

getDefaultRasterSymbolizer

public abstract RasterSymbolizer getDefaultRasterSymbolizer()

createChannelSelection

public abstract ChannelSelection createChannelSelection(SelectedChannelType[] channels)

createSelectedChannelType

public abstract SelectedChannelType createSelectedChannelType(String name,
                                                              Expression enhancement)

createColorMap

public abstract ColorMap createColorMap()

createColorMapEntry

public abstract ColorMapEntry createColorMapEntry()

getDefaultStyle

public abstract Style getDefaultStyle()

getDefaultStroke

public abstract Stroke getDefaultStroke()

getDefaultFill

public abstract Fill getDefaultFill()

getDefaultMark

public abstract Mark getDefaultMark()

getDefaultPointSymbolizer

public abstract PointSymbolizer getDefaultPointSymbolizer()

getDefaultPolygonSymbolizer

public abstract PolygonSymbolizer getDefaultPolygonSymbolizer()

getDefaultLineSymbolizer

public abstract LineSymbolizer getDefaultLineSymbolizer()

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

Returns:
A default TextSymbolizer

getDefaultGraphic

public abstract Graphic getDefaultGraphic()

getDefaultFont

public abstract Font getDefaultFont()

getDefaultPointPlacement

public abstract PointPlacement getDefaultPointPlacement()

getImplementationHints

public Map<RenderingHints.Key,?> getImplementationHints()
Returns implementation hints for this factory. The default implementation returns an empty map.

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


Copyright © 1996-2014 Geotools. All Rights Reserved.