com.oziexplorer
Enum Grid

java.lang.Object
  extended by java.lang.Enum<Grid>
      extended by com.oziexplorer.Grid
All Implemented Interfaces:
Serializable, Comparable<Grid>

public enum Grid
extends Enum<Grid>

Enumeration of the different grid types supported by OziExplorer.

Copyright 2011 Alan Burlison, . All rights reserved. Use is subject to license terms, see LICENSE.txt.
SourceForge.net


Enum Constant Summary
BNG
          British National Grid
FRANCE_I
          France I Grid
FRANCE_II
          France II Grid
FRANCE_III
          France III Grid
FRANCE_IV
          France IV Grid
IRISH
          Irish Grid
ITALY_1
          Italy 1 Grid
ITALY_2
          Italy 2 Grid
NZ
          New Zealand Grid
OSGB
          Alias for BNG - British National Grid
SWEDISH
          Swedish Grid
SWISS
          Swiss Grid
TM_USER
          Transverse Mercator (User Grid)
UTM
          UTM Grid
VICMAP_TM
          Vicmap TM Grid
 
Method Summary
 int getInteger()
          Retrieve the integer constant for this emumerated type member.
 String getString()
          Retrieve the name of this enumerated type member.
 String toString()
          Retrieve a string representation of this enumerated type member.
static Grid valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Grid[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UTM

public static final Grid UTM
UTM Grid


TM_USER

public static final Grid TM_USER
Transverse Mercator (User Grid)


BNG

public static final Grid BNG
British National Grid


OSGB

public static final Grid OSGB
Alias for BNG - British National Grid


IRISH

public static final Grid IRISH
Irish Grid


NZ

public static final Grid NZ
New Zealand Grid


SWEDISH

public static final Grid SWEDISH
Swedish Grid


SWISS

public static final Grid SWISS
Swiss Grid


FRANCE_I

public static final Grid FRANCE_I
France I Grid


FRANCE_II

public static final Grid FRANCE_II
France II Grid


FRANCE_III

public static final Grid FRANCE_III
France III Grid


FRANCE_IV

public static final Grid FRANCE_IV
France IV Grid


ITALY_1

public static final Grid ITALY_1
Italy 1 Grid


ITALY_2

public static final Grid ITALY_2
Italy 2 Grid


VICMAP_TM

public static final Grid VICMAP_TM
Vicmap TM Grid

Method Detail

values

public static Grid[] 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 (Grid c : Grid.values())
    System.out.println(c);

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

valueOf

public static Grid 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

getInteger

public int getInteger()
Retrieve the integer constant for this emumerated type member.

Returns:
the integer constant for this enumerated type member.

getString

public String getString()
Retrieve the name of this enumerated type member.

Returns:
the name of this enumerated type member.

toString

public String toString()
Retrieve a string representation of this enumerated type member.

Overrides:
toString in class Enum<Grid>
Returns:
a string representation of this enumerated type member.