Java Doc for StyleBuilder.java in  » GIS » GeoTools-2.4.1 » org » geotools » styling » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.styling 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.styling.StyleBuilder

StyleBuilder
public class StyleBuilder (Code)
An utility class designed to ease style building by convinience methods.
author:
   aaime

Inner Class :public class EqualClasses

Field Summary
final public static  StringFONT_STYLE_ITALIC
    
final public static  StringFONT_STYLE_NORMAL
    
final public static  StringFONT_STYLE_OBLIQUE
    
final public static  StringFONT_WEIGHT_BOLD
    
final public static  StringFONT_WEIGHT_NORMAL
    
final public static  StringLINE_CAP_BUTT
    
final public static  StringLINE_CAP_ROUND
    
final public static  StringLINE_CAP_SQUARE
    
final public static  StringLINE_JOIN_BEVEL
    
final public static  StringLINE_JOIN_MITRE
    
final public static  StringLINE_JOIN_ROUND
    
final public static  StringMARK_ARROW
    
final public static  StringMARK_CIRCLE
    
final public static  StringMARK_CROSS
    
final public static  StringMARK_SQUARE
    
final public static  StringMARK_STAR
    
final public static  StringMARK_TRIANGLE
    
final public static  StringMARK_X
    

Constructor Summary
public  StyleBuilder()
    
public  StyleBuilder(StyleFactory styleFactory)
    
public  StyleBuilder(FilterFactory filterFactory)
    
public  StyleBuilder(StyleFactory styleFactory, FilterFactory filterFactory)
    

Method Summary
public  ExpressionattributeExpression(String attributeName)
    
public  StylebuildClassifiedStyle(FeatureCollection fc, String name, String[] colors, FeatureType schema)
    
public  ExpressioncolorExpression(Color color)
    
public  AnchorPointcreateAnchorPoint(double x, double y)
    
public  AnchorPointcreateAnchorPoint(Expression x, Expression y)
    
public  ColorMapcreateColorMap(String[] labels, double[] quantities, Color[] colors, int type)
     Creates a color map based on fixed quantities and colors.
public  DisplacementcreateDisplacement(double x, double y)
    
public  DisplacementcreateDisplacement(Expression x, Expression y)
    
public  ExternalGraphiccreateExternalGraphic(String uri, String format)
    
public  ExternalGraphiccreateExternalGraphic(java.net.URL url, String format)
    
public  FeatureTypeStylecreateFeatureTypeStyle(Symbolizer symbolizer)
    
public  FeatureTypeStylecreateFeatureTypeStyle(Symbolizer symbolizer, double minScaleDenominator, double maxScaleDenominator)
    
public  FeatureTypeStylecreateFeatureTypeStyle(Symbolizer[] symbolizers, double minScaleDenominator, double maxScaleDenominator)
    
public  FeatureTypeStylecreateFeatureTypeStyle(String featureTypeName, Symbolizer symbolizer)
    
public  FeatureTypeStylecreateFeatureTypeStyle(String featureTypeName, Symbolizer[] symbolizers)
    
public  FeatureTypeStylecreateFeatureTypeStyle(String typeName, Symbolizer symbolizer, double minScaleDenominator, double maxScaleDenominator)
    
public  FeatureTypeStylecreateFeatureTypeStyle(String typeName, Symbolizer[] symbolizers, double minScaleDenominator, double maxScaleDenominator)
    
public  FeatureTypeStylecreateFeatureTypeStyle(String typeName, Rule r)
    
public  FeatureTypeStylecreateFeatureTypeStyle(String typeName, Rule[] rules)
    
public  FillcreateFill()
    
public  FillcreateFill(Color fillColor)
    
public  FillcreateFill(Expression fillColor)
    
public  FillcreateFill(Color fillColor, double opacity)
    
public  FillcreateFill(Expression color, Expression opacity)
    
public  FillcreateFill(Color color, Color backgroundColor, double opacity, Graphic fill)
    
public  FillcreateFill(Expression color, Expression backgroundColor, Expression opacity, Graphic fill)
    
public  FontcreateFont(java.awt.Font font)
    
public  FontcreateFont(String fontFamily, double fontSize)
    
public  FontcreateFont(String fontFamily, boolean italic, boolean bold, double fontSize)
    
public  FontcreateFont(Expression fontFamily, Expression fontStyle, Expression fontWeight, Expression fontSize)
    
public  GraphiccreateGraphic()
    
public  GraphiccreateGraphic(ExternalGraphic externalGraphic, Mark mark, Symbol symbol)
    
public  GraphiccreateGraphic(ExternalGraphic externalGraphic, Mark mark, Symbol symbol, double opacity, double size, double rotation)
    
public  GraphiccreateGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, double opacity, double size, double rotation)
    
public  GraphiccreateGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, Expression opacity, Expression size, Expression rotation)
    
public  HalocreateHalo()
    
public  HalocreateHalo(Color color, double radius)
    
public  HalocreateHalo(Color color, double opacity, double radius)
    
public  HalocreateHalo(Fill fill, double radius)
    
public  HalocreateHalo(Fill fill, Expression radius)
    
public  LinePlacementcreateLinePlacement(double offset)
    
public  LinePlacementcreateLinePlacement(Expression offset)
    
public  LineSymbolizercreateLineSymbolizer()
    
public  LineSymbolizercreateLineSymbolizer(double width)
    
public  LineSymbolizercreateLineSymbolizer(Color color)
    
public  LineSymbolizercreateLineSymbolizer(Color color, double width)
    
public  LineSymbolizercreateLineSymbolizer(Color color, double width, String geometryPropertyName)
    
public  LineSymbolizercreateLineSymbolizer(Stroke stroke)
    
public  LineSymbolizercreateLineSymbolizer(Stroke stroke, String geometryPropertyName)
    
public  MarkcreateMark(String wellKnownName)
    
public  MarkcreateMark(String wellKnownName, Color fillColor, Color borderColor, double borderWidth)
    
public  MarkcreateMark(String wellKnownName, Color borderColor, double borderWidth)
    
public  MarkcreateMark(String wellKnownName, Color fillColor)
    
public  MarkcreateMark(String wellKnownName, Fill fill, Stroke stroke)
    
public  MarkcreateMark(Expression wellKnownName, Fill fill, Stroke stroke)
    
public  PointPlacementcreatePointPlacement()
    
public  PointPlacementcreatePointPlacement(double anchorX, double anchorY, double rotation)
    
public  PointPlacementcreatePointPlacement(double anchorX, double anchorY, double displacementX, double displacementY, double rotation)
    
public  PointPlacementcreatePointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation)
    
public  PointSymbolizercreatePointSymbolizer()
    
public  PointSymbolizercreatePointSymbolizer(Graphic graphic)
    
public  PointSymbolizercreatePointSymbolizer(Graphic graphic, String geometryPropertyName)
    
public  PolygonSymbolizercreatePolygonSymbolizer()
    
public  PolygonSymbolizercreatePolygonSymbolizer(Color fillColor)
    
public  PolygonSymbolizercreatePolygonSymbolizer(Color fillColor, Color borderColor, double borderWidth)
    
public  PolygonSymbolizercreatePolygonSymbolizer(Color borderColor, double borderWidth)
    
public  PolygonSymbolizercreatePolygonSymbolizer(Stroke stroke, Fill fill)
    
public  PolygonSymbolizercreatePolygonSymbolizer(Stroke stroke, Fill fill, String geometryPropertyName)
    
public  RasterSymbolizercreateRasterSymbolizer()
    
public  RasterSymbolizercreateRasterSymbolizer(ColorMap colorMap, double opacity)
    
public  RulecreateRule(Symbolizer symbolizer)
    
public  RulecreateRule(Symbolizer[] symbolizers)
    
public  RulecreateRule(Symbolizer symbolizer, double minScaleDenominator, double maxScaleDenominator)
    
public  RulecreateRule(Symbolizer[] symbolizers, double minScaleDenominator, double maxScaleDenominator)
    
public  TextSymbolizercreateStaticTextSymbolizer(Color color, Font font, String label)
    
public  TextSymbolizercreateStaticTextSymbolizer(Color color, Font[] fonts, String label)
    
public  StrokecreateStroke()
    
public  StrokecreateStroke(double width)
    
public  StrokecreateStroke(Color color)
    
public  StrokecreateStroke(Color color, double width)
    
public  StrokecreateStroke(Color color, double width, String lineJoin, String lineCap)
     create a stroke with color, width, linejoin type and lineCap type.
public  StrokecreateStroke(Color color, double width, float[] dashArray)
    
public  StrokecreateStroke(Expression color, Expression width)
    
public  StrokecreateStroke(Color color, double width, double opacity)
    
public  StrokecreateStroke(Expression color, Expression width, Expression opacity)
    
public  StylecreateStyle(Symbolizer symbolizer)
    
public  StylecreateStyle(Symbolizer symbolizer, double minScaleDenominator, double maxScaleDenominator)
    
public  StylecreateStyle(String typeName, Symbolizer symbolizer)
    
public  StylecreateStyle(String typeName, Symbolizer symbolizer, double minScaleDenominator, double maxScaleDenominator)
    
public  StylecreateStyle()
    
public  TextSymbolizercreateTextSymbolizer()
     Creates a default text symbolizer.
public  TextSymbolizercreateTextSymbolizer(Color color, Font font, String attributeName)
    
public  TextSymbolizercreateTextSymbolizer(Color color, Font[] fonts, String attributeName)
    
public  TextSymbolizercreateTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName)
    
public  FilterFactorygetFilterFactory()
    
public  StyleFactorygetStyleFactory()
    
public  String[]getWellKnownMarkNames()
    
public  ExpressionliteralExpression(double value)
    
public  ExpressionliteralExpression(int value)
    
public  ExpressionliteralExpression(String value)
    
public  ExpressionliteralExpression(Object value)
    
public  voidsetFilterFactory(FilterFactory factory)
     Documented setter injection, StyleBuilder uses a StyleFactory for creation.
public  voidsetStyleFactory(StyleFactory factory)
     Documented setter injection, StyleBuilder uses a StyleFactory for creation.

Field Detail
FONT_STYLE_ITALIC
final public static String FONT_STYLE_ITALIC(Code)



FONT_STYLE_NORMAL
final public static String FONT_STYLE_NORMAL(Code)



FONT_STYLE_OBLIQUE
final public static String FONT_STYLE_OBLIQUE(Code)



FONT_WEIGHT_BOLD
final public static String FONT_WEIGHT_BOLD(Code)



FONT_WEIGHT_NORMAL
final public static String FONT_WEIGHT_NORMAL(Code)



LINE_CAP_BUTT
final public static String LINE_CAP_BUTT(Code)



LINE_CAP_ROUND
final public static String LINE_CAP_ROUND(Code)



LINE_CAP_SQUARE
final public static String LINE_CAP_SQUARE(Code)



LINE_JOIN_BEVEL
final public static String LINE_JOIN_BEVEL(Code)



LINE_JOIN_MITRE
final public static String LINE_JOIN_MITRE(Code)



LINE_JOIN_ROUND
final public static String LINE_JOIN_ROUND(Code)



MARK_ARROW
final public static String MARK_ARROW(Code)



MARK_CIRCLE
final public static String MARK_CIRCLE(Code)



MARK_CROSS
final public static String MARK_CROSS(Code)



MARK_SQUARE
final public static String MARK_SQUARE(Code)



MARK_STAR
final public static String MARK_STAR(Code)



MARK_TRIANGLE
final public static String MARK_TRIANGLE(Code)



MARK_X
final public static String MARK_X(Code)




Constructor Detail
StyleBuilder
public StyleBuilder()(Code)
use the default StyleFactory and FilterFactory



StyleBuilder
public StyleBuilder(StyleFactory styleFactory)(Code)
Use the supplied StyleFactory when building styles
Parameters:
  styleFactory - the StyleFactory to use in building Styles



StyleBuilder
public StyleBuilder(FilterFactory filterFactory)(Code)
Use the supplied FilterFactory when building styles
Parameters:
  filterFactory - Use this FilterFactory to build the style



StyleBuilder
public StyleBuilder(StyleFactory styleFactory, FilterFactory filterFactory)(Code)
Use the supplied StyleFactory and FilterFactory when building styles
Parameters:
  styleFactory - the StyleFactory to use
Parameters:
  filterFactory - the FilterFactory to use




Method Detail
attributeExpression
public Expression attributeExpression(String attributeName) throws org.geotools.filter.IllegalFilterException(Code)
create an attribute expression
Parameters:
  attributeName - the attribute to use the new expression
throws:
  org.geotools.filter.IllegalFilterException - if the attribute name does not exist



buildClassifiedStyle
public Style buildClassifiedStyle(FeatureCollection fc, String name, String[] colors, FeatureType schema) throws IllegalFilterException(Code)
given a feature collection and an array of colours build a style with the given number of classes on the named column
Parameters:
  fc - DOCUMENT ME!
Parameters:
  name - DOCUMENT ME!
Parameters:
  colors - DOCUMENT ME!
Parameters:
  schema - DOCUMENT ME! DOCUMENT ME!
throws:
  IllegalFilterException - DOCUMENT ME!



colorExpression
public Expression colorExpression(Color color)(Code)
convert an awt color in to a literal expression representing the color
Parameters:
  color - the color to encode the expression



createAnchorPoint
public AnchorPoint createAnchorPoint(double x, double y)(Code)
wrapper round Stylefactory Method
Parameters:
  x - - the x coordinate of the anchor
Parameters:
  y - - the y coordinate of the anchor the AnchorPoint created



createAnchorPoint
public AnchorPoint createAnchorPoint(Expression x, Expression y)(Code)
wrapper round Stylefactory Method
Parameters:
  x - - an Expression representing the x coordinate of the anchor
Parameters:
  y - - an Expression representing the y coordinate of the anchor the AnchorPoint created



createColorMap
public ColorMap createColorMap(String[] labels, double[] quantities, Color[] colors, int type)(Code)
Creates a color map based on fixed quantities and colors.
Parameters:
  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 Type
Parameters:
  colors - The colors that will be associated to the categories, break points, or isolated values
Parameters:
  type - Either @link ColorMap#TYPE_RAMP, @link ColorMap#TYPE_INTERVALS or @link ColorMap#TYPE_VALUES



createDisplacement
public Displacement createDisplacement(double x, double y)(Code)
wrapper round Stylefactory Method
Parameters:
  x - - the x displacement
Parameters:
  y - - the y displacement the Displacement created



createDisplacement
public Displacement createDisplacement(Expression x, Expression y)(Code)
wrapper round Stylefactory Method
Parameters:
  x - - an Expression representing the x displacement
Parameters:
  y - - an Expression representing the y displacement the Displacement created



createExternalGraphic
public ExternalGraphic createExternalGraphic(String uri, String format)(Code)
wrapper for stylefactory method
Parameters:
  uri - the uri of the image
Parameters:
  format - mime type of the image the external graphic



createExternalGraphic
public ExternalGraphic createExternalGraphic(java.net.URL url, String format)(Code)
wrapper for stylefactory method
Parameters:
  url - the url of the image
Parameters:
  format - mime type of the image the external graphic



createFeatureTypeStyle
public FeatureTypeStyle createFeatureTypeStyle(Symbolizer symbolizer)(Code)
create a Feature type styler
Parameters:
  symbolizer - - the symbolizer to use the new feature type styler



createFeatureTypeStyle
public FeatureTypeStyle createFeatureTypeStyle(Symbolizer symbolizer, double minScaleDenominator, double maxScaleDenominator)(Code)
create a Feature type styler see the SLD Spec for more details of scaleDenominators
Parameters:
  symbolizer - - the symbolizer to use
Parameters:
  minScaleDenominator - - the minimim scale to draw the feature at
Parameters:
  maxScaleDenominator - - the maximum scale to draw the feature at the new feature type styler



createFeatureTypeStyle
public FeatureTypeStyle createFeatureTypeStyle(Symbolizer[] symbolizers, double minScaleDenominator, double maxScaleDenominator)(Code)
create a Feature type styler see the SLD Spec for more details of scaleDenominators
Parameters:
  symbolizers - - an array of symbolizers to use
Parameters:
  minScaleDenominator - - the minimim scale to draw the feature at
Parameters:
  maxScaleDenominator - - the maximum scale to draw the feature at the new feature type styler



createFeatureTypeStyle
public FeatureTypeStyle createFeatureTypeStyle(String featureTypeName, Symbolizer symbolizer)(Code)
create a Feature type styler
Parameters:
  featureTypeName - - name of the feature type
Parameters:
  symbolizer - - the symbolizer to use the new feature type styler



createFeatureTypeStyle
public FeatureTypeStyle createFeatureTypeStyle(String featureTypeName, Symbolizer[] symbolizers)(Code)
create a Feature type styler
Parameters:
  featureTypeName - - name of the feature type
Parameters:
  symbolizers - - an array of symbolizers to use the new feature type styler



createFeatureTypeStyle
public FeatureTypeStyle createFeatureTypeStyle(String typeName, Symbolizer symbolizer, double minScaleDenominator, double maxScaleDenominator)(Code)
create a Feature type styler see the SLD Spec for more details of scaleDenominators
Parameters:
  typeName - - The feature typeName you want to draw (use "Feature" as a wild card to match all)
Parameters:
  symbolizer - - the symbolizer to use
Parameters:
  minScaleDenominator - - the minimim scale to draw the feature at
Parameters:
  maxScaleDenominator - - the maximum scale to draw the feature at the new feature type styler



createFeatureTypeStyle
public FeatureTypeStyle createFeatureTypeStyle(String typeName, Symbolizer[] symbolizers, double minScaleDenominator, double maxScaleDenominator)(Code)
create a Feature type styler see the SLD Spec for more details of scaleDenominators
Parameters:
  typeName - - The feature typeName you want to draw (use "Feature" as a wild card to match all)
Parameters:
  symbolizers - - an array of symbolizers to use
Parameters:
  minScaleDenominator - - the minimim scale to draw the feature at
Parameters:
  maxScaleDenominator - - the maximum scale to draw the feature at the new feature type styler



createFeatureTypeStyle
public FeatureTypeStyle createFeatureTypeStyle(String typeName, Rule r)(Code)
create a Feature type styler
Parameters:
  typeName - - The feature typeName you want to draw (use "Feature" as a wild card to match all)
Parameters:
  r - - the rule that driver this feature typ style the new feature type styler



createFeatureTypeStyle
public FeatureTypeStyle createFeatureTypeStyle(String typeName, Rule[] rules)(Code)
create a Feature type styler see the SLD Spec for more details of scaleDenominators
Parameters:
  typeName - - The feature typeName you want to draw (use "Feature" as a wild card to match all)
Parameters:
  rules - - the rules that make up the FeatureTypeStyle the new feature type styler



createFill
public Fill createFill()(Code)
create a default fill 50% gray the fill created



createFill
public Fill createFill(Color fillColor)(Code)
create a fill of color
Parameters:
  fillColor - the color of the fill the fill created



createFill
public Fill createFill(Expression fillColor)(Code)
create a fill of color
Parameters:
  fillColor - an Expression representing the color of the fill the fill constructed



createFill
public Fill createFill(Color fillColor, double opacity)(Code)
create a fill with the supplied color and opacity
Parameters:
  fillColor - the color to fill with
Parameters:
  opacity - the opacity of the fill 0 - transparent, 1 - completly filled the fill created



createFill
public Fill createFill(Expression color, Expression opacity)(Code)
create a fill with the supplied color and opacity
Parameters:
  color - an expression representing the color to fill with
Parameters:
  opacity - an expression representing the opacity of the fill 0 - transparent, 1 -completly filled the fill created



createFill
public Fill createFill(Color color, Color backgroundColor, double opacity, Graphic fill)(Code)
create a fill with color, background color and opacity supplied and uses the graphic supplied for the fill
Parameters:
  color - the foreground color
Parameters:
  backgroundColor - the background color
Parameters:
  opacity - the opacity of the fill
Parameters:
  fill - the graphic object to use to fill the fill the fill created



createFill
public Fill createFill(Expression color, Expression backgroundColor, Expression opacity, Graphic fill)(Code)
create a fill with color, background color and opacity supplied and uses the graphic supplied for the fill
Parameters:
  color - an Expression representing the foreground color
Parameters:
  backgroundColor - an Expression representing the background color
Parameters:
  opacity - an Expression representing the opacity of the fill
Parameters:
  fill - the graphic object to use to fill the fill the fill created



createFont
public Font createFont(java.awt.Font font)(Code)
create a geotools font object from a java font
Parameters:
  font - - the font to be converted - the geotools font



createFont
public Font createFont(String fontFamily, double fontSize)(Code)
create font of supplied family and size
Parameters:
  fontFamily - - the font family
Parameters:
  fontSize - - the size of the font in points the font object created



createFont
public Font createFont(String fontFamily, boolean italic, boolean bold, double fontSize)(Code)
create font of supplied family, size and weight/style
Parameters:
  fontFamily - - the font family
Parameters:
  italic - - should the font be italic?
Parameters:
  bold - - should the font be bold?
Parameters:
  fontSize - - the size of the font in points the new font object



createFont
public Font createFont(Expression fontFamily, Expression fontStyle, Expression fontWeight, Expression fontSize)(Code)
wrapper round StyleFactory method
Parameters:
  fontFamily - - Expression representing Font family
Parameters:
  fontStyle - - Expression representing Font style
Parameters:
  fontWeight - - Expression representing Font weight
Parameters:
  fontSize - - Expression representing Font size the new font object



createGraphic
public Graphic createGraphic()(Code)
Creates the default graphic object the graphic object



createGraphic
public Graphic createGraphic(ExternalGraphic externalGraphic, Mark mark, Symbol symbol)(Code)
creates a graphic object
Parameters:
  externalGraphic - an external graphic to use if displayable
Parameters:
  mark - a mark to use
Parameters:
  symbol - a symbol to use the graphic object



createGraphic
public Graphic createGraphic(ExternalGraphic externalGraphic, Mark mark, Symbol symbol, double opacity, double size, double rotation)(Code)
creates a graphic object
Parameters:
  externalGraphic - an external graphic to use if displayable
Parameters:
  mark - a mark to use
Parameters:
  symbol - a symbol to use
Parameters:
  opacity - - the opacity of the graphic
Parameters:
  size - - the size of the graphic
Parameters:
  rotation - - the rotation from the top of the page of the graphic the graphic created



createGraphic
public Graphic createGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, double opacity, double size, double rotation)(Code)
creates a graphic object
Parameters:
  externalGraphics - an array of external graphics to use if displayable
Parameters:
  marks - an array of marks to use
Parameters:
  symbols - an array of symbols to use
Parameters:
  opacity - - the opacity of the graphic
Parameters:
  size - - the size of the graphic
Parameters:
  rotation - - the rotation from the top of the page of the graphic the graphic created



createGraphic
public Graphic createGraphic(ExternalGraphic[] externalGraphics, Mark[] marks, Symbol[] symbols, Expression opacity, Expression size, Expression rotation)(Code)
creates a graphic object
Parameters:
  externalGraphics - an array of external graphics to use if displayable
Parameters:
  marks - an array of marks to use
Parameters:
  symbols - an array of symbols to use
Parameters:
  opacity - - an Expression representing the opacity of the graphic
Parameters:
  size - - an Expression representing the size of the graphic
Parameters:
  rotation - - an Expression representing the rotation from the top of the page of thegraphic the graphic created



createHalo
public Halo createHalo()(Code)
wrapper round StyleFactory method to create default halo the new halo



createHalo
public Halo createHalo(Color color, double radius)(Code)
wrapper round StyleFactory method to create halo
Parameters:
  color - - the color of the halo
Parameters:
  radius - - the width of the halo the new halo



createHalo
public Halo createHalo(Color color, double opacity, double radius)(Code)
wrapper round StyleFactory method to create halo
Parameters:
  color - - the color of the halo
Parameters:
  opacity - - the opacity of the halo fill 0 - transparent 1 - solid
Parameters:
  radius - - the width of the halo the new halo



createHalo
public Halo createHalo(Fill fill, double radius)(Code)
wrapper round StyleFactory method to create halo
Parameters:
  fill - - the fill of the halo
Parameters:
  radius - - the width of the halo the new halo



createHalo
public Halo createHalo(Fill fill, Expression radius)(Code)
wrapper round StyleFactory method to create halo
Parameters:
  fill - - the fill of the halo
Parameters:
  radius - - an Expression representing the width of the halo the new halo



createLinePlacement
public LinePlacement createLinePlacement(double offset)(Code)
wrapper round Stylefactory Method
Parameters:
  offset - - the distance between the line and the label the LinePlacement created



createLinePlacement
public LinePlacement createLinePlacement(Expression offset)(Code)
wrapper round Stylefactory Method
Parameters:
  offset - - an Expression representing the distance between the line and the label the LinePlacement created



createLineSymbolizer
public LineSymbolizer createLineSymbolizer()(Code)
create a default line symboliser the new line symbolizer



createLineSymbolizer
public LineSymbolizer createLineSymbolizer(double width)(Code)
create a new line symbolizer
Parameters:
  width - the width of the line the new line symbolizer



createLineSymbolizer
public LineSymbolizer createLineSymbolizer(Color color)(Code)
create a LineSymbolizer
Parameters:
  color - - the color of the line the new line symbolizer



createLineSymbolizer
public LineSymbolizer createLineSymbolizer(Color color, double width)(Code)
create a LineSymbolizer
Parameters:
  color - - the color of the line
Parameters:
  width - - the width of the line the new line symbolizer



createLineSymbolizer
public LineSymbolizer createLineSymbolizer(Color color, double width, String geometryPropertyName)(Code)
create a LineSymbolizer
Parameters:
  color - - the color of the line
Parameters:
  width - - the width of the line
Parameters:
  geometryPropertyName - - the name of the geometry to be drawn the new line symbolizer



createLineSymbolizer
public LineSymbolizer createLineSymbolizer(Stroke stroke)(Code)
create a LineSymbolizer
Parameters:
  stroke - - the stroke to be used to draw the line the new line symbolizer



createLineSymbolizer
public LineSymbolizer createLineSymbolizer(Stroke stroke, String geometryPropertyName)(Code)
create a LineSymbolizer
Parameters:
  stroke - - the stroke to be used to draw the line
Parameters:
  geometryPropertyName - - the name of the geometry to be drawn the new line symbolizer



createMark
public Mark createMark(String wellKnownName)(Code)
create the named mark
Parameters:
  wellKnownName - the wellknown name of the mark the mark created



createMark
public Mark createMark(String wellKnownName, Color fillColor, Color borderColor, double borderWidth)(Code)
create the named mark with the colors etc supplied
Parameters:
  wellKnownName - the well known name of the mark
Parameters:
  fillColor - the color of the mark
Parameters:
  borderColor - the outline color of the mark
Parameters:
  borderWidth - the width of the outline the mark created



createMark
public Mark createMark(String wellKnownName, Color borderColor, double borderWidth)(Code)
create a mark with default fill (50% gray) and the supplied outline
Parameters:
  wellKnownName - the well known name of the mark
Parameters:
  borderColor - the outline color
Parameters:
  borderWidth - the outline width the mark created



createMark
public Mark createMark(String wellKnownName, Color fillColor)(Code)
create a mark of the supplied color and a default outline (black)
Parameters:
  wellKnownName - the well known name of the mark
Parameters:
  fillColor - the color of the mark the created mark



createMark
public Mark createMark(String wellKnownName, Fill fill, Stroke stroke)(Code)
create a mark with the supplied fill and stroke
Parameters:
  wellKnownName - the well known name of the mark
Parameters:
  fill - the fill to use
Parameters:
  stroke - the stroke to use the mark created



createMark
public Mark createMark(Expression wellKnownName, Fill fill, Stroke stroke)(Code)
create a mark with the supplied fill and stroke
Parameters:
  wellKnownName - an Expression representing the well known name of the mark
Parameters:
  fill - the fill to use
Parameters:
  stroke - the stroke to use the mark created



createPointPlacement
public PointPlacement createPointPlacement()(Code)
wrapper round Stylefactory Method the default pointplacement



createPointPlacement
public PointPlacement createPointPlacement(double anchorX, double anchorY, double rotation)(Code)
wrapper round Stylefactory Method
Parameters:
  anchorX - - the X coordinate
Parameters:
  anchorY - - the Y coordinate
Parameters:
  rotation - - the rotaion of the label the pointplacement created



createPointPlacement
public PointPlacement createPointPlacement(double anchorX, double anchorY, double displacementX, double displacementY, double rotation)(Code)
wrapper round Stylefactory Method
Parameters:
  anchorX - - the X coordinate
Parameters:
  anchorY - - the Y coordinate
Parameters:
  displacementX - - the X distance from the anchor
Parameters:
  displacementY - - the Y distance from the anchor
Parameters:
  rotation - - the rotaion of the label the pointplacement created



createPointPlacement
public PointPlacement createPointPlacement(AnchorPoint anchorPoint, Displacement displacement, Expression rotation)(Code)
wrapper round Stylefactory Method
Parameters:
  anchorPoint - - the anchor point of the label
Parameters:
  displacement - - the displacement of the label
Parameters:
  rotation - - an Expresson representing the rotation of the label the pointplacement created



createPointSymbolizer
public PointSymbolizer createPointSymbolizer()(Code)
create a default point symbolizer the new point symbolizer



createPointSymbolizer
public PointSymbolizer createPointSymbolizer(Graphic graphic)(Code)
create a point symbolizer
Parameters:
  graphic - - the graphic object to draw at the point the new point symbolizer



createPointSymbolizer
public PointSymbolizer createPointSymbolizer(Graphic graphic, String geometryPropertyName)(Code)
create a point symbolizer
Parameters:
  graphic - - the graphic object to draw at the point
Parameters:
  geometryPropertyName - - the name of the geometry to be drawn the new point symbolizer



createPolygonSymbolizer
public PolygonSymbolizer createPolygonSymbolizer()(Code)
create a default polygon symbolizer the new polygon symbolizer



createPolygonSymbolizer
public PolygonSymbolizer createPolygonSymbolizer(Color fillColor)(Code)
create a polygon symbolizer
Parameters:
  fillColor - - the color to fill the polygon the new polygon symbolizer



createPolygonSymbolizer
public PolygonSymbolizer createPolygonSymbolizer(Color fillColor, Color borderColor, double borderWidth)(Code)
create a polygon symbolizer
Parameters:
  fillColor - - the color to fill the polygon
Parameters:
  borderColor - - the outline color of the polygon
Parameters:
  borderWidth - - the width of the outline the new polygon symbolizer



createPolygonSymbolizer
public PolygonSymbolizer createPolygonSymbolizer(Color borderColor, double borderWidth)(Code)
create a polygon symbolizer
Parameters:
  borderColor - - the outline color of the polygon
Parameters:
  borderWidth - - the width of the outline the new polygon symbolizer



createPolygonSymbolizer
public PolygonSymbolizer createPolygonSymbolizer(Stroke stroke, Fill fill)(Code)
create a polygon symbolizer
Parameters:
  stroke - - the stroke to use to outline the polygon
Parameters:
  fill - - the fill to use to color the polygon the new polygon symbolizer



createPolygonSymbolizer
public PolygonSymbolizer createPolygonSymbolizer(Stroke stroke, Fill fill, String geometryPropertyName)(Code)
create a polygon symbolizer
Parameters:
  stroke - - the stroke to use to outline the polygon
Parameters:
  fill - - the fill to use to color the polygon
Parameters:
  geometryPropertyName - - the name of the geometry to be drawn the new polygon symbolizer



createRasterSymbolizer
public RasterSymbolizer createRasterSymbolizer()(Code)
Creates the default raster symbolizer



createRasterSymbolizer
public RasterSymbolizer createRasterSymbolizer(ColorMap colorMap, double opacity)(Code)
Creates a raster symbolizer
Parameters:
  colorMap - The symbolizer color map
Parameters:
  opacity - The whole layer opacity



createRule
public Rule createRule(Symbolizer symbolizer)(Code)
create a simple styling rule
Parameters:
  symbolizer - - the symbolizer to use the new rule



createRule
public Rule createRule(Symbolizer[] symbolizers)(Code)
reate a simple styling rule
Parameters:
  symbolizers - - an array of symbolizers to use the new rule



createRule
public Rule createRule(Symbolizer symbolizer, double minScaleDenominator, double maxScaleDenominator)(Code)
create a simple styling rule, see the SLD Spec for more details of scaleDenominators
Parameters:
  symbolizer - - the symbolizer to use
Parameters:
  minScaleDenominator - - the minimim scale to draw the feature at
Parameters:
  maxScaleDenominator - - the maximum scale to draw the feature at the new rule



createRule
public Rule createRule(Symbolizer[] symbolizers, double minScaleDenominator, double maxScaleDenominator)(Code)
create a simple styling rule, see the SLD Spec for more details of scaleDenominators
Parameters:
  symbolizers - - an array of symbolizers to use
Parameters:
  minScaleDenominator - - the minimim scale to draw the feature at
Parameters:
  maxScaleDenominator - - the maximum scale to draw the feature at the new rule



createStaticTextSymbolizer
public TextSymbolizer createStaticTextSymbolizer(Color color, Font font, String label)(Code)
create a textsymbolizer which doesn't change
Parameters:
  color - the color of the text
Parameters:
  font - the font to use
Parameters:
  label - the label to use the new textsymbolizer



createStaticTextSymbolizer
public TextSymbolizer createStaticTextSymbolizer(Color color, Font[] fonts, String label)(Code)
create a textsymbolizer which doesn't change
Parameters:
  color - the color of the text
Parameters:
  fonts - an array of fonts to use from the first to last
Parameters:
  label - the label to use the new textsymbolizer



createStroke
public Stroke createStroke()(Code)
create a default Stroke the Stroke created



createStroke
public Stroke createStroke(double width)(Code)
create a default stroke with the supplied width
Parameters:
  width - the width of the line the stroke created



createStroke
public Stroke createStroke(Color color)(Code)
Create a default stroke with the supplied color
Parameters:
  color - the color of the line the created stroke



createStroke
public Stroke createStroke(Color color, double width)(Code)
create a stroke with the supplied width and color
Parameters:
  color - the color of the line
Parameters:
  width - the width of the line the created stroke



createStroke
public Stroke createStroke(Color color, double width, String lineJoin, String lineCap)(Code)
create a stroke with color, width, linejoin type and lineCap type.
Parameters:
  color - the color of the line
Parameters:
  width - the width of the line
Parameters:
  lineJoin - the type of join to be used at points along the line
Parameters:
  lineCap - the type of cap to be used at the end of the line the stroke created



createStroke
public Stroke createStroke(Color color, double width, float[] dashArray)(Code)
create a dashed line of color and width
Parameters:
  color - the color of the line
Parameters:
  width - the width of the line
Parameters:
  dashArray - an array of floats describing the length of line and spaces the stroke created



createStroke
public Stroke createStroke(Expression color, Expression width)(Code)
create a stroke with the color and width supplied
Parameters:
  color - an Expression representing the color of the line
Parameters:
  width - an Expression representing the width of the line the Stroke created



createStroke
public Stroke createStroke(Color color, double width, double opacity)(Code)
create a stroke with color, width and opacity supplied
Parameters:
  color - the color of the line
Parameters:
  width - the width of the line
Parameters:
  opacity - the opacity or see throughness of the line, 0 - is transparent, 1 iscompletely drawn the stroke created



createStroke
public Stroke createStroke(Expression color, Expression width, Expression opacity)(Code)
create a stroke with color, width and opacity supplied
Parameters:
  color - an Expression representing the color of the line
Parameters:
  width - an Expression representing the width of the line
Parameters:
  opacity - an Expression representing opacity the opacity or see throughness ofthe line, 0 - is transparent, 1 is completely drawn the stroke created



createStyle
public Style createStyle(Symbolizer symbolizer)(Code)
create a new style
Parameters:
  symbolizer - - the symbolizer to use the new style



createStyle
public Style createStyle(Symbolizer symbolizer, double minScaleDenominator, double maxScaleDenominator)(Code)
create a new style
Parameters:
  symbolizer - - the symbolizer to use
Parameters:
  minScaleDenominator - - the minimim scale to draw the feature at
Parameters:
  maxScaleDenominator - - the maximum scale to draw the feature at the new style



createStyle
public Style createStyle(String typeName, Symbolizer symbolizer)(Code)
create a new style
Parameters:
  typeName - - The feature typeName you want to draw (use "Feature" as a wild card to match all)
Parameters:
  symbolizer - - the symbolizer to use the new style



createStyle
public Style createStyle(String typeName, Symbolizer symbolizer, double minScaleDenominator, double maxScaleDenominator)(Code)
create a new style
Parameters:
  typeName - - The feature typeName you want to draw (use "Feature" as a wild card to match all)
Parameters:
  symbolizer - - the symbolizer to use
Parameters:
  minScaleDenominator - - the minimim scale to draw the feature at
Parameters:
  maxScaleDenominator - - the maximum scale to draw the feature at the new style



createStyle
public Style createStyle()(Code)
create a new default style the new style



createTextSymbolizer
public TextSymbolizer createTextSymbolizer()(Code)
Creates a default text symbolizer. Warning: there is no definition of a default text symbolizer in the SLD standard, this is provided just for convenience and uniformity with the other symbolizers the default text symbolizer



createTextSymbolizer
public TextSymbolizer createTextSymbolizer(Color color, Font font, String attributeName) throws org.geotools.filter.IllegalFilterException(Code)
create a textsymbolizer
Parameters:
  color - the color of the text
Parameters:
  font - the font to use
Parameters:
  attributeName - the attribute to use for the label the new textsymbolizer
throws:
  org.geotools.filter.IllegalFilterException - - if the attribute name does not exist



createTextSymbolizer
public TextSymbolizer createTextSymbolizer(Color color, Font[] fonts, String attributeName) throws org.geotools.filter.IllegalFilterException(Code)
create a textsymbolizer
Parameters:
  color - the color of the text
Parameters:
  fonts - an array of fonts to use from the first to last
Parameters:
  attributeName - the attribute to use for the label the new textsymbolizer
throws:
  org.geotools.filter.IllegalFilterException - - if the attribute name does not exist



createTextSymbolizer
public TextSymbolizer createTextSymbolizer(Fill fill, Font[] fonts, Halo halo, Expression label, LabelPlacement labelPlacement, String geometryPropertyName)(Code)
create a text symbolizer
Parameters:
  fill - - the fill to color the text
Parameters:
  fonts - - an array of fonts to use from the first to last
Parameters:
  halo - - the halo to be applied to the text
Parameters:
  label - - Expression representing the label
Parameters:
  labelPlacement - - where to place the label
Parameters:
  geometryPropertyName - - the name of the geometry to use the new textsymbolizer



getFilterFactory
public FilterFactory getFilterFactory()(Code)
getter for filterFactory the FilterFactory being used



getStyleFactory
public StyleFactory getStyleFactory()(Code)
getter for StyleFactory the StyleFactory being used



getWellKnownMarkNames
public String[] getWellKnownMarkNames()(Code)
Returns the array of all the well known mark names DOCUMENT ME!



literalExpression
public Expression literalExpression(double value)(Code)
create a literal expression representing the value
Parameters:
  value - the value to be encoded the expression



literalExpression
public Expression literalExpression(int value)(Code)
create a literal expression representing the value
Parameters:
  value - the value to be encoded the expression



literalExpression
public Expression literalExpression(String value)(Code)
create a literal expression representing the value
Parameters:
  value - the value to be encoded the expression



literalExpression
public Expression literalExpression(Object value) throws IllegalFilterException(Code)
create a literal expression representing the value
Parameters:
  value - the value to be encoded the expression
throws:
  IllegalFilterException - DOCUMENT ME!



setFilterFactory
public void setFilterFactory(FilterFactory factory)(Code)
Documented setter injection, StyleBuilder uses a StyleFactory for creation.
Parameters:
  factory -



setStyleFactory
public void setStyleFactory(StyleFactory factory)(Code)
Documented setter injection, StyleBuilder uses a StyleFactory for creation.
Parameters:
  factory -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.