|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.styling.StyleBuilder
An utility class designed to ease style building by convinience methods.
| Nested Class Summary | |
class |
StyleBuilder.EqualClasses
|
| Field Summary | |
static java.lang.String |
FONT_STYLE_ITALIC
|
static java.lang.String |
FONT_STYLE_NORMAL
|
static java.lang.String |
FONT_STYLE_OBLIQUE
|
static java.lang.String |
FONT_WEIGHT_BOLD
|
static java.lang.String |
FONT_WEIGHT_NORMAL
|
static java.lang.String |
LINE_CAP_BUTT
|
static java.lang.String |
LINE_CAP_ROUND
|
static java.lang.String |
LINE_CAP_SQUARE
|
static java.lang.String |
LINE_JOIN_BEVEL
|
static java.lang.String |
LINE_JOIN_MITRE
|
static java.lang.String |
LINE_JOIN_ROUND
|
static java.lang.String |
MARK_ARROW
|
static java.lang.String |
MARK_CIRCLE
|
static java.lang.String |
MARK_CROSS
|
static java.lang.String |
MARK_SQUARE
|
static java.lang.String |
MARK_STAR
|
static java.lang.String |
MARK_TRIANGLE
|
static java.lang.String |
MARK_X
|
| Constructor Summary | |
StyleBuilder()
use the default StyleFactory and FilterFactory |
|
StyleBuilder(FilterFactory filterFactory)
Use the supplied FilterFactory when building styles |
|
StyleBuilder(StyleFactory styleFactory)
Use the supplied StyleFactory when building styles |
|
StyleBuilder(StyleFactory styleFactory,
FilterFactory filterFactory)
Use the supplied StyleFactory and FilterFactory when building styles |
|
| Method Summary | |
Expression |
attributeExpression(java.lang.String attributeName)
create an attribute expression |
Style |
buildClassifiedStyle(FeatureCollection fc,
java.lang.String name,
java.lang.String[] colors,
FeatureType schema)
given a feature collection and an array of colours build a style with the given number of classes on the named column |
Expression |
colorExpression(java.awt.Color color)
convert an awt color in to a literal expression representing the color |
AnchorPoint |
createAnchorPoint(double x,
double y)
wrapper round Stylefactory Method |
AnchorPoint |
createAnchorPoint(Expression x,
Expression y)
wrapper round Stylefactory Method |
ColorMap |
createColorMap(java.lang.String[] labels,
double[] quantities,
java.awt.Color[] colors,
int type)
Creates a color map based on fixed quantities and colors. |
Displacement |
createDisplacement(double x,
double y)
wrapper round Stylefactory Method |
Displacement |
createDisplacement(Expression x,
Expression y)
wrapper round Stylefactory Method |
ExternalGraphic |
createExternalGraphic(java.lang.String uri,
java.lang.String format)
wrapper for stylefactory method |
ExternalGraphic |
createExternalGraphic(java.net.URL url,
java.lang.String format)
wrapper for stylefactory method |
FeatureTypeStyle |
createFeatureTypeStyle(java.lang.String featureTypeName,
Rule r)
create a Feature type styler |
FeatureTypeStyle |
createFeatureTypeStyle(java.lang.String featureTypeName,
Rule[] rules)
create a Feature type styler see the SLD Spec for more details of scaleDenominators |
FeatureTypeStyle |
createFeatureTypeStyle(java.lang.String featureTypeName,
Symbolizer symbolizer)
create a Feature type styler |
FeatureTypeStyle |
createFeatureTypeStyle(java.lang.String featureTypeName,
Symbolizer[] symbolizers)
create a Feature type styler |
FeatureTypeStyle |
createFeatureTypeStyle(java.lang.String featureTypeName,
Symbolizer[] symbolizers,
double minScaleDenominator,
double maxScaleDenominator)
create a Feature type styler see the SLD Spec for more details of scaleDenominators |
FeatureTypeStyle |
createFeatureTypeStyle(java.lang.String featureTypeName,
Symbolizer symbolizer,
double minScaleDenominator,
double maxScaleDenominator)
create a Feature type styler see the SLD Spec for more details of scaleDenominators |
FeatureTypeStyle |
createFeatureTypeStyle(Symbolizer symbolizer)
create a Feature type styler |
FeatureTypeStyle |
createFeatureTypeStyle(Symbolizer[] symbolizers,
double minScaleDenominator,
double maxScaleDenominator)
create a Feature type styler see the SLD Spec for more details of scaleDenominators |
FeatureTypeStyle |
createFeatureTypeStyle(Symbolizer symbolizer,
double minScaleDenominator,
double maxScaleDenominator)
create a Feature type styler see the SLD Spec for more details of scaleDenominators |
Fill |
createFill()
create a default fill 50% gray |
Fill |
createFill(java.awt.Color fillColor)
create a fill of color |
Fill |
createFill(java.awt.Color color,
java.awt.Color backgroundColor,
double opacity,
Graphic fill)
create a fill with color, background color and opacity supplied and uses the graphic supplied for the fill |
Fill |
createFill(java.awt.Color fillColor,
double opacity)
create a fill with the supplied color and opacity |
Fill |
createFill(Expression fillColor)
create a fill of color |
Fill |
createFill(Expression color,
Expression opacity)
create a fill with the supplied color and opacity |
Fill |
createFill(Expression color,
Expression backgroundColor,
Expression opacity,
Graphic fill)
create a fill with color, background color and opacity supplied and uses the graphic supplied for the fill |
Font |
createFont(Expression fontFamily,
Expression fontStyle,
Expression fontWeight,
Expression fontSize)
wrapper round StyleFactory method |
Font |
createFont(java.awt.Font font)
create a geotools font object from a java font |
Font |
createFont(java.lang.String fontFamily,
boolean italic,
boolean bold,
double fontSize)
create font of supplied family, size and weight/style |
Font |
createFont(java.lang.String fontFamily,
double fontSize)
create font of supplied family and size |
Graphic |
createGraphic()
Creates the default graphic object |
Graphic |
createGraphic(ExternalGraphic[] externalGraphics,
Mark[] marks,
Symbol[] symbols,
double opacity,
double size,
double rotation)
creates a graphic object |
Graphic |
createGraphic(ExternalGraphic[] externalGraphics,
Mark[] marks,
Symbol[] symbols,
Expression opacity,
Expression size,
Expression rotation)
creates a graphic object |
Graphic |
createGraphic(ExternalGraphic externalGraphic,
Mark mark,
Symbol symbol)
creates a graphic object |
Graphic |
createGraphic(ExternalGraphic externalGraphic,
Mark mark,
Symbol symbol,
double opacity,
double size,
double rotation)
creates a graphic object |
Halo |
createHalo()
wrapper round StyleFactory method to create default halo |
Halo |
createHalo(java.awt.Color color,
double radius)
wrapper round StyleFactory method to create halo |
Halo |
createHalo(java.awt.Color color,
double opacity,
double radius)
wrapper round StyleFactory method to create halo |
Halo |
createHalo(Fill fill,
double radius)
wrapper round StyleFactory method to create halo |
Halo |
createHalo(Fill fill,
Expression radius)
wrapper round StyleFactory method to create halo |
LinePlacement |
createLinePlacement(double offset)
wrapper round Stylefactory Method |
LinePlacement |
createLinePlacement(Expression offset)
wrapper round Stylefactory Method |
LineSymbolizer |
createLineSymbolizer()
create a default line symboliser |
LineSymbolizer |
createLineSymbolizer(java.awt.Color color)
create a LineSymbolizer |
LineSymbolizer |
createLineSymbolizer(java.awt.Color color,
double width)
create a LineSymbolizer |
LineSymbolizer |
createLineSymbolizer(java.awt.Color color,
double width,
java.lang.String geometryPropertyName)
create a LineSymbolizer |
LineSymbolizer |
createLineSymbolizer(double width)
create a new line symbolizer |
LineSymbolizer |
createLineSymbolizer(Stroke stroke)
create a LineSymbolizer |
LineSymbolizer |
createLineSymbolizer(Stroke stroke,
java.lang.String geometryPropertyName)
create a LineSymbolizer |
Mark |
createMark(Expression wellKnownName,
Fill fill,
Stroke stroke)
create a mark with the supplied fill and stroke |
Mark |
createMark(java.lang.String wellKnownName)
create the named mark |
Mark |
createMark(java.lang.String wellKnownName,
java.awt.Color fillColor)
create a mark of the supplied color and a default outline (black) |
Mark |
createMark(java.lang.String wellKnownName,
java.awt.Color fillColor,
java.awt.Color borderColor,
double borderWidth)
create the named mark with the colors etc supplied |
Mark |
createMark(java.lang.String wellKnownName,
java.awt.Color borderColor,
double borderWidth)
create a mark with default fill (50% gray) and the supplied outline |
Mark |
createMark(java.lang.String wellKnownName,
Fill fill,
Stroke stroke)
create a mark with the supplied fill and stroke |
PointPlacement |
createPointPlacement()
wrapper round Stylefactory Method |
PointPlacement |
createPointPlacement(AnchorPoint anchorPoint,
Displacement displacement,
Expression rotation)
wrapper round Stylefactory Method |
PointPlacement |
createPointPlacement(double anchorX,
double anchorY,
double rotation)
wrapper round Stylefactory Method |
PointPlacement |
createPointPlacement(double anchorX,
double anchorY,
double displacementX,
double displacementY,
double rotation)
wrapper round Stylefactory Method |
PointSymbolizer |
createPointSymbolizer()
create a default point symbolizer |
PointSymbolizer |
createPointSymbolizer(Graphic graphic)
create a point symbolizer |
PointSymbolizer |
createPointSymbolizer(Graphic graphic,
java.lang.String geometryPropertyName)
create a point symbolizer |
PolygonSymbolizer |
createPolygonSymbolizer()
create a default polygon symbolizer |
PolygonSymbolizer |
createPolygonSymbolizer(java.awt.Color fillColor)
create a polygon symbolizer |
PolygonSymbolizer |
createPolygonSymbolizer(java.awt.Color fillColor,
java.awt.Color borderColor,
double borderWidth)
create a polygon symbolizer |
PolygonSymbolizer |
createPolygonSymbolizer(java.awt.Color borderColor,
double borderWidth)
create a polygon symbolizer |
PolygonSymbolizer |
createPolygonSymbolizer(Stroke stroke,
Fill fill)
create a polygon symbolizer |
PolygonSymbolizer |
createPolygonSymbolizer(Stroke stroke,
Fill fill,
java.lang.String geometryPropertyName)
create a polygon symbolizer |
RasterSymbolizer |
createRasterSymbolizer()
Creates the default raster symbolizer |
RasterSymbolizer |
createRasterSymbolizer(ColorMap colorMap,
double opacity)
Creates a raster symbolizer |
Rule |
createRule(Symbolizer symbolizer)
create a simple styling rule |
Rule |
createRule(Symbolizer[] symbolizers)
reate a simple styling rule |
Rule |
createRule(Symbolizer[] symbolizers,
double minScaleDenominator,
double maxScaleDenominator)
create a simple styling rule, see the SLD Spec for more details of scaleDenominators |
Rule |
createRule(Symbolizer symbolizer,
double minScaleDenominator,
double maxScaleDenominator)
create a simple styling rule, see the SLD Spec for more details of scaleDenominators |
TextSymbolizer |
createStaticTextSymbolizer(java.awt.Color color,
Font[] fonts,
java.lang.String label)
create a textsymbolizer which doesn't change |
TextSymbolizer |
createStaticTextSymbolizer(java.awt.Color color,
Font font,
java.lang.String label)
create a textsymbolizer which doesn't change |
Stroke |
createStroke()
create a default Stroke |
Stroke |
createStroke(java.awt.Color color)
Create a default stroke with the supplied color |
Stroke |
createStroke(java.awt.Color color,
double width)
create a stroke with the supplied width and color |
Stroke |
createStroke(java.awt.Color color,
double width,
double opacity)
create a stroke with color, width and opacity supplied |
Stroke |
createStroke(java.awt.Color color,
double width,
float[] dashArray)
create a dashed line of color and width |
Stroke |
createStroke(java.awt.Color color,
double width,
java.lang.String lineJoin,
java.lang.String lineCap)
create a stroke with color, width, linejoin type and lineCap type. |
Stroke |
createStroke(double width)
create a default stroke with the supplied width |
Stroke |
createStroke(Expression color,
Expression width)
create a stroke with the color and width supplied |
Stroke |
createStroke(Expression color,
Expression width,
Expression opacity)
create a stroke with color, width and opacity supplied |
Style |
createStyle()
create a new default style |
Style |
createStyle(java.lang.String featureTypeStyleName,
Symbolizer symbolizer)
create a new style |
Style |
createStyle(java.lang.String featureTypeStyleName,
Symbolizer symbolizer,
double minScaleDenominator,
double maxScaleDenominator)
create a new style |
Style |
createStyle(Symbolizer symbolizer)
create a new style |
Style |
createStyle(Symbolizer symbolizer,
double minScaleDenominator,
double maxScaleDenominator)
create a new style |
TextSymbolizer |
createTextSymbolizer()
Creates a default text symbolizer. |
TextSymbolizer |
createTextSymbolizer(java.awt.Color color,
Font[] fonts,
java.lang.String attributeName)
create a textsymbolizer |
TextSymbolizer |
createTextSymbolizer(java.awt.Color color,
Font font,
java.lang.String attributeName)
create a textsymbolizer |
TextSymbolizer |
createTextSymbolizer(Fill fill,
Font[] fonts,
Halo halo,
Expression label,
LabelPlacement labelPlacement,
java.lang.String geometryPropertyName)
create a text symbolizer |
FilterFactory |
getFilterFactory()
getter for filterFactory |
StyleFactory |
getStyleFactory()
getter for StyleFactory |
java.lang.String[] |
getWellKnownMarkNames()
Returns the array of all the well known mark names |
Expression |
literalExpression(double value)
create a literal expression representing the value |
Expression |
literalExpression(int value)
create a literal expression representing the value |
Expression |
literalExpression(java.lang.Object value)
create a literal expression representing the value |
Expression |
literalExpression(java.lang.String value)
create a literal expression representing the value |
void |
setFilterFactory(FilterFactory factory)
Documented setter injection, StyleBuilder uses a StyleFactory for creation. |
void |
setStyleFactory(StyleFactory factory)
Documented setter injection, StyleBuilder uses a StyleFactory for creation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String LINE_JOIN_MITRE
public static final java.lang.String LINE_JOIN_ROUND
public static final java.lang.String LINE_JOIN_BEVEL
public static final java.lang.String LINE_CAP_BUTT
public static final java.lang.String LINE_CAP_ROUND
public static final java.lang.String LINE_CAP_SQUARE
public static final java.lang.String MARK_SQUARE
public static final java.lang.String MARK_CIRCLE
public static final java.lang.String MARK_TRIANGLE
public static final java.lang.String MARK_STAR
public static final java.lang.String MARK_CROSS
public static final java.lang.String MARK_ARROW
public static final java.lang.String MARK_X
public static final java.lang.String FONT_STYLE_NORMAL
public static final java.lang.String FONT_STYLE_ITALIC
public static final java.lang.String FONT_STYLE_OBLIQUE
public static final java.lang.String FONT_WEIGHT_NORMAL
public static final java.lang.String FONT_WEIGHT_BOLD
| Constructor Detail |
public StyleBuilder()
public StyleBuilder(StyleFactory styleFactory)
styleFactory - the StyleFactory to use in building Stylespublic StyleBuilder(FilterFactory filterFactory)
filterFactory - Use this FilterFactory to build the style
public StyleBuilder(StyleFactory styleFactory,
FilterFactory filterFactory)
styleFactory - the StyleFactory to usefilterFactory - the FilterFactory to use| Method Detail |
public void setStyleFactory(StyleFactory factory)
factory - public StyleFactory getStyleFactory()
public void setFilterFactory(FilterFactory factory)
factory - public FilterFactory getFilterFactory()
public Stroke createStroke()
public Stroke createStroke(double width)
width - the width of the line
public Stroke createStroke(java.awt.Color color)
color - the color of the line
public Stroke createStroke(java.awt.Color color,
double width)
color - the color of the linewidth - the width of the line
public Stroke createStroke(java.awt.Color color,
double width,
java.lang.String lineJoin,
java.lang.String lineCap)
color - the color of the linewidth - the width of the linelineJoin - the type of join to be used at points along the linelineCap - the type of cap to be used at the end of the line
public Stroke createStroke(java.awt.Color color,
double width,
float[] dashArray)
color - the color of the linewidth - the width of the linedashArray - an array of floats describing the length of line and spaces
public Stroke createStroke(Expression color,
Expression width)
color - an Expression representing the color of the linewidth - an Expression representing the width of the line
public Stroke createStroke(java.awt.Color color,
double width,
double opacity)
color - the color of the linewidth - the width of the lineopacity - the opacity or see throughness of the line, 0 - is transparent, 1 is
completely drawn
public Stroke createStroke(Expression color,
Expression width,
Expression opacity)
color - an Expression representing the color of the linewidth - an Expression representing the width of the lineopacity - an Expression representing opacity the opacity or see throughness of
the line, 0 - is transparent, 1 is completely drawn
public Fill createFill()
public Fill createFill(java.awt.Color fillColor)
fillColor - the color of the fill
public Fill createFill(Expression fillColor)
fillColor - an Expression representing the color of the fill
public Fill createFill(java.awt.Color fillColor,
double opacity)
fillColor - the color to fill withopacity - the opacity of the fill 0 - transparent, 1 - completly filled
public Fill createFill(Expression color,
Expression opacity)
color - an expression representing the color to fill withopacity - an expression representing the opacity of the fill 0 - transparent, 1 -
completly filled
public Fill createFill(java.awt.Color color,
java.awt.Color backgroundColor,
double opacity,
Graphic fill)
color - the foreground colorbackgroundColor - the background coloropacity - the opacity of the fillfill - the graphic object to use to fill the fill
public Fill createFill(Expression color,
Expression backgroundColor,
Expression opacity,
Graphic fill)
color - an Expression representing the foreground colorbackgroundColor - an Expression representing the background coloropacity - an Expression representing the opacity of the fillfill - the graphic object to use to fill the fill
public java.lang.String[] getWellKnownMarkNames()
public Mark createMark(java.lang.String wellKnownName)
wellKnownName - the wellknown name of the mark
public Mark createMark(java.lang.String wellKnownName,
java.awt.Color fillColor,
java.awt.Color borderColor,
double borderWidth)
wellKnownName - the well known name of the markfillColor - the color of the markborderColor - the outline color of the markborderWidth - the width of the outline
public Mark createMark(java.lang.String wellKnownName,
java.awt.Color borderColor,
double borderWidth)
wellKnownName - the well known name of the markborderColor - the outline colorborderWidth - the outline width
public Mark createMark(java.lang.String wellKnownName,
java.awt.Color fillColor)
wellKnownName - the well known name of the markfillColor - the color of the mark
public Mark createMark(java.lang.String wellKnownName,
Fill fill,
Stroke stroke)
wellKnownName - the well known name of the markfill - the fill to usestroke - the stroke to use
public Mark createMark(Expression wellKnownName,
Fill fill,
Stroke stroke)
wellKnownName - an Expression representing the well known name of the markfill - the fill to usestroke - the stroke to use
public ExternalGraphic createExternalGraphic(java.lang.String uri,
java.lang.String format)
uri - the uri of the imageformat - mime type of the image
public ExternalGraphic createExternalGraphic(java.net.URL url,
java.lang.String format)
url - the url of the imageformat - mime type of the image
public Graphic createGraphic()
public Graphic createGraphic(ExternalGraphic externalGraphic,
Mark mark,
Symbol symbol)
externalGraphic - an external graphic to use if displayablemark - a mark to usesymbol - a symbol to use
public Graphic createGraphic(ExternalGraphic externalGraphic,
Mark mark,
Symbol symbol,
double opacity,
double size,
double rotation)
externalGraphic - an external graphic to use if displayablemark - a mark to usesymbol - a symbol to useopacity - - the opacity of the graphicsize - - the size of the graphicrotation - - the rotation from the top of the page of the graphic
public Graphic createGraphic(ExternalGraphic[] externalGraphics,
Mark[] marks,
Symbol[] symbols,
double opacity,
double size,
double rotation)
externalGraphics - an array of external graphics to use if displayablemarks - an array of marks to usesymbols - an array of symbols to useopacity - - the opacity of the graphicsize - - the size of the graphicrotation - - the rotation from the top of the page of the graphic
public Graphic createGraphic(ExternalGraphic[] externalGraphics,
Mark[] marks,
Symbol[] symbols,
Expression opacity,
Expression size,
Expression rotation)
externalGraphics - an array of external graphics to use if displayablemarks - an array of marks to usesymbols - an array of symbols to useopacity - - an Expression representing the opacity of the graphicsize - - an Expression representing the size of the graphicrotation - - an Expression representing the rotation from the top of the page of the
graphic
public AnchorPoint createAnchorPoint(double x,
double y)
x - - the x coordinate of the anchory - - the y coordinate of the anchor
public AnchorPoint createAnchorPoint(Expression x,
Expression y)
x - - an Expression representing the x coordinate of the anchory - - an Expression representing the y coordinate of the anchor
public Displacement createDisplacement(double x,
double y)
x - - the x displacementy - - the y displacement
public Displacement createDisplacement(Expression x,
Expression y)
x - - an Expression representing the x displacementy - - an Expression representing the y displacement
public PointPlacement createPointPlacement()
public PointPlacement createPointPlacement(double anchorX,
double anchorY,
double rotation)
anchorX - - the X coordinateanchorY - - the Y coordinaterotation - - the rotaion of the label
public PointPlacement createPointPlacement(double anchorX,
double anchorY,
double displacementX,
double displacementY,
double rotation)
anchorX - - the X coordinateanchorY - - the Y coordinatedisplacementX - - the X distance from the anchordisplacementY - - the Y distance from the anchorrotation - - the rotaion of the label
public PointPlacement createPointPlacement(AnchorPoint anchorPoint,
Displacement displacement,
Expression rotation)
anchorPoint - - the anchor point of the labeldisplacement - - the displacement of the labelrotation - - an Expresson representing the rotation of the label
public LinePlacement createLinePlacement(double offset)
offset - - the distance between the line and the label
public LinePlacement createLinePlacement(Expression offset)
offset - - an Expression representing the distance between the line and the label
public Font createFont(java.awt.Font font)
font - - the font to be converted
public Font createFont(java.lang.String fontFamily,
double fontSize)
fontFamily - - the font familyfontSize - - the size of the font in points
public Font createFont(java.lang.String fontFamily,
boolean italic,
boolean bold,
double fontSize)
fontFamily - - the font familyitalic - - should the font be italic?bold - - should the font be bold?fontSize - - the size of the font in points
public Font createFont(Expression fontFamily,
Expression fontStyle,
Expression fontWeight,
Expression fontSize)
fontFamily - - Expression representing Font familyfontStyle - - Expression representing Font stylefontWeight - - Expression representing Font weightfontSize - - Expression representing Font size
public Halo createHalo()
public Halo createHalo(java.awt.Color color,
double radius)
color - - the color of the haloradius - - the width of the halo
public Halo createHalo(java.awt.Color color,
double opacity,
double radius)
color - - the color of the haloopacity - - the opacity of the halo fill 0 - transparent 1 - solidradius - - the width of the halo
public Halo createHalo(Fill fill,
double radius)
fill - - the fill of the haloradius - - the width of the halo
public Halo createHalo(Fill fill,
Expression radius)
fill - - the fill of the haloradius - - an Expression representing the width of the halo
public LineSymbolizer createLineSymbolizer()
public LineSymbolizer createLineSymbolizer(double width)
width - the width of the line
public LineSymbolizer createLineSymbolizer(java.awt.Color color)
color - - the color of the line
public LineSymbolizer createLineSymbolizer(java.awt.Color color,
double width)
color - - the color of the linewidth - - the width of the line
public LineSymbolizer createLineSymbolizer(java.awt.Color color,
double width,
java.lang.String geometryPropertyName)
color - - the color of the linewidth - - the width of the linegeometryPropertyName - - the name of the geometry to be drawn
public LineSymbolizer createLineSymbolizer(Stroke stroke)
stroke - - the stroke to be used to draw the line
public LineSymbolizer createLineSymbolizer(Stroke stroke,
java.lang.String geometryPropertyName)
stroke - - the stroke to be used to draw the linegeometryPropertyName - - the name of the geometry to be drawn
public PolygonSymbolizer createPolygonSymbolizer()
public PolygonSymbolizer createPolygonSymbolizer(java.awt.Color fillColor)
fillColor - - the color to fill the polygon
public PolygonSymbolizer createPolygonSymbolizer(java.awt.Color fillColor,
java.awt.Color borderColor,
double borderWidth)
fillColor - - the color to fill the polygonborderColor - - the outline color of the polygonborderWidth - - the width of the outline
public PolygonSymbolizer createPolygonSymbolizer(java.awt.Color borderColor,
double borderWidth)
borderColor - - the outline color of the polygonborderWidth - - the width of the outline
public PolygonSymbolizer createPolygonSymbolizer(Stroke stroke,
Fill fill)
stroke - - the stroke to use to outline the polygonfill - - the fill to use to color the polygon
public PolygonSymbolizer createPolygonSymbolizer(Stroke stroke,
Fill fill,
java.lang.String geometryPropertyName)
stroke - - the stroke to use to outline the polygonfill - - the fill to use to color the polygongeometryPropertyName - - the name of the geometry to be drawn
public PointSymbolizer createPointSymbolizer()
public PointSymbolizer createPointSymbolizer(Graphic graphic)
graphic - - the graphic object to draw at the point
public PointSymbolizer createPointSymbolizer(Graphic graphic,
java.lang.String geometryPropertyName)
graphic - - the graphic object to draw at the pointgeometryPropertyName - - the name of the geometry to be drawn
public TextSymbolizer createTextSymbolizer()
public TextSymbolizer createTextSymbolizer(java.awt.Color color,
Font font,
java.lang.String attributeName)
throws IllegalFilterException
color - the color of the textfont - the font to useattributeName - the attribute to use for the label
IllegalFilterException - - if the attribute name does not exist
public TextSymbolizer createTextSymbolizer(java.awt.Color color,
Font[] fonts,
java.lang.String attributeName)
throws IllegalFilterException
color - the color of the textfonts - an array of fonts to use from the first to lastattributeName - the attribute to use for the label
IllegalFilterException - - if the attribute name does not exist
public TextSymbolizer createStaticTextSymbolizer(java.awt.Color color,
Font font,
java.lang.String label)
color - the color of the textfont - the font to uselabel - the label to use
public TextSymbolizer createStaticTextSymbolizer(java.awt.Color color,
Font[] fonts,
java.lang.String label)
color - the color of the textfonts - an array of fonts to use from the first to lastlabel - the label to use
public TextSymbolizer createTextSymbolizer(Fill fill,
Font[] fonts,
Halo halo,
Expression label,
LabelPlacement labelPlacement,
java.lang.String geometryPropertyName)
fill - - the fill to color the textfonts - - an array of fonts to use from the first to lasthalo - - the halo to be applied to the textlabel - - Expression representing the labellabelPlacement - - where to place the labelgeometryPropertyName - - the name of the geometry to use
public FeatureTypeStyle createFeatureTypeStyle(Symbolizer symbolizer)
symbolizer - - the symbolizer to use
public Rule createRule(Symbolizer symbolizer)
symbolizer - - the symbolizer to use
public Rule createRule(Symbolizer[] symbolizers)
symbolizers - - an array of symbolizers to use
public Rule createRule(Symbolizer symbolizer,
double minScaleDenominator,
double maxScaleDenominator)
symbolizer - - the symbolizer to useminScaleDenominator - - the minimim scale to draw the feature atmaxScaleDenominator - - the maximum scale to draw the feature at
public Rule createRule(Symbolizer[] symbolizers,
double minScaleDenominator,
double maxScaleDenominator)
symbolizers - - an array of symbolizers to useminScaleDenominator - - the minimim scale to draw the feature atmaxScaleDenominator - - the maximum scale to draw the feature at
public FeatureTypeStyle createFeatureTypeStyle(Symbolizer symbolizer,
double minScaleDenominator,
double maxScaleDenominator)
symbolizer - - the symbolizer to useminScaleDenominator - - the minimim scale to draw the feature atmaxScaleDenominator - - the maximum scale to draw the feature at
public FeatureTypeStyle createFeatureTypeStyle(Symbolizer[] symbolizers,
double minScaleDenominator,
double maxScaleDenominator)
symbolizers - - an array of symbolizers to useminScaleDenominator - - the minimim scale to draw the feature atmaxScaleDenominator - - the maximum scale to draw the feature at
public FeatureTypeStyle createFeatureTypeStyle(java.lang.String featureTypeName,
Symbolizer symbolizer)
featureTypeName - - name of the feature typesymbolizer - - the symbolizer to use
public FeatureTypeStyle createFeatureTypeStyle(java.lang.String featureTypeName,
Symbolizer[] symbolizers)
featureTypeName - - name of the feature typesymbolizers - - an array of symbolizers to use
public FeatureTypeStyle createFeatureTypeStyle(java.lang.String featureTypeName,
Symbolizer symbolizer,
double minScaleDenominator,
double maxScaleDenominator)
featureTypeName - - name of the feature typesymbolizer - - the symbolizer to useminScaleDenominator - - the minimim scale to draw the feature atmaxScaleDenominator - - the maximum scale to draw the feature at
public FeatureTypeStyle createFeatureTypeStyle(java.lang.String featureTypeName,
Symbolizer[] symbolizers,
double minScaleDenominator,
double maxScaleDenominator)
featureTypeName - - name of the feature typesymbolizers - - an array of symbolizers to useminScaleDenominator - - the minimim scale to draw the feature atmaxScaleDenominator - - the maximum scale to draw the feature at
public FeatureTypeStyle createFeatureTypeStyle(java.lang.String featureTypeName,
Rule r)
featureTypeName - - name of the feature typer - - the rule that driver this feature typ style
public FeatureTypeStyle createFeatureTypeStyle(java.lang.String featureTypeName,
Rule[] rules)
featureTypeName - - name of the feature typerules - - the rules that make up the FeatureTypeStyle
public Style createStyle(Symbolizer symbolizer)
symbolizer - - the symbolizer to use
public Style createStyle(Symbolizer symbolizer,
double minScaleDenominator,
double maxScaleDenominator)
symbolizer - - the symbolizer to useminScaleDenominator - - the minimim scale to draw the feature atmaxScaleDenominator - - the maximum scale to draw the feature at
public Style createStyle(java.lang.String featureTypeStyleName,
Symbolizer symbolizer)
featureTypeStyleName - - the name to use for the feature type stylesymbolizer - - the symbolizer to use
public Style createStyle(java.lang.String featureTypeStyleName,
Symbolizer symbolizer,
double minScaleDenominator,
double maxScaleDenominator)
featureTypeStyleName - - the name to use for the feature type stylesymbolizer - - the symbolizer to useminScaleDenominator - - the minimim scale to draw the feature atmaxScaleDenominator - - the maximum scale to draw the feature at
public Style createStyle()
public Expression colorExpression(java.awt.Color color)
color - the color to encode
public Expression literalExpression(double value)
value - the value to be encoded
public Expression literalExpression(int value)
value - the value to be encoded
public Expression literalExpression(java.lang.String value)
value - the value to be encoded
public Expression literalExpression(java.lang.Object value)
throws IllegalFilterException
value - the value to be encoded
IllegalFilterException - DOCUMENT ME!
public Expression attributeExpression(java.lang.String attributeName)
throws IllegalFilterException
attributeName - the attribute to use
IllegalFilterException - if the attribute name does not exist
public Style buildClassifiedStyle(FeatureCollection fc,
java.lang.String name,
java.lang.String[] colors,
FeatureType schema)
throws IllegalFilterException
fc - DOCUMENT ME!name - DOCUMENT ME!colors - DOCUMENT ME!schema - DOCUMENT ME!
IllegalFilterException - DOCUMENT ME!public RasterSymbolizer createRasterSymbolizer()
public RasterSymbolizer createRasterSymbolizer(ColorMap colorMap,
double opacity)
colorMap - The symbolizer color mapopacity - The whole layer opacity
public ColorMap createColorMap(java.lang.String[] labels,
double[] quantities,
java.awt.Color[] colors,
int type)
quantities - The values that begin a category, or break points in a ramp,
or isolated values, according to the type of color map specified by Typecolors - The colors that will be associated to the categories, break points, or isolated valuestype - Either @link ColorMap#TYPE_RAMP, @link ColorMap#TYPE_INTERVALS or @link ColorMap#TYPE_VALUES
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||