public class StyleFactoryImpl extends AbstractStyleFactory implements StyleFactory2, StyleFactory
This class implements:
Modifier | Constructor and Description |
---|---|
|
StyleFactoryImpl() |
protected |
StyleFactoryImpl(FilterFactory2 factory) |
getImplementationHints
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getImplementationHints
public StyleFactoryImpl()
protected StyleFactoryImpl(FilterFactory2 factory)
public Style createStyle()
createStyle
in class AbstractStyleFactory
public NamedStyle createNamedStyle()
createNamedStyle
in class AbstractStyleFactory
public PointSymbolizer createPointSymbolizer()
createPointSymbolizer
in class AbstractStyleFactory
public PointSymbolizer createPointSymbolizer(Graphic graphic, String geometryPropertyName)
createPointSymbolizer
in class AbstractStyleFactory
public PolygonSymbolizer createPolygonSymbolizer()
createPolygonSymbolizer
in class AbstractStyleFactory
public PolygonSymbolizer createPolygonSymbolizer(Stroke stroke, Fill fill, String geometryPropertyName)
createPolygonSymbolizer
in class AbstractStyleFactory
public LineSymbolizer createLineSymbolizer()
StyleFactory
createLineSymbolizer
in class AbstractStyleFactory
public LineSymbolizer createLineSymbolizer(Stroke stroke, String geometryPropertyName)
createLineSymbolizer
in class AbstractStyleFactory
public TextSymbolizer createTextSymbolizer()
createTextSymbolizer
in class AbstractStyleFactory
public TextSymbolizer createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName)
createTextSymbolizer
in class AbstractStyleFactory
public TextSymbolizer2 createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName, Graphic graphic)
StyleFactory2
createTextSymbolizer
in interface StyleFactory2
fill
- Fillfonts
- Font information (CSS)halo
- Describes Halolabel
- Expression for labellabelPlacement
- Captures label positiongeometryPropertyName
- With respect to this geometrygraphic
- Used to draw a backdrop behind labelpublic Extent createExtent(String name, String value)
StyleFactory
name
- The name of the extent.value
- The value of the extent.public FeatureTypeConstraint createFeatureTypeConstraint(String featureTypeName, Filter filter, Extent[] extents)
StyleFactory
featureTypeName
- The feature type name.filter
- The filter.extents
- The extents.public LayerFeatureConstraints createLayerFeatureConstraints(FeatureTypeConstraint[] featureTypeConstraints)
public FeatureTypeStyle createFeatureTypeStyle()
createFeatureTypeStyle
in class AbstractStyleFactory
public FeatureTypeStyle createFeatureTypeStyle(Rule[] rules)
createFeatureTypeStyle
in class AbstractStyleFactory
public Rule createRule()
createRule
in class AbstractStyleFactory
public Rule createRule(Symbolizer[] symbolizers, Description desc, Graphic[] legends, String name, Filter filter, boolean isElseFilter, double maxScale, double minScale)
public ImageOutline createImageOutline(Symbolizer symbolizer)
StyleFactory
symbolizer
- A line or polygon symbolizer.public Stroke createStroke(Expression color, Expression width)
createStroke
in class AbstractStyleFactory
color
- the color of the linewidth
- the width of the lineorg.geotools.stroke
public Stroke createStroke(Expression color, Expression width, Expression opacity)
createStroke
in class AbstractStyleFactory
color
- the color of the linewidth
- The width of the lineopacity
- The opacity of the lineorg.geotools.stroke
public Stroke createStroke(Expression color, Expression width, Expression opacity, Expression lineJoin, Expression lineCap, float[] dashArray, Expression dashOffset, Graphic graphicFill, Graphic graphicStroke)
createStroke
in class AbstractStyleFactory
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 withIllegalArgumentException
- DOCUMENT ME!org.geotools.stroke
public Fill createFill(Expression color, Expression backgroundColor, Expression opacity, Graphic graphicFill)
createFill
in class AbstractStyleFactory
public Fill createFill(Expression color, Expression opacity)
createFill
in class AbstractStyleFactory
public Fill createFill(Expression color)
createFill
in class AbstractStyleFactory
public Mark createMark(Expression wellKnownName, Stroke stroke, Fill fill, Expression size, Expression rotation)
createMark
in class AbstractStyleFactory
public Mark getSquareMark()
AbstractStyleFactory
getSquareMark
in class AbstractStyleFactory
public Mark getCircleMark()
AbstractStyleFactory
getCircleMark
in class AbstractStyleFactory
public Mark getCrossMark()
AbstractStyleFactory
getCrossMark
in class AbstractStyleFactory
public Mark getXMark()
AbstractStyleFactory
getXMark
in class AbstractStyleFactory
public Mark getTriangleMark()
AbstractStyleFactory
getTriangleMark
in class AbstractStyleFactory
public Mark getStarMark()
AbstractStyleFactory
getStarMark
in class AbstractStyleFactory
public Mark createMark()
createMark
in class AbstractStyleFactory
public Graphic createGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, Expression opacity, Expression size, Expression rotation)
createGraphic
in class AbstractStyleFactory
public ExternalGraphic createExternalGraphic(String uri, String format)
createExternalGraphic
in class AbstractStyleFactory
public ExternalGraphic createExternalGraphic(Icon inlineContent, String format)
createExternalGraphic
in class AbstractStyleFactory
public ExternalGraphic createExternalGraphic(URL url, String format)
createExternalGraphic
in class AbstractStyleFactory
public Font createFont(Expression fontFamily, Expression fontStyle, Expression fontWeight, Expression fontSize)
createFont
in class AbstractStyleFactory
public LinePlacement createLinePlacement(Expression offset)
createLinePlacement
in class AbstractStyleFactory
public PointPlacement createPointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation)
createPointPlacement
in class AbstractStyleFactory
public AnchorPoint createAnchorPoint(Expression x, Expression y)
createAnchorPoint
in class AbstractStyleFactory
public Displacement createDisplacement(Expression x, Expression y)
createDisplacement
in class AbstractStyleFactory
public Halo createHalo(Fill fill, Expression radius)
createHalo
in class AbstractStyleFactory
public Fill getDefaultFill()
getDefaultFill
in class AbstractStyleFactory
public LineSymbolizer getDefaultLineSymbolizer()
getDefaultLineSymbolizer
in class AbstractStyleFactory
public Mark getDefaultMark()
getDefaultMark
in class AbstractStyleFactory
public PointSymbolizer getDefaultPointSymbolizer()
getDefaultPointSymbolizer
in class AbstractStyleFactory
public PolygonSymbolizer getDefaultPolygonSymbolizer()
getDefaultPolygonSymbolizer
in class AbstractStyleFactory
public Stroke getDefaultStroke()
getDefaultStroke
in class AbstractStyleFactory
public Style getDefaultStyle()
getDefaultStyle
in class AbstractStyleFactory
public TextSymbolizer getDefaultTextSymbolizer()
getDefaultTextSymbolizer
in class AbstractStyleFactory
public Font getDefaultFont()
getDefaultFont
in class AbstractStyleFactory
RuntimeException
- DOCUMENT ME!public Graphic createDefaultGraphic()
public Graphic getDefaultGraphic()
getDefaultGraphic
in class AbstractStyleFactory
public PointPlacement getDefaultPointPlacement()
getDefaultPointPlacement
in class AbstractStyleFactory
public RasterSymbolizer createRasterSymbolizer()
public RasterSymbolizer createRasterSymbolizer(String geometryPropertyName, Expression opacity, ChannelSelection channel, Expression overlap, ColorMap colorMap, ContrastEnhancement cenhancement, ShadedRelief relief, Symbolizer outline)
createRasterSymbolizer
in class AbstractStyleFactory
public RasterSymbolizer getDefaultRasterSymbolizer()
getDefaultRasterSymbolizer
in class AbstractStyleFactory
public ChannelSelection createChannelSelection(SelectedChannelType[] channels)
createChannelSelection
in class AbstractStyleFactory
public ColorMap createColorMap()
createColorMap
in class AbstractStyleFactory
public ColorMapEntry createColorMapEntry()
createColorMapEntry
in class AbstractStyleFactory
public ContrastEnhancement createContrastEnhancement()
public ContrastEnhancement createContrastEnhancement(Expression gammaValue)
public SelectedChannelType createSelectedChannelType(Expression name, ContrastEnhancement enhancement)
public SelectedChannelType createSelectedChannelType(String name, ContrastEnhancement enhancement)
createSelectedChannelType
in class AbstractStyleFactory
public SelectedChannelType createSelectedChannelType(Expression name, Expression gammaValue)
createSelectedChannelType
in class AbstractStyleFactory
public SelectedChannelType createSelectedChannelType(String name, Expression gammaValue)
public StyledLayerDescriptor createStyledLayerDescriptor()
public UserLayer createUserLayer()
public NamedLayer createNamedLayer()
public ShadedRelief createShadedRelief(Expression reliefFactor)
public AnchorPoint anchorPoint(Expression x, Expression y)
StyleFactory
anchorPoint
in interface StyleFactory
public ChannelSelection channelSelection(SelectedChannelType gray)
channelSelection
in interface StyleFactory
public ChannelSelection channelSelection(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue)
channelSelection
in interface StyleFactory
public ColorMap colorMap(Expression propertyName, Expression... mapping)
StyleFactory
The function will be created based on:
colorMap
in interface StyleFactory
propertyName
- Property name to categorize, or use "Raster"mapping
- Defined as a series of Expressionspublic ColorReplacementImpl colorReplacement(Expression propertyName, Expression... mapping)
StyleFactory
colorReplacement
in interface StyleFactory
propertyName
- Property name to categorize, or use "Raster"mapping
- Defined as a series of Expressionspublic ContrastEnhancement contrastEnhancement(Expression gamma, ContrastMethod method)
contrastEnhancement
in interface StyleFactory
public Description description(InternationalString title, InternationalString description)
description
in interface StyleFactory
public Displacement displacement(Expression dx, Expression dy)
StyleFactory
displacement
in interface StyleFactory
public ExternalGraphic externalGraphic(Icon inline, Collection<ColorReplacement> replacements)
StyleFactory
This is used to produce high quality output by allowing you to directly draw each symbol by supplying your own Icon implementation.
externalGraphic
in interface StyleFactory
public ExternalGraphic externalGraphic(OnLineResource resource, String format, Collection<ColorReplacement> replacements)
StyleFactory
externalGraphic
in interface StyleFactory
public ExternalMarkImpl externalMark(Icon inline)
externalMark
in interface StyleFactory
public ExternalMarkImpl externalMark(OnLineResource resource, String format, int markIndex)
externalMark
in interface StyleFactory
public FeatureTypeStyle featureTypeStyle(String name, Description description, Id definedFor, Set<Name> featureTypeNames, Set<SemanticType> types, List<Rule> rules)
StyleFactory
featureTypeStyle
in interface StyleFactory
name
- Namedescription
- Description with title and abstract informationdefinedFor
- Currently unusedfeatureTypeNames
- FeatureTypes this style applies to, use AbstractFeature to match alltypes
- SemanticTyperules
- May not be null or emptySimpleFe
public Fill fill(GraphicFill fill, Expression color, Expression opacity)
StyleFactory
fill
in interface StyleFactory
public Font font(List<Expression> family, Expression style, Expression weight, Expression size)
StyleFactory
If fonts are not showing up as you expect please review the list of fonts installed into your JRE.
font
in interface StyleFactory
public Graphic graphic(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchor, Displacement disp)
StyleFactory
graphic
in interface StyleFactory
public Graphic graphicFill(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement)
graphicFill
in interface StyleFactory
public GraphicLegend graphicLegend(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement)
graphicLegend
in interface StyleFactory
public Graphic graphicStroke(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement, Expression initialGap, Expression gap)
graphicStroke
in interface StyleFactory
public Halo halo(Fill fill, Expression radius)
halo
in interface StyleFactory
public LinePlacement linePlacement(Expression offset, Expression initialGap, Expression gap, boolean repeated, boolean aligned, boolean generalizedLine)
linePlacement
in interface StyleFactory
public LineSymbolizer lineSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Stroke stroke, Expression offset)
lineSymbolizer
in interface StyleFactory
name
- handle used to refer to this symbolizer (machine readible)geometry
- Expression used to produce the Geometry to renderer; often a PropertyNameunit
- Unit of measure used to define this symbolizerstroke
- Definition of how to stroke lineworkoffset
- Offset used to position line relative to origionalpublic Mark mark(Expression wellKnownName, Fill fill, Stroke stroke)
mark
in interface StyleFactory
public MarkImpl mark(ExternalMark externalMark, Fill fill, Stroke stroke)
mark
in interface StyleFactory
public PointPlacement pointPlacement(AnchorPoint anchor, Displacement displacement, Expression rotation)
pointPlacement
in interface StyleFactory
public PointSymbolizer pointSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Graphic graphic)
StyleFactory
pointSymbolizer
in interface StyleFactory
name
- handle used to refer to this symbolizer (machine readable)geometry
- Expression used to extract the Geometry rendered; usually a PropertyNamedescription
- Human readable description of symboizerunit
- Unit of Measure used to interpret symbolizer distancesgraphic
- Graphic used to represent the geometry when renderingpublic PolygonSymbolizer polygonSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Stroke stroke, Fill fill, Displacement displacement, Expression offset)
polygonSymbolizer
in interface StyleFactory
name
- handle used to refer to this symbolizer (machine readable)geometry
- Expression used to extract the Geometry rendered; usually a PropertyNamedescription
- Human readable description of symboizerunit
- Unit of Measure used to interpret symbolizer distancespublic RasterSymbolizer rasterSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Expression opacity, ChannelSelection channelSelection, OverlapBehavior overlapsBehaviour, ColorMap colorMap, ContrastEnhancement contrast, ShadedRelief shaded, Symbolizer outline)
rasterSymbolizer
in interface StyleFactory
name
- handle used to refer to this symbolizer (machine readable)geometry
- Expression used to extract the Geometry rendered; usually a PropertyNamedescription
- Human readable description of symboizerunit
- Unit of Measure used to interpret symbolizer distancespublic ExtensionSymbolizer extensionSymbolizer(String name, String propertyName, Description description, Unit<?> unit, String extensionName, Map<String,Expression> parameters)
StyleFactory
extensionSymbolizer
in interface StyleFactory
name
- handle used to refer to this symbolizer (machine readible)propertyName
- Geometry expression to renderer; formally a PropertyNamedescription
- Description of this symbolizer; human readableunit
- Unit of measure to use when interpretting this symbolizerextensionName
- Extension name used to identify the vendor specific extension being
controlledparameters
- Named expressions used to configure the vendor specific rendering processpublic Rule rule(String name, Description description, GraphicLegend legend, double min, double max, List<Symbolizer> symbolizers, Filter filter)
StyleFactory
rule
in interface StyleFactory
name
- handle used to refer to this rule (machine readable)description
- Human readable description of this rulelegend
- Graphic used to indicate this rule in a legend or user interfacemin
- minimum scale denominator used to control when this rule is appliedmax
- maximum scale denominator used to control when this rule is appliedpublic SelectedChannelType selectedChannelType(Expression channelName, ContrastEnhancement contrastEnhancement)
selectedChannelType
in interface StyleFactory
public SelectedChannelType selectedChannelType(String channelName, ContrastEnhancement contrastEnhancement)
selectedChannelType
in interface StyleFactory
public ShadedRelief shadedRelief(Expression reliefFactor, boolean brightnessOnly)
shadedRelief
in interface StyleFactory
public Stroke stroke(Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke
in interface StyleFactory
public Stroke stroke(GraphicFill fill, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke
in interface StyleFactory
public Stroke stroke(GraphicStroke stroke, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke
in interface StyleFactory
public Style style(String name, Description description, boolean isDefault, List<FeatureTypeStyle> featureTypeStyles, Symbolizer defaultSymbolizer)
style
in interface StyleFactory
public TextSymbolizer textSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Expression label, Font font, LabelPlacement placement, Halo halo, Fill fill)
StyleFactory
textSymbolizer
in interface StyleFactory
name
- Handle used to refer to this symbolizer (machine readable)geometry
- Geometry to be rendereddescription
- Human readable descriptionunit
- Unit of measure used to interpret symbolizer sizeslabel
- Text displayed for this symbolizerfont
- Font selected to renderer this symbolizerplacement
- Placement information relative to orgiginal geometryhalo
- definition of a halo or outline surrounding the symbolizerfill
- definition of fill usedpublic ContrastEnhancement contrastEnhancement(Expression gamma, String method)
contrastEnhancement
in interface StyleFactory
public ContrastMethod createContrastMethod(ContrastMethod method)
Copyright © 1996–2019 Geotools. All rights reserved.