public class StyleFactoryImpl extends AbstractStyleFactory implements StyleFactory2, StyleFactory
This class implements:
| Modifier | Constructor and Description |
|---|---|
|
StyleFactoryImpl() |
protected |
StyleFactoryImpl(FilterFactory2 factory) |
getImplementationHintsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetImplementationHintspublic StyleFactoryImpl()
protected StyleFactoryImpl(FilterFactory2 factory)
public Style createStyle()
createStyle in class AbstractStyleFactorypublic NamedStyle createNamedStyle()
createNamedStyle in class AbstractStyleFactorypublic PointSymbolizer createPointSymbolizer()
createPointSymbolizer in class AbstractStyleFactorypublic PointSymbolizer createPointSymbolizer(Graphic graphic, String geometryPropertyName)
createPointSymbolizer in class AbstractStyleFactorypublic PolygonSymbolizer createPolygonSymbolizer()
createPolygonSymbolizer in class AbstractStyleFactorypublic PolygonSymbolizer createPolygonSymbolizer(Stroke stroke, Fill fill, String geometryPropertyName)
createPolygonSymbolizer in class AbstractStyleFactorypublic LineSymbolizer createLineSymbolizer()
StyleFactorycreateLineSymbolizer in class AbstractStyleFactorypublic LineSymbolizer createLineSymbolizer(Stroke stroke, String geometryPropertyName)
createLineSymbolizer in class AbstractStyleFactorypublic TextSymbolizer createTextSymbolizer()
createTextSymbolizer in class AbstractStyleFactorypublic TextSymbolizer createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName)
createTextSymbolizer in class AbstractStyleFactorypublic TextSymbolizer2 createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName, Graphic graphic)
StyleFactory2createTextSymbolizer in interface StyleFactory2fill - 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)
StyleFactoryname - The name of the extent.value - The value of the extent.public FeatureTypeConstraint createFeatureTypeConstraint(String featureTypeName, Filter filter, Extent[] extents)
StyleFactoryfeatureTypeName - The feature type name.filter - The filter.extents - The extents.public LayerFeatureConstraints createLayerFeatureConstraints(FeatureTypeConstraint[] featureTypeConstraints)
public FeatureTypeStyle createFeatureTypeStyle()
createFeatureTypeStyle in class AbstractStyleFactorypublic FeatureTypeStyle createFeatureTypeStyle(Rule[] rules)
createFeatureTypeStyle in class AbstractStyleFactorypublic Rule createRule()
createRule in class AbstractStyleFactorypublic Rule createRule(Symbolizer[] symbolizers, Description desc, Graphic[] legends, String name, Filter filter, boolean isElseFilter, double maxScale, double minScale)
public ImageOutline createImageOutline(Symbolizer symbolizer)
StyleFactorysymbolizer - A line or polygon symbolizer.public Stroke createStroke(Expression color, Expression width)
createStroke in class AbstractStyleFactorycolor - the color of the linewidth - the width of the lineorg.geotools.strokepublic Stroke createStroke(Expression color, Expression width, Expression opacity)
createStroke in class AbstractStyleFactorycolor - the color of the linewidth - The width of the lineopacity - The opacity of the lineorg.geotools.strokepublic Stroke createStroke(Expression color, Expression width, Expression opacity, Expression lineJoin, Expression lineCap, float[] dashArray, Expression dashOffset, Graphic graphicFill, Graphic graphicStroke)
createStroke in class AbstractStyleFactorycolor - 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.strokepublic Fill createFill(Expression color, Expression backgroundColor, Expression opacity, Graphic graphicFill)
createFill in class AbstractStyleFactorypublic Fill createFill(Expression color, Expression opacity)
createFill in class AbstractStyleFactorypublic Fill createFill(Expression color)
createFill in class AbstractStyleFactorypublic Mark createMark(Expression wellKnownName, Stroke stroke, Fill fill, Expression size, Expression rotation)
createMark in class AbstractStyleFactorypublic Mark getSquareMark()
AbstractStyleFactorygetSquareMark in class AbstractStyleFactorypublic Mark getCircleMark()
AbstractStyleFactorygetCircleMark in class AbstractStyleFactorypublic Mark getCrossMark()
AbstractStyleFactorygetCrossMark in class AbstractStyleFactorypublic Mark getXMark()
AbstractStyleFactorygetXMark in class AbstractStyleFactorypublic Mark getTriangleMark()
AbstractStyleFactorygetTriangleMark in class AbstractStyleFactorypublic Mark getStarMark()
AbstractStyleFactorygetStarMark in class AbstractStyleFactorypublic Mark createMark()
createMark in class AbstractStyleFactorypublic Graphic createGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, Expression opacity, Expression size, Expression rotation)
createGraphic in class AbstractStyleFactorypublic ExternalGraphic createExternalGraphic(String uri, String format)
createExternalGraphic in class AbstractStyleFactorypublic ExternalGraphic createExternalGraphic(Icon inlineContent, String format)
createExternalGraphic in class AbstractStyleFactorypublic ExternalGraphic createExternalGraphic(URL url, String format)
createExternalGraphic in class AbstractStyleFactorypublic Font createFont(Expression fontFamily, Expression fontStyle, Expression fontWeight, Expression fontSize)
createFont in class AbstractStyleFactorypublic LinePlacement createLinePlacement(Expression offset)
createLinePlacement in class AbstractStyleFactorypublic PointPlacement createPointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation)
createPointPlacement in class AbstractStyleFactorypublic AnchorPoint createAnchorPoint(Expression x, Expression y)
createAnchorPoint in class AbstractStyleFactorypublic Displacement createDisplacement(Expression x, Expression y)
createDisplacement in class AbstractStyleFactorypublic Halo createHalo(Fill fill, Expression radius)
createHalo in class AbstractStyleFactorypublic Fill getDefaultFill()
getDefaultFill in class AbstractStyleFactorypublic LineSymbolizer getDefaultLineSymbolizer()
getDefaultLineSymbolizer in class AbstractStyleFactorypublic Mark getDefaultMark()
getDefaultMark in class AbstractStyleFactorypublic PointSymbolizer getDefaultPointSymbolizer()
getDefaultPointSymbolizer in class AbstractStyleFactorypublic PolygonSymbolizer getDefaultPolygonSymbolizer()
getDefaultPolygonSymbolizer in class AbstractStyleFactorypublic Stroke getDefaultStroke()
getDefaultStroke in class AbstractStyleFactorypublic Style getDefaultStyle()
getDefaultStyle in class AbstractStyleFactorypublic TextSymbolizer getDefaultTextSymbolizer()
getDefaultTextSymbolizer in class AbstractStyleFactorypublic Font getDefaultFont()
getDefaultFont in class AbstractStyleFactoryRuntimeException - DOCUMENT ME!public Graphic createDefaultGraphic()
public Graphic getDefaultGraphic()
getDefaultGraphic in class AbstractStyleFactorypublic PointPlacement getDefaultPointPlacement()
getDefaultPointPlacement in class AbstractStyleFactorypublic RasterSymbolizer createRasterSymbolizer()
public RasterSymbolizer createRasterSymbolizer(String geometryPropertyName, Expression opacity, ChannelSelection channel, Expression overlap, ColorMap colorMap, ContrastEnhancement cenhancement, ShadedRelief relief, Symbolizer outline)
createRasterSymbolizer in class AbstractStyleFactorypublic RasterSymbolizer getDefaultRasterSymbolizer()
getDefaultRasterSymbolizer in class AbstractStyleFactorypublic ChannelSelection createChannelSelection(SelectedChannelType[] channels)
createChannelSelection in class AbstractStyleFactorypublic ColorMap createColorMap()
createColorMap in class AbstractStyleFactorypublic ColorMapEntry createColorMapEntry()
createColorMapEntry in class AbstractStyleFactorypublic ContrastEnhancement createContrastEnhancement()
public ContrastEnhancement createContrastEnhancement(Expression gammaValue)
public SelectedChannelType createSelectedChannelType(Expression name, ContrastEnhancement enhancement)
public SelectedChannelType createSelectedChannelType(String name, ContrastEnhancement enhancement)
createSelectedChannelType in class AbstractStyleFactorypublic SelectedChannelType createSelectedChannelType(Expression name, Expression gammaValue)
createSelectedChannelType in class AbstractStyleFactorypublic 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)
StyleFactoryanchorPoint in interface StyleFactorypublic ChannelSelection channelSelection(SelectedChannelType gray)
channelSelection in interface StyleFactorypublic ChannelSelection channelSelection(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue)
channelSelection in interface StyleFactorypublic ColorMap colorMap(Expression propertyName, Expression... mapping)
StyleFactoryThe function will be created based on:
colorMap in interface StyleFactorypropertyName - Property name to categorize, or use "Raster"mapping - Defined as a series of Expressionspublic ColorReplacementImpl colorReplacement(Expression propertyName, Expression... mapping)
StyleFactorycolorReplacement in interface StyleFactorypropertyName - Property name to categorize, or use "Raster"mapping - Defined as a series of Expressionspublic ContrastEnhancement contrastEnhancement(Expression gamma, ContrastMethod method)
contrastEnhancement in interface StyleFactorypublic Description description(InternationalString title, InternationalString description)
description in interface StyleFactorypublic Displacement displacement(Expression dx, Expression dy)
StyleFactorydisplacement in interface StyleFactorypublic ExternalGraphic externalGraphic(Icon inline, Collection<ColorReplacement> replacements)
StyleFactoryThis is used to produce high quality output by allowing you to directly draw each symbol by supplying your own Icon implementation.
externalGraphic in interface StyleFactorypublic ExternalGraphic externalGraphic(OnLineResource resource, String format, Collection<ColorReplacement> replacements)
StyleFactoryexternalGraphic in interface StyleFactorypublic ExternalMarkImpl externalMark(Icon inline)
externalMark in interface StyleFactorypublic ExternalMarkImpl externalMark(OnLineResource resource, String format, int markIndex)
externalMark in interface StyleFactorypublic FeatureTypeStyle featureTypeStyle(String name, Description description, Id definedFor, Set<Name> featureTypeNames, Set<SemanticType> types, List<Rule> rules)
StyleFactoryfeatureTypeStyle in interface StyleFactoryname - 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 emptySimpleFepublic Fill fill(GraphicFill fill, Expression color, Expression opacity)
StyleFactoryfill in interface StyleFactorypublic Font font(List<Expression> family, Expression style, Expression weight, Expression size)
StyleFactoryIf fonts are not showing up as you expect please review the list of fonts installed into your JRE.
font in interface StyleFactorypublic Graphic graphic(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchor, Displacement disp)
StyleFactorygraphic in interface StyleFactorypublic Graphic graphicFill(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement)
graphicFill in interface StyleFactorypublic GraphicLegend graphicLegend(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement)
graphicLegend in interface StyleFactorypublic Graphic graphicStroke(List<GraphicalSymbol> symbols, Expression opacity, Expression size, Expression rotation, AnchorPoint anchorPoint, Displacement displacement, Expression initialGap, Expression gap)
graphicStroke in interface StyleFactorypublic Halo halo(Fill fill, Expression radius)
halo in interface StyleFactorypublic LinePlacement linePlacement(Expression offset, Expression initialGap, Expression gap, boolean repeated, boolean aligned, boolean generalizedLine)
linePlacement in interface StyleFactorypublic LineSymbolizer lineSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Stroke stroke, Expression offset)
lineSymbolizer in interface StyleFactoryname - 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 StyleFactorypublic MarkImpl mark(ExternalMark externalMark, Fill fill, Stroke stroke)
mark in interface StyleFactorypublic PointPlacement pointPlacement(AnchorPoint anchor, Displacement displacement, Expression rotation)
pointPlacement in interface StyleFactorypublic PointSymbolizer pointSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Graphic graphic)
StyleFactorypointSymbolizer in interface StyleFactoryname - 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 StyleFactoryname - 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 StyleFactoryname - 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)
StyleFactoryextensionSymbolizer in interface StyleFactoryname - 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)
StyleFactoryrule in interface StyleFactoryname - 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 StyleFactorypublic SelectedChannelType selectedChannelType(String channelName, ContrastEnhancement contrastEnhancement)
selectedChannelType in interface StyleFactorypublic ShadedRelief shadedRelief(Expression reliefFactor, boolean brightnessOnly)
shadedRelief in interface StyleFactorypublic Stroke stroke(Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke in interface StyleFactorypublic Stroke stroke(GraphicFill fill, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke in interface StyleFactorypublic Stroke stroke(GraphicStroke stroke, Expression color, Expression opacity, Expression width, Expression join, Expression cap, float[] dashes, Expression offset)
stroke in interface StyleFactorypublic Style style(String name, Description description, boolean isDefault, List<FeatureTypeStyle> featureTypeStyles, Symbolizer defaultSymbolizer)
style in interface StyleFactorypublic TextSymbolizer textSymbolizer(String name, Expression geometry, Description description, Unit<?> unit, Expression label, Font font, LabelPlacement placement, Halo halo, Fill fill)
StyleFactorytextSymbolizer in interface StyleFactoryname - 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 StyleFactorypublic ContrastMethod createContrastMethod(ContrastMethod method)
Copyright © 1996–2019 Geotools. All rights reserved.