org.geotools.styling
Class StyleFactoryImpl2
Object
StyleFactoryImpl2
- All Implemented Interfaces:
- StyleFactory
public class StyleFactoryImpl2
- extends Object
- implements StyleFactory
Factory for creating Styles; based on the GeoAPI StyleFactory interface.
This factory is simple; it just creates styles with no logic or magic default values.
For magic default values please read the SE or SLD specification; or use an appropriate
builder.
- Author:
- Jody Garnett
- Module:
modules/library/main (gt-main.jar)
Method Summary |
AnchorPoint |
anchorPoint(Expression x,
Expression y)
|
ChannelSelection |
channelSelection(SelectedChannelType gray)
|
ChannelSelectionImpl |
channelSelection(SelectedChannelType red,
SelectedChannelType green,
SelectedChannelType blue)
|
ColorMapImpl |
colorMap(Expression propertyName,
Expression... mapping)
|
ColorReplacementImpl |
colorReplacement(Expression propertyName,
Expression... mapping)
|
ContrastEnhancementImpl |
contrastEnhancement(Expression gamma,
ContrastMethod method)
|
DescriptionImpl |
description(InternationalString title,
InternationalString description)
|
DisplacementImpl |
displacement(Expression dx,
Expression dy)
|
ExtensionSymbolizer |
extensionSymbolizer(String name,
String propertyName,
Description description,
Unit<?> unit,
String extensionName,
Map<String,Expression> parameters)
|
ExternalGraphicImpl |
externalGraphic(Icon inline,
Collection<ColorReplacement> replacements)
|
ExternalGraphicImpl |
externalGraphic(OnLineResource resource,
String format,
Collection<ColorReplacement> replacements)
|
ExternalMarkImpl |
externalMark(Icon inline)
|
ExternalMarkImpl |
externalMark(OnLineResource resource,
String format,
int markIndex)
|
FeatureTypeStyleImpl |
featureTypeStyle(String name,
Description description,
Id definedFor,
Set<Name> featureTypeNames,
Set<SemanticType> types,
List<Rule> rules)
|
FillImpl |
fill(GraphicFill graphicFill,
Expression color,
Expression opacity)
|
FontImpl |
font(List<Expression> family,
Expression style,
Expression weight,
Expression size)
|
GraphicImpl |
graphic(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchor,
Displacement disp)
|
GraphicImpl |
graphicFill(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchorPoint,
Displacement displacement)
|
GraphicImpl |
graphicLegend(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchorPoint,
Displacement displacement)
|
GraphicImpl |
graphicStroke(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchorPoint,
Displacement displacement,
Expression initialGap,
Expression gap)
|
HaloImpl |
halo(Fill fill,
Expression radius)
|
LinePlacementImpl |
linePlacement(Expression offset,
Expression initialGap,
Expression gap,
boolean repeated,
boolean aligned,
boolean generalizedLine)
|
LineSymbolizerImpl |
lineSymbolizer(String name,
Expression geometry,
Description description,
Unit<?> unit,
Stroke stroke,
Expression offset)
|
MarkImpl |
mark(Expression wellKnownName,
Fill fill,
Stroke stroke)
|
MarkImpl |
mark(ExternalMark externalMark,
Fill fill,
Stroke stroke)
|
PointPlacementImpl |
pointPlacement(AnchorPoint anchor,
Displacement displacement,
Expression rotation)
|
PointSymbolizerImpl |
pointSymbolizer(String name,
Expression geometry,
Description description,
Unit<?> unit,
Graphic graphic)
|
PolygonSymbolizerImpl |
polygonSymbolizer(String name,
Expression geometry,
Description description,
Unit<?> unit,
Stroke stroke,
Fill fill,
Displacement displacement,
Expression offset)
|
RasterSymbolizerImpl |
rasterSymbolizer(String name,
Expression geometry,
Description description,
Unit<?> unit,
Expression opacity,
ChannelSelection channelSelection,
OverlapBehavior overlapsBehaviour,
ColorMap colorMap,
ContrastEnhancement contrast,
ShadedRelief shaded,
Symbolizer outline)
|
RuleImpl |
rule(String name,
Description description,
GraphicLegend legend,
double min,
double max,
List<Symbolizer> symbolizers,
Filter filter)
|
SelectedChannelTypeImpl |
selectedChannelType(String channelName,
ContrastEnhancement contrastEnhancement)
|
ShadedReliefImpl |
shadedRelief(Expression reliefFactor,
boolean brightnessOnly)
|
StrokeImpl |
stroke(Expression color,
Expression opacity,
Expression width,
Expression join,
Expression cap,
float[] dashes,
Expression offset)
|
StrokeImpl |
stroke(GraphicFill fill,
Expression color,
Expression opacity,
Expression width,
Expression join,
Expression cap,
float[] dashes,
Expression offset)
|
StrokeImpl |
stroke(GraphicStroke stroke,
Expression color,
Expression opacity,
Expression width,
Expression join,
Expression cap,
float[] dashes,
Expression offset)
|
StyleImpl |
style(String name,
Description description,
boolean isDefault,
List<FeatureTypeStyle> featureTypeStyles,
Symbolizer defaultSymbolizer)
|
TextSymbolizerImpl |
textSymbolizer(String name,
Expression geometry,
Description description,
Unit<?> unit,
Expression label,
Font font,
LabelPlacement placement,
Halo halo,
Fill fill)
|
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StyleFactoryImpl2
public StyleFactoryImpl2()
StyleFactoryImpl2
protected StyleFactoryImpl2(FilterFactory2 factory)
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 ChannelSelectionImpl channelSelection(SelectedChannelType red,
SelectedChannelType green,
SelectedChannelType blue)
- Specified by:
channelSelection
in interface StyleFactory
colorMap
public ColorMapImpl 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 ContrastEnhancementImpl contrastEnhancement(Expression gamma,
ContrastMethod method)
- Specified by:
contrastEnhancement
in interface StyleFactory
description
public DescriptionImpl description(InternationalString title,
InternationalString description)
- Specified by:
description
in interface StyleFactory
displacement
public DisplacementImpl displacement(Expression dx,
Expression dy)
- Specified by:
displacement
in interface StyleFactory
externalGraphic
public ExternalGraphicImpl externalGraphic(Icon inline,
Collection<ColorReplacement> replacements)
- Specified by:
externalGraphic
in interface StyleFactory
externalGraphic
public ExternalGraphicImpl 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 FeatureTypeStyleImpl featureTypeStyle(String name,
Description description,
Id definedFor,
Set<Name> featureTypeNames,
Set<SemanticType> types,
List<Rule> rules)
- Specified by:
featureTypeStyle
in interface StyleFactory
fill
public FillImpl fill(GraphicFill graphicFill,
Expression color,
Expression opacity)
- Specified by:
fill
in interface StyleFactory
font
public FontImpl font(List<Expression> family,
Expression style,
Expression weight,
Expression size)
- Specified by:
font
in interface StyleFactory
graphic
public GraphicImpl graphic(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchor,
Displacement disp)
- Specified by:
graphic
in interface StyleFactory
graphicFill
public GraphicImpl graphicFill(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchorPoint,
Displacement displacement)
- Specified by:
graphicFill
in interface StyleFactory
graphicLegend
public GraphicImpl graphicLegend(List<GraphicalSymbol> symbols,
Expression opacity,
Expression size,
Expression rotation,
AnchorPoint anchorPoint,
Displacement displacement)
- Specified by:
graphicLegend
in interface StyleFactory
graphicStroke
public GraphicImpl 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 HaloImpl halo(Fill fill,
Expression radius)
- Specified by:
halo
in interface StyleFactory
linePlacement
public LinePlacementImpl linePlacement(Expression offset,
Expression initialGap,
Expression gap,
boolean repeated,
boolean aligned,
boolean generalizedLine)
- Specified by:
linePlacement
in interface StyleFactory
lineSymbolizer
public LineSymbolizerImpl lineSymbolizer(String name,
Expression geometry,
Description description,
Unit<?> unit,
Stroke stroke,
Expression offset)
- Specified by:
lineSymbolizer
in interface StyleFactory
mark
public MarkImpl 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 PointPlacementImpl pointPlacement(AnchorPoint anchor,
Displacement displacement,
Expression rotation)
- Specified by:
pointPlacement
in interface StyleFactory
pointSymbolizer
public PointSymbolizerImpl pointSymbolizer(String name,
Expression geometry,
Description description,
Unit<?> unit,
Graphic graphic)
- Specified by:
pointSymbolizer
in interface StyleFactory
polygonSymbolizer
public PolygonSymbolizerImpl 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 RasterSymbolizerImpl 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 RuleImpl rule(String name,
Description description,
GraphicLegend legend,
double min,
double max,
List<Symbolizer> symbolizers,
Filter filter)
- Specified by:
rule
in interface StyleFactory
selectedChannelType
public SelectedChannelTypeImpl selectedChannelType(String channelName,
ContrastEnhancement contrastEnhancement)
- Specified by:
selectedChannelType
in interface StyleFactory
shadedRelief
public ShadedReliefImpl shadedRelief(Expression reliefFactor,
boolean brightnessOnly)
- Specified by:
shadedRelief
in interface StyleFactory
stroke
public StrokeImpl stroke(Expression color,
Expression opacity,
Expression width,
Expression join,
Expression cap,
float[] dashes,
Expression offset)
- Specified by:
stroke
in interface StyleFactory
stroke
public StrokeImpl 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 StrokeImpl 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 StyleImpl style(String name,
Description description,
boolean isDefault,
List<FeatureTypeStyle> featureTypeStyles,
Symbolizer defaultSymbolizer)
- Specified by:
style
in interface StyleFactory
textSymbolizer
public TextSymbolizerImpl 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-2010 Geotools. All Rights Reserved.