|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractStyleFactory
StyleFactoryImpl
public class StyleFactoryImpl
Factory for creating Styles. All style elements are returned as Interfaces from org.geotools.core as opposed to Implementations from org.geotools.defaultcore.
This class implements:
| Constructor Summary | |
|---|---|
|
StyleFactoryImpl()
|
protected |
StyleFactoryImpl(FilterFactory2 factory)
|
| Methods inherited from class AbstractStyleFactory |
|---|
getImplementationHints |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface Factory |
|---|
getImplementationHints |
| Constructor Detail |
|---|
public StyleFactoryImpl()
protected StyleFactoryImpl(FilterFactory2 factory)
| Method Detail |
|---|
public Style createStyle()
createStyle in class AbstractStyleFactorypublic NamedStyle createNamedStyle()
createNamedStyle in class AbstractStyleFactorypublic PointSymbolizer createPointSymbolizer()
createPointSymbolizer in class AbstractStyleFactory
public PointSymbolizer createPointSymbolizer(Graphic graphic,
String geometryPropertyName)
createPointSymbolizer in class AbstractStyleFactorypublic PolygonSymbolizer createPolygonSymbolizer()
createPolygonSymbolizer in class AbstractStyleFactory
public PolygonSymbolizer createPolygonSymbolizer(Stroke stroke,
Fill fill,
String geometryPropertyName)
createPolygonSymbolizer in class AbstractStyleFactorypublic LineSymbolizer createLineSymbolizer()
StyleFactory
createLineSymbolizer in class AbstractStyleFactory
public LineSymbolizer createLineSymbolizer(Stroke stroke,
String geometryPropertyName)
createLineSymbolizer in class AbstractStyleFactorypublic 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 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 label
public 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 AbstractStyleFactorypublic FeatureTypeStyle createFeatureTypeStyle(Rule[] rules)
createFeatureTypeStyle in class AbstractStyleFactorypublic 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 AbstractStyleFactorycolor - the color of the linewidth - the width of the line
org.geotools.stroke
public 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 line
org.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 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 with
IllegalArgumentException - 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 AbstractStyleFactorypublic Fill createFill(Expression color)
createFill in class AbstractStyleFactory
public Mark createMark(Expression wellKnownName,
Stroke stroke,
Fill fill,
Expression size,
Expression rotation)
createMark in class AbstractStyleFactorypublic Mark getSquareMark()
AbstractStyleFactory
getSquareMark in class AbstractStyleFactorypublic Mark getCircleMark()
AbstractStyleFactory
getCircleMark in class AbstractStyleFactorypublic Mark getCrossMark()
AbstractStyleFactory
getCrossMark in class AbstractStyleFactorypublic Mark getXMark()
AbstractStyleFactory
getXMark in class AbstractStyleFactorypublic Mark getTriangleMark()
AbstractStyleFactory
getTriangleMark in class AbstractStyleFactorypublic Mark getStarMark()
AbstractStyleFactory
getStarMark in class AbstractStyleFactorypublic 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 AbstractStyleFactorypublic 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 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(String name,
ContrastEnhancement enhancement)
public SelectedChannelType createSelectedChannelType(String name,
Expression gammaValue)
createSelectedChannelType in class AbstractStyleFactorypublic StyledLayerDescriptor createStyledLayerDescriptor()
public UserLayer createUserLayer()
public NamedLayer createNamedLayer()
public RemoteOWS createRemoteOWS(String service,
String onlineResource)
public ShadedRelief createShadedRelief(Expression reliefFactor)
public AnchorPoint anchorPoint(Expression x,
Expression y)
StyleFactory
anchorPoint in interface StyleFactorypublic 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)
StyleFactoryThe function will be created based on:
colorMap in interface StyleFactorypropertyName - Property name to categorize, or use "Raster"mapping - Defined as a series of Expressions
public ColorReplacementImpl colorReplacement(Expression propertyName,
Expression... mapping)
StyleFactory
colorReplacement in interface StyleFactorypropertyName - Property name to categorize, or use "Raster"mapping - Defined as a series of Expressions
public 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)
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 StyleFactory
public ExternalGraphic externalGraphic(OnLineResource resource,
String format,
Collection<ColorReplacement> replacements)
StyleFactory
externalGraphic in interface StyleFactorypublic 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)
featureTypeStyle in interface StyleFactoryrules - May not be null or empty
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)
StyleFactoryIf 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 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 origional
public 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 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 rendering
public 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 distances
public 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 distances
public ExtensionSymbolizer extensionSymbolizer(String name,
String propertyName,
Description description,
Unit<?> unit,
String extensionName,
Map<String,Expression> parameters)
StyleFactory
extensionSymbolizer 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 process
public Rule rule(String name,
Description description,
GraphicLegend legend,
double min,
double max,
List<Symbolizer> symbolizers,
Filter filter)
StyleFactory
rule 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 applied
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 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 used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||