org.geotools.swt.styling.simple
Enum Mode

Object
  extended by Enum<Mode>
      extended by Mode
All Implemented Interfaces:
Serializable, Comparable<Mode>

public enum Mode
extends Enum<Mode>

Captures the current *mode* of the style configurator making use of a StyleViewer.

This is used to let the viewers get modey, and disable fill content when working with linestrings for example.

Since:
1.0.0
Author:
Jody Garnett

Enum Constant Summary
ALL
          ALL Mode - editing a Geometry.
LINE
          LINE Mode - editing a Linestring or MultiLineString.
NONE
          NONE Mode - content cannot be styled by SLD (like scalebar)
POINT
          POINT Mode - editing a Point or MultiPoint.
POLYGON
          POLYGON Mode - editing a Polygone or MultiPolygon.
 
Method Summary
static Mode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Mode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

POINT

public static final Mode POINT
POINT Mode - editing a Point or MultiPoint.


LINE

public static final Mode LINE
LINE Mode - editing a Linestring or MultiLineString.


POLYGON

public static final Mode POLYGON
POLYGON Mode - editing a Polygone or MultiPolygon.


ALL

public static final Mode ALL
ALL Mode - editing a Geometry.


NONE

public static final Mode NONE
NONE Mode - content cannot be styled by SLD (like scalebar)

Method Detail

values

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

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

valueOf

public static Mode valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 1996-2014 Geotools. All Rights Reserved.