net.refractions.udig.style.sld
Enum SLD

java.lang.Object
  extended by java.lang.Enum<SLD>
      extended by net.refractions.udig.style.sld.SLD
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SLD>

public enum SLD
extends java.lang.Enum<SLD>


Enum Constant Summary
LINE
           
POINT
           
POLYGON
           
RASTER
           
TEXT
           
 
Method Summary
 java.lang.Object createDefault()
           
static
<T> T
createDefault(java.lang.Class<T> theClass)
           
 ImageDescriptor createDisabledImageDescriptor()
           
static ImageDescriptor createDisabledImageDescriptor(java.lang.Class theClass)
           
 ImageDescriptor createImageDescriptor()
           
static ImageDescriptor createImageDescriptor(java.lang.Class theClass)
           
static java.util.List<java.lang.Class> getSupportedTypes(ILayer layer)
          Returns the types of SLD style components that support the specified feature type.
static boolean isLine(FeatureType featureType)
           
static boolean isPoint(FeatureType featureType)
           
static boolean isPolygon(FeatureType featureType)
           
 boolean supports(ILayer layer)
          Determines if the style component supports the specified feature type.
static SLD valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SLD[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

POINT

public static final SLD POINT

LINE

public static final SLD LINE

POLYGON

public static final SLD POLYGON

TEXT

public static final SLD TEXT

RASTER

public static final SLD RASTER
Method Detail

values

public static final SLD[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SLD c : SLD.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static SLD valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

createImageDescriptor

public ImageDescriptor createImageDescriptor()

createDisabledImageDescriptor

public ImageDescriptor createDisabledImageDescriptor()

createDefault

public java.lang.Object createDefault()

supports

public boolean supports(ILayer layer)
Determines if the style component supports the specified feature type.

Parameters:
layer - Feature type, must not be null and must have a valid geometry type attribute.
Returns:
true if the feature type is supported, otherwise false.

createDefault

public static <T> T createDefault(java.lang.Class<T> theClass)

createImageDescriptor

public static ImageDescriptor createImageDescriptor(java.lang.Class theClass)

createDisabledImageDescriptor

public static ImageDescriptor createDisabledImageDescriptor(java.lang.Class theClass)

getSupportedTypes

public static java.util.List<java.lang.Class> getSupportedTypes(ILayer layer)
Returns the types of SLD style components that support the specified feature type. This method returns an empty list if no style types support the specified feature type.

Parameters:
layer - the layer.
Returns:
A list (possibly empty) of types that support the feature type.

isPolygon

public static final boolean isPolygon(FeatureType featureType)

isLine

public static final boolean isLine(FeatureType featureType)

isPoint

public static final boolean isPoint(FeatureType featureType)