01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.styling;
17:
18: import org.geotools.filter.ConstantExpression;
19:
20: /**
21: * OverlapBehavior tells a system how to behave when multiple raster images in
22: * a layer overlap each other, for example with satellite-image scenes.
23: * <p>
24: * <pre>
25: * <code>
26: * <xsd:element name="OverlapBehavior">
27: * <xsd:annotation>
28: * <xsd:documentation> "OverlapBehavior" tells a
29: * system how to behave when multiple raster images in
30: * a layer overlap each other, for example with
31: * satellite-image scenes. </xsd:documentation>
32: * </xsd:annotation>
33: * <xsd:complexType>
34: * <xsd:choice>
35: * <xsd:element ref="sld:LATEST_ON_TOP"/>
36: * <xsd:element ref="sld:EARLIEST_ON_TOP"/>
37: * <xsd:element ref="sld:AVERAGE"/>
38: * <xsd:element ref="sld:RANDOM"/>
39: * </xsd:choice>
40: * </xsd:complexType>
41: * </xsd:element>
42: *
43: * </code>
44: * </pre>
45: * </p>
46: *
47: * @author Justin Deoliveira, The Open Planning Project
48: *
49: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/api/src/main/java/org/geotools/styling/OverlapBehavior.java $
50: */
51: public class OverlapBehavior extends ConstantExpression {
52: public static final OverlapBehavior LATEST_ON_TOP = new OverlapBehavior(
53: "LATEST_ON_TOP");
54: public static final OverlapBehavior EARLIEST_ON_TOP = new OverlapBehavior(
55: "EARLIEST_ON_TOP");
56: public static final OverlapBehavior AVERAGE = new OverlapBehavior(
57: "AVERAGE");
58: public static final OverlapBehavior RANDOM = new OverlapBehavior(
59: "RANDOM");
60:
61: private OverlapBehavior(String value) {
62: super(value);
63: }
64: }
|