deegree 2.1 (2007/11/08 09:57 build-328-official)

org.deegree.model.csct.ct
Class DomainFlags

java.lang.Object
  extended by javax.media.jai.EnumeratedParameter
      extended by org.deegree.model.csct.ct.DomainFlags
All Implemented Interfaces:
Serializable

public final class DomainFlags
extends javax.media.jai.EnumeratedParameter

Flags indicating parts of domain covered by a convex hull. These flags can be combined. For example, the enum INSIDE.or(OUTSIDE) means that some parts of the convex hull are inside the domain, and some parts of the convex hull are outside the domain.

Version:
1.00, $Revision: 6259 $, $Date: 2007-03-20 10:15:15 +0100 (Di, 20 Mär 2007) $
Author:
OpenGIS (www.opengis.org), Martin Desruisseaux, last edited by: $Author: bezema $
See Also:
"org.opengis.ct.CT_DomainFlags", Serialized Form

Field Summary
static int CT_DF_Discontinuous
          At least one point in a convex hull is not transformed continuously.
static int CT_DF_Inside
          At least one point in a convex hull is inside the transform's domain.
static int CT_DF_Outside
          At least one point in a convex hull is outside the transform's domain.
static DomainFlags DISCONTINUOUS
          At least one point in a convex hull is not transformed continuously.
static DomainFlags INSIDE
          At least one point in a convex hull is inside the transform's domain.
static DomainFlags OUTSIDE
          At least one point in a convex hull is outside the transform's domain.
 
Method Summary
static DomainFlags getEnum(int value)
          Return the enum for the specified value.
 String[] getNames(Locale locale)
          Returns enum's names in the specified locale.
 DomainFlags or(DomainFlags flags)
          Returns a combination of two domain flags.
 
Methods inherited from class javax.media.jai.EnumeratedParameter
equals, getName, getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CT_DF_Inside

public static final int CT_DF_Inside
At least one point in a convex hull is inside the transform's domain.

See Also:
Constant Field Values

CT_DF_Outside

public static final int CT_DF_Outside
At least one point in a convex hull is outside the transform's domain.

See Also:
Constant Field Values

CT_DF_Discontinuous

public static final int CT_DF_Discontinuous
At least one point in a convex hull is not transformed continuously. As an example, consider a "Longitude_Rotation" transform which adjusts longitude coordinates to take account of a change in Prime Meridian. If the rotation is 5 degrees east, then the point (Lat=0,Lon=175) is not transformed continuously, since it is on the meridian line which will be split at +180/-180 degrees.

See Also:
Constant Field Values

INSIDE

public static final DomainFlags INSIDE
At least one point in a convex hull is inside the transform's domain.

See Also:
"org.opengis.ct.CT_DomainFlags#CT_DF_Inside"

OUTSIDE

public static final DomainFlags OUTSIDE
At least one point in a convex hull is outside the transform's domain.

See Also:
"org.opengis.ct.CT_DomainFlags#CT_DF_Outside"

DISCONTINUOUS

public static final DomainFlags DISCONTINUOUS
At least one point in a convex hull is not transformed continuously. As an example, consider a "Longitude_Rotation" transform which adjusts longitude coordinates to take account of a change in Prime Meridian. If the rotation is 5 degrees east, then the point (Lat=0,Lon=175) is not transformed continuously, since it is on the meridian line which will be split at +180/-180 degrees.

See Also:
"org.opengis.ct.CT_DomainFlags#CT_DF_Discontinuous"
Method Detail

getEnum

public static DomainFlags getEnum(int value)
                           throws NoSuchElementException
Return the enum for the specified value. This method is provided for compatibility with "org.opengis.ct.CT_DomainFlags".

Parameters:
value - The enum value.
Returns:
The enum for the specified value.
Throws:
NoSuchElementException - if there is no enum for the specified value.

getNames

public String[] getNames(Locale locale)
Returns enum's names in the specified locale. For example if this enum has value "3", then getNames returns an array of two elements: "Inside" and "Outside".

Parameters:
locale - The locale, or null for the current default locale.
Returns:
Enum's names in the specified locale (never null).

or

public DomainFlags or(DomainFlags flags)
Returns a combination of two domain flags. This is equivalent to getEnum(this.getValue() | flags.getValue()).

Parameters:
flags -
Returns:
a combination of two domain flags. This is equivalent to getEnum(this.getValue() | flags.getValue()).

deegree 2.1 (2007/11/08 09:57 build-328-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net