org.geotools.styling
Class StyledLayerDescriptorImpl

Object
  extended by StyledLayerDescriptorImpl
All Implemented Interfaces:
StyledLayerDescriptor

public class StyledLayerDescriptorImpl
extends Object
implements StyledLayerDescriptor

Holds styling information (from a StyleLayerDescriptor document).

This class is based on version 1.0 of the SLD specification.

For many of us in geotools this is the reason we came along for the ride - a pretty picture. For documentation on the use of this class please consult the SLD 1.0 specification.

We may experiment with our own (or SLD 1.1) ideas but will mark such experiments for you. This is only an issue of you are considering writing out these objects for interoptability with other systems.

General strategy for supporting multiple SLD versions (and experiments):

Module:

Constructor Summary
StyledLayerDescriptorImpl()
           
 
Method Summary
 void accept(StyleVisitor visitor)
          Used to navigate a Style/SLD.
 void addStyledLayer(StyledLayer layer)
           
 boolean equals(Object oth)
           
 String getAbstract()
          Getter for property abstractStr.
 Style getDefaultStyle()
          Convenience method for grabbing the default style from the StyledLayerDescriptor.
 String getName()
          Getter for property name.
 StyledLayer[] getStyledLayers()
           
 String getTitle()
          Getter for property title.
 void setAbstract(String abstractStr)
          Setter for property abstractStr.
 void setName(String name)
          Setter for property name.
 void setStyledLayers(StyledLayer[] layers)
           
 void setTitle(String title)
          Setter for property title.
 
Methods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyledLayerDescriptorImpl

public StyledLayerDescriptorImpl()
Method Detail

getDefaultStyle

public Style getDefaultStyle()
Convenience method for grabbing the default style from the StyledLayerDescriptor.

Returns:
first Style (in SLD-->UserLayers-->UserStyles) that claims to be the default

getStyledLayers

public StyledLayer[] getStyledLayers()
Specified by:
getStyledLayers in interface StyledLayerDescriptor

setStyledLayers

public void setStyledLayers(StyledLayer[] layers)
Specified by:
setStyledLayers in interface StyledLayerDescriptor

addStyledLayer

public void addStyledLayer(StyledLayer layer)
Specified by:
addStyledLayer in interface StyledLayerDescriptor

getName

public String getName()
Getter for property name.

Specified by:
getName in interface StyledLayerDescriptor
Returns:
Value of property name.

setName

public void setName(String name)
Setter for property name.

Specified by:
setName in interface StyledLayerDescriptor
Parameters:
name - New value of property name.

getTitle

public String getTitle()
Getter for property title.

Specified by:
getTitle in interface StyledLayerDescriptor
Returns:
Value of property title.

setTitle

public void setTitle(String title)
Setter for property title.

Specified by:
setTitle in interface StyledLayerDescriptor
Parameters:
title - New value of property title.

getAbstract

public String getAbstract()
Getter for property abstractStr.

Specified by:
getAbstract in interface StyledLayerDescriptor
Returns:
Value of property abstractStr.

setAbstract

public void setAbstract(String abstractStr)
Setter for property abstractStr.

Specified by:
setAbstract in interface StyledLayerDescriptor
Parameters:
abstractStr - New value of property abstractStr.

accept

public void accept(StyleVisitor visitor)
Description copied from interface: StyledLayerDescriptor
Used to navigate a Style/SLD.

Specified by:
accept in interface StyledLayerDescriptor

equals

public boolean equals(Object oth)
Overrides:
equals in class Object


Copyright © 1996-2009 Geotools. All Rights Reserved.