Java Doc for SLD.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.SLD

SLD
public class SLD (Code)
Utility class for working with Geotools SLD objects.

This class assumes a subset of the SLD specification:

  • Single Rule - matching Filter.INCLUDE
  • Symbolizer lookup by name

When you start to branch out to SLD information that contains multiple rules you will need to modify this class.


since:
   0.7.0


Field Summary
final public static  intNOTFOUND
    
final public static  StyleBuilderbuilder
    


Method Summary
public static  Colorcolor(Fill fill)
    
public static  Colorcolor(LineSymbolizer symbolizer)
     Retrieve color from linesymbolizer if available.
Parameters:
  symbolizer - Line symbolizer information.
public static  Colorcolor(PointSymbolizer symbolizer)
     Grabs the color from the first Mark.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information.
public static  Colorcolor(Expression expr)
     Navigate through the expression finding the first mentioned Color.
public static  StringcolorToHex(Color c)
    
public static  String[]colors(Style style)
    
public static  String[]colors(Rule rule)
    
public static  StyledefaultStyle(StyledLayerDescriptor sld)
    
public static  doubledoubleValue(Expression expr)
     This method is here for backward compatability.
public static  FeatureTypeStylefeatureTypeStyle(Style style, FeatureType type)
     Returns the feature type style in the style which matched a particular name.
Parameters:
  style - The style in question.
Parameters:
  type - The feature type must be non-null.
public static  FeatureTypeStylefeatureTypeStyle(StyledLayerDescriptor sld, FeatureType type)
    
public static  FeatureTypeStyle[]featureTypeStyles(StyledLayerDescriptor sld)
    
public static  Fillfill(PolygonSymbolizer sym)
    
public static  Fillfill(PointSymbolizer sym)
    
public static  Filter[]filters(Rule[] rule)
    
public static  Filter[]filters(Style style)
    
public static  Fontfont(TextSymbolizer symbolizer)
    
public static  Graphicgraphic(PointSymbolizer sym)
    
public static  intintValue(Expression expr)
     This method is here for backward compatability.
public static  ColorlineColor(LineSymbolizer symbolizer)
     Retrieve linestring color from linesymbolizer if available.
Parameters:
  symbolizer - Line symbolizer information.
public static  float[]lineDash(LineSymbolizer symbolizer)
     Grabs the dashes array from the first LineSymbolizer.
Parameters:
  symbolizer - Line symbolizer information.
public static  StringlineLinecap(LineSymbolizer symbolizer)
     Grabs the linecap from the first LineSymbolizer.
Parameters:
  symbolizer - Line symbolizer information.
public static  StringlineLinejoin(LineSymbolizer symbolizer)
     Grabs the linejoin from the first LineSymbolizer.
Parameters:
  symbolizer - Line symbolizer information.
public static  doublelineOpacity(LineSymbolizer symbolizer)
     Grabs the opacity from the first LineSymbolizer.
Parameters:
  symbolizer - Line symbolizer information.
public static  LineSymbolizerlineSymbolizer(FeatureTypeStyle fts)
     Retrieve the first LineSymbolizer from the provided Style.
Parameters:
  fts - SLD featureTypeStyle information.
public static  LineSymbolizerlineSymbolizer(Style style)
     Retrieve the first LineSymbolizer from the provided Style.
Parameters:
  style - SLD style information.
public static  intlineWidth(LineSymbolizer symbolizer)
     Retrieve linestring width from symbolizer if available.
Parameters:
  symbolizer - Line symbolizer information.
public static  Markmark(PointSymbolizer sym)
    
public static  Markmark(Graphic graphic)
    
public static  StylematchingStyle(Style[] styles, FeatureType schema)
     Returns the first style object which matches a given schema.
Parameters:
  styles - Array of style objects.
Parameters:
  schema - Feature schema.
public static  Numbernumber(Expression expr)
     This method is here for backward compatability.
public static  doubleopacity(Stroke stroke)
    
public static  doubleopacity(RasterSymbolizer rasterSymbolizer)
    
public static  doubleopacity(Fill fill)
    
public static  doublepointBorderOpacity(PointSymbolizer symbolizer)
     Grabs the point border opacity from the first PointSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information.
public static  ColorpointColor(PointSymbolizer symbolizer)
     Grabs the color from the first Mark.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information.
public static  ColorpointFill(PointSymbolizer symbolizer)
     Grabs the fill from the first Mark.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information.
public static  URLpointGraphic(Style style)
     Grabs the location of the first external graphic.
Parameters:
  style - SLD style information.
public static  MarkpointMark(Style style)
    
public static  doublepointOpacity(PointSymbolizer symbolizer)
     Grabs the point opacity from the first PointSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information.
public static  intpointSize(PointSymbolizer symbolizer)
     Grabs the size of the points graphic, if found.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information.
public static  PointSymbolizerpointSymbolizer(FeatureTypeStyle fts)
     Retrieve the first PointSymbolizer from the provided FeatureTypeStyle.
Parameters:
  fts - SLD featureTypeStyle information.
public static  PointSymbolizerpointSymbolizer(Style style)
     Retrieve the first PointSymbolizer from the provided Style.
Parameters:
  style - SLD style information.
public static  StringpointWellKnownName(PointSymbolizer symbolizer)
     Grabs the well known name of the first Mark that has one.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information.
public static  intpointWidth(PointSymbolizer symbolizer)
     Grabs the width of the first Mark with a Stroke that has a non-null width.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information.
public static  doublepolyBorderOpacity(PolygonSymbolizer symbolizer)
     Grabs the border opacity from the first PolygonSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Polygon symbolizer information.
public static  ColorpolyColor(PolygonSymbolizer symbolizer)
     Grabs the color from the first PolygonSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Polygon symbolizer information.
public static  ColorpolyFill(PolygonSymbolizer symbolizer)
     Grabs the fill from the first PolygonSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Polygon symbolizer information.
public static  doublepolyFillOpacity(PolygonSymbolizer symbolizer)
     Grabs the fill opacity from the first PolygonSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Polygon symbolizer information.
public static  PolygonSymbolizerpolySymbolizer(FeatureTypeStyle fts)
     Retrieve the first PolygonSymbolizer from the provided Style.
Parameters:
  fts - SLD featureTypeStyle information.
public static  PolygonSymbolizerpolySymbolizer(Style style)
     Retrieve the first PolygonSymbolizer from the provided Style.
Parameters:
  style - SLD style information.
public static  intpolyWidth(PolygonSymbolizer symbolizer)
     Grabs the color from the first PolygonSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Polygon symbolizer information.
public static  doublerasterOpacity(RasterSymbolizer symbolizer)
     Grabs the opacity from the first RasterSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Raster symbolizer information.
public static  doublerasterOpacity(Style style)
    
public static  RasterSymbolizerrasterSymbolizer(FeatureTypeStyle fts)
     Retrieve the first RasterSymbolizer from the provided Style.
Parameters:
  fts - SLD featureTypeStyle information.
public static  RasterSymbolizerrasterSymbolizer(Style style)
     Retrieve the first RasterSymbolizer from the provided Style.
Parameters:
  style - SLD style information.
public static  Rule[]rules(Style style)
    
public static  voidsetLineColour(Style style, Color colour)
    
public static  voidsetLineColour(LineSymbolizer symbolizer, Color colour)
    
public static  voidsetPointColour(Style style, Color colour)
    
public static  voidsetPointColour(PointSymbolizer symbolizer, Color colour)
    
public static  voidsetPolyColour(Style style, Color colour)
    
public static  voidsetPolyColour(PolygonSymbolizer symbolizer, Color colour)
    
public static  intsize(Mark mark)
    
public static  StringstringValue(Expression expr)
     This method is here for backward compatability.
public static  Strokestroke(LineSymbolizer sym)
    
public static  Strokestroke(PolygonSymbolizer sym)
    
public static  Strokestroke(PointSymbolizer sym)
    
public static  ColorstrokeColor(Stroke stroke)
    
public static  StyledLayerDescriptorstyledLayerDescriptor(Object gtComponent)
     Climbs the style hierarchy until null or an SLD is found.
public static  Style[]styles(StyledLayerDescriptor sld)
    
protected static  Symbolizersymbolizer(Style style, Class SYMBOLIZER)
     Retrieve the first SYMBOLIZER from the provided Style.
protected static  Symbolizersymbolizer(FeatureTypeStyle fts, Class SYMBOLIZER)
     Retrieve the first SYMBOLIZER from the provided FeatureTypeStyle.
public static  Symbolizer[]symbolizers(Style style)
    
public static  Symbolizer[]symbolizers(Rule rule)
    
public static  ColortextFontFill(TextSymbolizer symbolizer)
     Grabs the fontFill from the first TextSymbolizer.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Text symbolizer information.
public static  ColortextHaloFill(TextSymbolizer symbolizer)
     Grabs the haloFill from the first TextSymbolizer.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Text symbolizer information.
public static  doubletextHaloOpacity(TextSymbolizer symbolizer)
     Grabs the halo opacity from the first TextSymbolizer.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Text symbolizer information.
public static  inttextHaloWidth(TextSymbolizer symbolizer)
     Grabs the halo width from the first TextSymbolizer.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Text symbolizer information.
public static  ExpressiontextLabel(TextSymbolizer symbolizer)
     Grabs the label from the first TextSymbolizer.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Text symbolizer information.
public static  StringtextLabelString(TextSymbolizer sym)
    
public static  TextSymbolizertextSymbolizer(FeatureTypeStyle fts)
     Retrieve the first TextSymbolizer from the provided Style.
Parameters:
  fts - SLD featureTypeStyle information.
public static  TextSymbolizertextSymbolizer(Style style)
     Retrieve the first TextSymbolizer from the provided Style.
Parameters:
  style - SLD style information.
public static  ColortoColor(String htmlColor)
    
public static  StringtoHTMLColor(Color color)
    
public static  Objectvalue(Expression expr, Class TYPE)
     This method is here for backwards compatability.
public static  StringwellKnownName(Mark mark)
    
public static  intwidth(Stroke stroke)
    
public static  intwidth(LineSymbolizer symbolizer)
     Retrieve linestring width from symbolizer if available.
Parameters:
  symbolizer - Line symbolizer information.

Field Detail
NOTFOUND
final public static int NOTFOUND(Code)
NOTFOUND indicates int value was unavailable



builder
final public static StyleBuilder builder(Code)





Method Detail
color
public static Color color(Fill fill)(Code)



color
public static Color color(LineSymbolizer symbolizer)(Code)
Retrieve color from linesymbolizer if available.
Parameters:
  symbolizer - Line symbolizer information. Color of linestring, or null if unavailable.



color
public static Color color(PointSymbolizer symbolizer)(Code)
Grabs the color from the first Mark.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information. Color of the point's mark, or null if unavailable.



color
public static Color color(Expression expr)(Code)
Navigate through the expression finding the first mentioned Color.

If you have a specific Feature in mind please use:


 Object value = expr.getValue( feature );
 return value instanceof Color ? (Color) value : null;
 


Parameters:
  expr - First available color, or null.



colorToHex
public static String colorToHex(Color c)(Code)



colors
public static String[] colors(Style style)(Code)



colors
public static String[] colors(Rule rule)(Code)



defaultStyle
public static Style defaultStyle(StyledLayerDescriptor sld)(Code)



doubleValue
public static double doubleValue(Expression expr)(Code)
This method is here for backward compatability.
Parameters:
  expr - DOCUMENT ME! DOCUMENT ME!
See Also:   Filters.doubleValue(Expression)



featureTypeStyle
public static FeatureTypeStyle featureTypeStyle(Style style, FeatureType type)(Code)
Returns the feature type style in the style which matched a particular name.
Parameters:
  style - The style in question.
Parameters:
  type - The feature type must be non-null. Teh FeatureTypeStyle object if it exists, otherwise false.



featureTypeStyle
public static FeatureTypeStyle featureTypeStyle(StyledLayerDescriptor sld, FeatureType type)(Code)



featureTypeStyles
public static FeatureTypeStyle[] featureTypeStyles(StyledLayerDescriptor sld)(Code)



fill
public static Fill fill(PolygonSymbolizer sym)(Code)



fill
public static Fill fill(PointSymbolizer sym)(Code)



filters
public static Filter[] filters(Rule[] rule)(Code)



filters
public static Filter[] filters(Style style)(Code)



font
public static Font font(TextSymbolizer symbolizer)(Code)



graphic
public static Graphic graphic(PointSymbolizer sym)(Code)



intValue
public static int intValue(Expression expr)(Code)
This method is here for backward compatability.
Parameters:
  expr - DOCUMENT ME! DOCUMENT ME!
See Also:   Filters.intValue(Expression)



lineColor
public static Color lineColor(LineSymbolizer symbolizer)(Code)
Retrieve linestring color from linesymbolizer if available.
Parameters:
  symbolizer - Line symbolizer information. Color of linestring, or null if unavailable.



lineDash
public static float[] lineDash(LineSymbolizer symbolizer)(Code)
Grabs the dashes array from the first LineSymbolizer.
Parameters:
  symbolizer - Line symbolizer information. float[] of the line dashes array, or null if unavailable.



lineLinecap
public static String lineLinecap(LineSymbolizer symbolizer)(Code)
Grabs the linecap from the first LineSymbolizer.
Parameters:
  symbolizer - Line symbolizer information. String of the line stroke's linecap, or null if unavailable.



lineLinejoin
public static String lineLinejoin(LineSymbolizer symbolizer)(Code)
Grabs the linejoin from the first LineSymbolizer.
Parameters:
  symbolizer - Line symbolizer information. String of the line stroke's linejoin, or null if unavailable.



lineOpacity
public static double lineOpacity(LineSymbolizer symbolizer)(Code)
Grabs the opacity from the first LineSymbolizer.
Parameters:
  symbolizer - Line symbolizer information. double of the line stroke's opacity, or NaN if unavailable.



lineSymbolizer
public static LineSymbolizer lineSymbolizer(FeatureTypeStyle fts)(Code)
Retrieve the first LineSymbolizer from the provided Style.
Parameters:
  fts - SLD featureTypeStyle information. LineSymbolizer, or null if not found.



lineSymbolizer
public static LineSymbolizer lineSymbolizer(Style style)(Code)
Retrieve the first LineSymbolizer from the provided Style.
Parameters:
  style - SLD style information. LineSymbolizer, or null if not found.



lineWidth
public static int lineWidth(LineSymbolizer symbolizer)(Code)
Retrieve linestring width from symbolizer if available.
Parameters:
  symbolizer - Line symbolizer information. width of linestring, or NOTFOUND



mark
public static Mark mark(PointSymbolizer sym)(Code)



mark
public static Mark mark(Graphic graphic)(Code)



matchingStyle
public static Style matchingStyle(Style[] styles, FeatureType schema)(Code)
Returns the first style object which matches a given schema.
Parameters:
  styles - Array of style objects.
Parameters:
  schema - Feature schema. The first object to match the feature type, otherwise null if nomatch.



number
public static Number number(Expression expr)(Code)
This method is here for backward compatability.
Parameters:
  expr - DOCUMENT ME! DOCUMENT ME!
See Also:   Filters.number(Expression)



opacity
public static double opacity(Stroke stroke)(Code)



opacity
public static double opacity(RasterSymbolizer rasterSymbolizer)(Code)



opacity
public static double opacity(Fill fill)(Code)



pointBorderOpacity
public static double pointBorderOpacity(PointSymbolizer symbolizer)(Code)
Grabs the point border opacity from the first PointSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information. double of the point's border opacity, or NaN if unavailable.



pointColor
public static Color pointColor(PointSymbolizer symbolizer)(Code)
Grabs the color from the first Mark.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information. Color of the point's mark, or null if unavailable.



pointFill
public static Color pointFill(PointSymbolizer symbolizer)(Code)
Grabs the fill from the first Mark.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information. Color of the point's fill, or null if unavailable.



pointGraphic
public static URL pointGraphic(Style style)(Code)
Grabs the location of the first external graphic.
Parameters:
  style - SLD style information. Location of the first external graphic, or null



pointMark
public static Mark pointMark(Style style)(Code)



pointOpacity
public static double pointOpacity(PointSymbolizer symbolizer)(Code)
Grabs the point opacity from the first PointSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information. double of the point's opacity, or NaN if unavailable.



pointSize
public static int pointSize(PointSymbolizer symbolizer)(Code)
Grabs the size of the points graphic, if found.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information. size of the graphic



pointSymbolizer
public static PointSymbolizer pointSymbolizer(FeatureTypeStyle fts)(Code)
Retrieve the first PointSymbolizer from the provided FeatureTypeStyle.
Parameters:
  fts - SLD featureTypeStyle information. PointSymbolizer, or null if not found.



pointSymbolizer
public static PointSymbolizer pointSymbolizer(Style style)(Code)
Retrieve the first PointSymbolizer from the provided Style.
Parameters:
  style - SLD style information. PointSymbolizer, or null if not found.



pointWellKnownName
public static String pointWellKnownName(PointSymbolizer symbolizer)(Code)
Grabs the well known name of the first Mark that has one.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information. well known name of the first Mark



pointWidth
public static int pointWidth(PointSymbolizer symbolizer)(Code)
Grabs the width of the first Mark with a Stroke that has a non-null width.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Point symbolizer information. width of the points border



polyBorderOpacity
public static double polyBorderOpacity(PolygonSymbolizer symbolizer)(Code)
Grabs the border opacity from the first PolygonSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Polygon symbolizer information. double of the polygon's border opacity, or NaN if unavailable.



polyColor
public static Color polyColor(PolygonSymbolizer symbolizer)(Code)
Grabs the color from the first PolygonSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Polygon symbolizer information. Color of the polygon's stroke, or null if unavailable.



polyFill
public static Color polyFill(PolygonSymbolizer symbolizer)(Code)
Grabs the fill from the first PolygonSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Polygon symbolizer information. Color of the polygon's fill, or null if unavailable.



polyFillOpacity
public static double polyFillOpacity(PolygonSymbolizer symbolizer)(Code)
Grabs the fill opacity from the first PolygonSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Polygon symbolizer information. double of the polygon's fill opacity, or NaN if unavailable.



polySymbolizer
public static PolygonSymbolizer polySymbolizer(FeatureTypeStyle fts)(Code)
Retrieve the first PolygonSymbolizer from the provided Style.
Parameters:
  fts - SLD featureTypeStyle information. PolygonSymbolizer, or null if not found.



polySymbolizer
public static PolygonSymbolizer polySymbolizer(Style style)(Code)
Retrieve the first PolygonSymbolizer from the provided Style.
Parameters:
  style - SLD style information. PolygonSymbolizer, or null if not found.



polyWidth
public static int polyWidth(PolygonSymbolizer symbolizer)(Code)
Grabs the color from the first PolygonSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Polygon symbolizer information. Color of the polygon's stroke, or null if unavailable.



rasterOpacity
public static double rasterOpacity(RasterSymbolizer symbolizer)(Code)
Grabs the opacity from the first RasterSymbolizer.

If you are using something fun like rules you will need to do your own thing.


Parameters:
  symbolizer - Raster symbolizer information. opacity of the first RasterSymbolizer



rasterOpacity
public static double rasterOpacity(Style style)(Code)



rasterSymbolizer
public static RasterSymbolizer rasterSymbolizer(FeatureTypeStyle fts)(Code)
Retrieve the first RasterSymbolizer from the provided Style.
Parameters:
  fts - SLD featureTypeStyle information. RasterSymbolizer, or null if not found.



rasterSymbolizer
public static RasterSymbolizer rasterSymbolizer(Style style)(Code)
Retrieve the first RasterSymbolizer from the provided Style.
Parameters:
  style - SLD style information. RasterSymbolizer, or null if not found.



rules
public static Rule[] rules(Style style)(Code)



setLineColour
public static void setLineColour(Style style, Color colour)(Code)
Sets the colour for a line symbolizer
Parameters:
  style -
Parameters:
  colour -



setLineColour
public static void setLineColour(LineSymbolizer symbolizer, Color colour)(Code)
Sets the Colour for the given Line symbolizer
Parameters:
  symbolizer -
Parameters:
  colour -



setPointColour
public static void setPointColour(Style style, Color colour)(Code)
Sets the Colour for the point symbolizer
Parameters:
  style -
Parameters:
  colour -



setPointColour
public static void setPointColour(PointSymbolizer symbolizer, Color colour)(Code)
Sets the Colour for the given point symbolizer
Parameters:
  symbolizer -
Parameters:
  colour -



setPolyColour
public static void setPolyColour(Style style, Color colour)(Code)
Sets the colour for a polygon symbolizer
Parameters:
  style -
Parameters:
  colour -



setPolyColour
public static void setPolyColour(PolygonSymbolizer symbolizer, Color colour)(Code)
Sets the Colour for the given polygon symbolizer
Parameters:
  symbolizer -
Parameters:
  colour -



size
public static int size(Mark mark)(Code)



stringValue
public static String stringValue(Expression expr)(Code)
This method is here for backward compatability.
Parameters:
  expr - DOCUMENT ME! DOCUMENT ME!
See Also:   Filters.stringValue(Expression)



stroke
public static Stroke stroke(LineSymbolizer sym)(Code)



stroke
public static Stroke stroke(PolygonSymbolizer sym)(Code)



stroke
public static Stroke stroke(PointSymbolizer sym)(Code)



strokeColor
public static Color strokeColor(Stroke stroke)(Code)



styledLayerDescriptor
public static StyledLayerDescriptor styledLayerDescriptor(Object gtComponent)(Code)
Climbs the style hierarchy until null or an SLD is found.
Parameters:
  gtComponent - object SLD



styles
public static Style[] styles(StyledLayerDescriptor sld)(Code)



symbolizer
protected static Symbolizer symbolizer(Style style, Class SYMBOLIZER)(Code)
Retrieve the first SYMBOLIZER from the provided Style.
Parameters:
  style - SLD style information.
Parameters:
  SYMBOLIZER - LineSymbolizer.class, PointSymbolizer.class, PolygonSymbolizer.class, RasterSymbolizer.class, or TextSymbolizer.class symbolizer instance from style, or null if not found.



symbolizer
protected static Symbolizer symbolizer(FeatureTypeStyle fts, Class SYMBOLIZER)(Code)
Retrieve the first SYMBOLIZER from the provided FeatureTypeStyle.
Parameters:
  fts - the FeatureTypeStyle SLD style information.
Parameters:
  SYMBOLIZER - LineSymbolizer.class, PointSymbolizer.class, PolygonSymbolizer.class, RasterSymbolizer.class, or TextSymbolizer.class symbolizer instance from fts, or null if not found.



symbolizers
public static Symbolizer[] symbolizers(Style style)(Code)



symbolizers
public static Symbolizer[] symbolizers(Rule rule)(Code)



textFontFill
public static Color textFontFill(TextSymbolizer symbolizer)(Code)
Grabs the fontFill from the first TextSymbolizer.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Text symbolizer information. Color of the font's fill, or null if unavailable.



textHaloFill
public static Color textHaloFill(TextSymbolizer symbolizer)(Code)
Grabs the haloFill from the first TextSymbolizer.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Text symbolizer information. Color of the halo's fill, or null if unavailable.



textHaloOpacity
public static double textHaloOpacity(TextSymbolizer symbolizer)(Code)
Grabs the halo opacity from the first TextSymbolizer.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Text symbolizer information. double of the halo's opacity, or NaN if unavailable.



textHaloWidth
public static int textHaloWidth(TextSymbolizer symbolizer)(Code)
Grabs the halo width from the first TextSymbolizer.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Text symbolizer information. float of the halo's width, or null if unavailable.



textLabel
public static Expression textLabel(TextSymbolizer symbolizer)(Code)
Grabs the label from the first TextSymbolizer.

If you are using something fun like symbols you will need to do your own thing.


Parameters:
  symbolizer - Text symbolizer information. Expression of the label's text, or null if unavailable.



textLabelString
public static String textLabelString(TextSymbolizer sym)(Code)



textSymbolizer
public static TextSymbolizer textSymbolizer(FeatureTypeStyle fts)(Code)
Retrieve the first TextSymbolizer from the provided Style.
Parameters:
  fts - SLD featureTypeStyle information. TextSymbolizer, or null if not found.



textSymbolizer
public static TextSymbolizer textSymbolizer(Style style)(Code)
Retrieve the first TextSymbolizer from the provided Style.
Parameters:
  style - SLD style information. TextSymbolizer, or null if not found.



toColor
public static Color toColor(String htmlColor)(Code)



toHTMLColor
public static String toHTMLColor(Color color)(Code)
Converts a java.awt.Color into an HTML Colour
Parameters:
  color - HTML Color (fill) in hex #RRGGBB



value
public static Object value(Expression expr, Class TYPE)(Code)
This method is here for backwards compatability.
Parameters:
  expr - DOCUMENT ME!
Parameters:
  TYPE - DOCUMENT ME! DOCUMENT ME!
See Also:   org.geotools.filter.Filters.value(ExpressionClass)



wellKnownName
public static String wellKnownName(Mark mark)(Code)



width
public static int width(Stroke stroke)(Code)



width
public static int width(LineSymbolizer symbolizer)(Code)
Retrieve linestring width from symbolizer if available.
Parameters:
  symbolizer - Line symbolizer information. width of linestring, or NOTFOUND



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.