net.refractions.udig.style.sld
Class SLDContent

java.lang.Object
  extended by StyleContent
      extended by net.refractions.udig.style.sld.SLDContent

public final class SLDContent
extends StyleContent

Style content for Style Layer Descriptor (SLD). This class is not intended for extension (jg: so I marked it final).

Author:
Justin Deoliveira, Refractions Research Inc.

Field Summary
static java.lang.String ID
          style id, used to identify sld style on a blackboard *
 
Constructor Summary
SLDContent()
          SLDContent constructor.
 
Method Summary
static void apply(ILayer layer, Style style, IProgressMonitor m)
           
static Style createDefaultStyle()
           
 java.lang.Object createDefaultStyle(IGeoResource resource, java.awt.Color colour, IProgressMonitor m)
          This will need to know the "scheme."
static StyledLayerDescriptor createDefaultStyledLayerDescriptor()
           
static StyledLayerDescriptor createDefaultStyledLayerDescriptor(Style style)
          Creates an SLD and UserLayer, and nests the style (SLD-->UserLayer-->Style).
protected static LineSymbolizer createLineSymbolizer(java.awt.Color colour)
          Creates a simple LineSymbolizer using the specified colour.
protected static PointSymbolizer createPointSymbolizer(java.awt.Color colour)
           
protected static PolygonSymbolizer createPolygonSymbolizer(java.awt.Color colour)
          Creates a simple PolygonSymbolizer using the specified colour.
protected static java.awt.Color createRandomColor()
           
protected static RasterSymbolizer createRasterSymbolizer()
           
protected static TextSymbolizer createTextSymbolizer()
           
static StyleBuilder getStyleBuilder()
           
 java.lang.Class getStyleClass()
           
static StyleFactory getStyleFactory()
           
 java.lang.Object load(IMemento momento)
           
 java.lang.Object load(java.net.URL url, IProgressMonitor m)
           
static Style parse(java.net.URL url)
           
 void save(IMemento memento, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
style id, used to identify sld style on a blackboard *

See Also:
Constant Field Values
Constructor Detail

SLDContent

public SLDContent()
SLDContent constructor.

Method Detail

getStyleClass

public java.lang.Class getStyleClass()

save

public void save(IMemento memento,
                 java.lang.Object value)

load

public java.lang.Object load(IMemento momento)

load

public java.lang.Object load(java.net.URL url,
                             IProgressMonitor m)
                      throws java.io.IOException
Throws:
java.io.IOException

apply

public static void apply(ILayer layer,
                         Style style,
                         IProgressMonitor m)
                  throws java.io.IOException
Throws:
java.io.IOException

createDefaultStyle

public java.lang.Object createDefaultStyle(IGeoResource resource,
                                           java.awt.Color colour,
                                           IProgressMonitor m)
                                    throws java.io.IOException
This will need to know the "scheme."

Throws:
java.io.IOException

parse

public static Style parse(java.net.URL url)
                   throws java.io.IOException
Throws:
java.io.IOException

createDefaultStyledLayerDescriptor

public static StyledLayerDescriptor createDefaultStyledLayerDescriptor()

createDefaultStyledLayerDescriptor

public static StyledLayerDescriptor createDefaultStyledLayerDescriptor(Style style)
Creates an SLD and UserLayer, and nests the style (SLD-->UserLayer-->Style).

Parameters:
style -
Returns:
SLD
See Also:
net.refractions.project.internal.render.SelectionStyleContent#createDefaultStyledLayerDescriptor

createDefaultStyle

public static Style createDefaultStyle()

getStyleFactory

public static StyleFactory getStyleFactory()

getStyleBuilder

public static StyleBuilder getStyleBuilder()

createPointSymbolizer

protected static PointSymbolizer createPointSymbolizer(java.awt.Color colour)

createLineSymbolizer

protected static LineSymbolizer createLineSymbolizer(java.awt.Color colour)
Creates a simple LineSymbolizer using the specified colour.

Parameters:
colour -
Returns:
LineSymbolizer

createPolygonSymbolizer

protected static PolygonSymbolizer createPolygonSymbolizer(java.awt.Color colour)
Creates a simple PolygonSymbolizer using the specified colour.

Parameters:
colour -
Returns:
LineSymbolizer

createTextSymbolizer

protected static TextSymbolizer createTextSymbolizer()

createRasterSymbolizer

protected static RasterSymbolizer createRasterSymbolizer()

createRandomColor

protected static java.awt.Color createRandomColor()