001: /*
002: * uDig - User Friendly Desktop Internet GIS client http://udig.refractions.net (C) 2004,
003: * Refractions Research Inc. This library is free software; you can redistribute it and/or modify it
004: * under the terms of the GNU Lesser General Public License as published by the Free Software
005: * Foundation; version 2.1 of the License. This library is distributed in the hope that it will be
006: * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
007: * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
008: */
009: package net.refractions.udig.project.internal;
010:
011: import java.util.List;
012:
013: import org.eclipse.emf.common.notify.Adapter;
014: import org.eclipse.emf.ecore.EObject;
015: import org.geotools.filter.Filter;
016:
017: import com.vividsolutions.jts.geom.Envelope;
018:
019: /**
020: * TODO Purpose of net.refractions.udig.project.internal
021: * <p>
022: * </p>
023: *
024: * @author Jesse
025: * @since 1.0.0
026: * @model
027: * @deprecated
028: */
029: public interface ContextModel extends EObject {
030: /**
031: * <!-- begin-user-doc --> <!-- end-user-doc -->
032: * @generated
033: */
034: String copyright = "uDig - User Friendly Desktop Internet GIS client http://udig.refractions.net (C) 2004, Refractions Research Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details."; //$NON-NLS-1$
035:
036: /**
037: * Select all selectable layers, with a BoundingBox Geometry filter. Boundingbox must be in the
038: * same CRS as the ViewportModel
039: * <p>
040: * Any Tool that wishes to be undoable would will need to remember the previous state.
041: * </p>
042: *
043: * @param boundingBox the bounding box in Viewportmodel CRS to create a filter with
044: * @deprecated use {@link Map#select(Envelope)}
045: */
046: public void select(Envelope boundingBox);
047:
048: /**
049: * Select all selectable layers, with a BoundingBox Geometry filter. Boundingbox must be in the
050: * same CRS as the ViewportModel
051: * <p>
052: * Any Tool that wishes to be undoable would will need to remember the previous state.
053: * </p>
054: *
055: * @param boundingBox the bounding box in Viewportmodel CRS to create a filter with
056: * @param and true adds (or with current filter)to the current selection, false removes from the
057: * current selection(and with current filter).
058: * @deprecated use {@link Map#select(Envelope, boolean)}
059: */
060: public void select(Envelope boundingBox, boolean and);
061:
062: /**
063: * Select all selectable layers, with the provided filter.
064: * <p>
065: * Any Tool that wishes to be undoable would will need to remember the previous state.
066: * </p>
067: *
068: * @param filter new selection filter
069: * @deprecated use {@link Map#select(Filter)}
070: */
071: public void select(Filter filter);
072:
073: /**
074: * Combines selection, from the selectable layers, with the provided filter.
075: * <p>
076: * Any Tool that wishes to be undoable would will need to remember the previous state.
077: * </p>
078: *
079: * @param filter the new filter
080: * @param and true adds (or with current filter)to the current selection, false removes from the
081: * current selection(and with current filter).
082: * @deprecated use {@link Map#select(Filter, boolean)}
083: */
084: public void select(Filter filter, boolean and);
085:
086: /**
087: * Gets the complete set of Layer objects. The order of the objects represents the the z-order
088: * in which they are renderered
089: *
090: * @return A List of all the Layers in the object
091: * @model type="Layer" containment="true" opposite="contextModel"
092: * @deprecated use {@link Map#getLayersInternal()}
093: */
094: public List<Layer> getLayers();
095:
096: /**
097: * Gets the complete set of Layer objects. The order of the objects represents the the z-order
098: * in which they are renderered
099: *
100: * @return A List of all the Layers in the object
101: * @see getLayers for the EMF data model
102: * @deprecated use {@link Map#getLayersInternal()}
103: */
104: public List<Layer> layers();
105:
106: /**
107: * Gets the owning map object.
108: *
109: * @return the owning map object.
110: * @model opposite="contextModel" many="false"
111: */
112: public Map getMap();
113:
114: /**
115: * Sets the value of the '{@link net.refractions.udig.project.internal.ContextModel#getMap <em>Map</em>}' container reference.
116: * <!-- begin-user-doc --> <!-- end-user-doc -->
117: * @param value the new value of the '<em>Map</em>' container reference.
118: * @see #getMap()
119: * @generated
120: */
121: void setMap(Map value);
122:
123: /**
124: * Adds an adapter to the context model and all of the layers in the model.
125: * Each time a layer is added the adapter will be added to the model as well.
126: *
127: * @param adapter adapter to add as a deep adapter
128: * @deprecated use {@link Map#addDeepAdapter(Adapter)}
129: */
130: public void addDeepAdapter(Adapter adapter);
131:
132: /**
133: * Removes the adapter from all layers and context model.
134: *
135: *@see #addDeepAdapter(Adapter)
136: * @param adapter adapter to remove.
137: * @deprecated use {@link Map#removeDeepAdapter(Adapter)}
138: */
139: public void removeDeepAdapter(Adapter adapter);
140:
141: /**
142: * Increases the ZOrder of the layer so it is rendered earlier with incomparison to the other
143: * layers. If the Layer is at the bottom of the render list(first to be drawn) it is not
144: * affected.
145: *
146: * @param layer The layer whose rendering order will be modified
147: * @deprecated use {@link Map#lowerLayer(Layer)}
148: */
149: public void lowerLayer(Layer layer);
150:
151: /**
152: * Decreases the ZOrder of the layer so it is rendered later with incomparison to the other
153: * layers. If the Layer is at the top of the render list(last to be drawn) it is not affected.
154: *
155: * @param layer The layer whose rendering order will be modified
156: * @deprecated use {@link Map#raiseLayer(Layer)}
157: */
158: public void raiseLayer(Layer layer);
159:
160: }
|