001: /**
002: * <copyright></copyright> $Id: RenderAdapterFactory.java 21450 2006-09-15 21:43:17Z jeichar $
003: */package net.refractions.udig.project.internal.render.util;
004:
005: import net.refractions.udig.project.IAbstractContext;
006: import net.refractions.udig.project.ILayer;
007: import net.refractions.udig.project.internal.AbstractContext;
008: import net.refractions.udig.project.internal.render.CompositeRenderContext;
009: import net.refractions.udig.project.internal.render.MultiLayerRenderer;
010: import net.refractions.udig.project.internal.render.RenderContext;
011: import net.refractions.udig.project.internal.render.RenderExecutor;
012: import net.refractions.udig.project.internal.render.RenderManager;
013: import net.refractions.udig.project.internal.render.RenderPackage;
014: import net.refractions.udig.project.internal.render.Renderer;
015: import net.refractions.udig.project.internal.render.RendererCreator;
016: import net.refractions.udig.project.internal.render.ViewportModel;
017: import net.refractions.udig.project.render.ICompositeRenderContext;
018: import net.refractions.udig.project.render.IMultiLayerRenderer;
019: import net.refractions.udig.project.render.IRenderContext;
020: import net.refractions.udig.project.render.IRenderManager;
021: import net.refractions.udig.project.render.IRenderer;
022: import net.refractions.udig.project.render.IViewportModel;
023: import net.refractions.udig.project.render.displayAdapter.IMapDisplayListener;
024:
025: import org.eclipse.emf.common.notify.Adapter;
026: import org.eclipse.emf.common.notify.Notifier;
027: import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
028: import org.eclipse.emf.ecore.EObject;
029:
030: /**
031: * TODO Purpose of net.refractions.udig.project.internal.render.util
032: * <p>
033: * </p>
034: *
035: * @author Jesse
036: * @since 1.0.0
037: * @generated
038: */
039: public class RenderAdapterFactory extends AdapterFactoryImpl {
040: /**
041: * <!-- begin-user-doc --> <!-- end-user-doc -->
042: *
043: * @generated
044: */
045: public static final 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$
046:
047: /**
048: * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc -->
049: *
050: * @generated NOT
051: */
052: static RenderPackage modelPackage;
053:
054: /**
055: * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc -->
056: *
057: * @generated
058: */
059: public RenderAdapterFactory() {
060: if (modelPackage == null) {
061: modelPackage = RenderPackage.eINSTANCE;
062: }
063: }
064:
065: /**
066: * Returns whether this factory is applicable for the type of the object. <!-- begin-user-doc
067: * --> This implementation returns <code>true</code> if the object is either the model's
068: * package or is an instance object of the model. <!-- end-user-doc -->
069: *
070: * @return whether this factory is applicable for the type of the object.
071: * @generated
072: */
073: public boolean isFactoryForType(Object object) {
074: if (object == modelPackage) {
075: return true;
076: }
077: if (object instanceof EObject) {
078: return ((EObject) object).eClass().getEPackage() == modelPackage;
079: }
080: return false;
081: }
082:
083: /**
084: * The switch the delegates to the <code>createXXX</code> methods. <!-- begin-user-doc -->
085: * <!-- end-user-doc -->
086: *
087: * @generated
088: */
089: protected RenderSwitch modelSwitch = new RenderSwitch() {
090: public Object caseIRenderManager(IRenderManager object) {
091: return createIRenderManagerAdapter();
092: }
093:
094: public Object caseIViewportModel(IViewportModel object) {
095: return createIViewportModelAdapter();
096: }
097:
098: public Object caseICompositeRenderContext(
099: ICompositeRenderContext object) {
100: return createICompositeRenderContextAdapter();
101: }
102:
103: public Object caseIMultiLayerRenderer(IMultiLayerRenderer object) {
104: return createIMultiLayerRendererAdapter();
105: }
106:
107: public Object caseIRenderContext(IRenderContext object) {
108: return createIRenderContextAdapter();
109: }
110:
111: public Object caseIRenderer(IRenderer object) {
112: return createIRendererAdapter();
113: }
114:
115: public Object caseILayer(ILayer object) {
116: return createILayerAdapter();
117: }
118:
119: public Object caseCompositeRenderContext(
120: CompositeRenderContext object) {
121: return createCompositeRenderContextAdapter();
122: }
123:
124: public Object caseMultiLayerRenderer(MultiLayerRenderer object) {
125: return createMultiLayerRendererAdapter();
126: }
127:
128: public Object caseRenderContext(RenderContext object) {
129: return createRenderContextAdapter();
130: }
131:
132: public Object caseRenderExecutor(RenderExecutor object) {
133: return createRenderExecutorAdapter();
134: }
135:
136: public Object caseRenderManager(RenderManager object) {
137: return createRenderManagerAdapter();
138: }
139:
140: public Object caseViewportModel(ViewportModel object) {
141: return createViewportModelAdapter();
142: }
143:
144: public Object caseComparable(Comparable object) {
145: return createComparableAdapter();
146: }
147:
148: public Object caseRenderer(Renderer object) {
149: return createRendererAdapter();
150: }
151:
152: public Object caseRendererCreator(RendererCreator object) {
153: return createRendererCreatorAdapter();
154: }
155:
156: public Object caseIMapDisplayListener(IMapDisplayListener object) {
157: return createIMapDisplayListenerAdapter();
158: }
159:
160: public Object caseCloneable(Cloneable object) {
161: return createCloneableAdapter();
162: }
163:
164: public Object caseIAbstractContext(IAbstractContext object) {
165: return createIAbstractContextAdapter();
166: }
167:
168: public Object caseAbstractContext(AbstractContext object) {
169: return createAbstractContextAdapter();
170: }
171:
172: public Object defaultCase(EObject object) {
173: return createEObjectAdapter();
174: }
175: };
176:
177: /**
178: * Creates an adapter for the <code>target</code>. <!-- begin-user-doc --> <!-- end-user-doc
179: * -->
180: *
181: * @param target the object to adapt.
182: * @return the adapter for the <code>target</code>.
183: * @generated
184: */
185: public Adapter createAdapter(Notifier target) {
186: return (Adapter) modelSwitch.doSwitch((EObject) target);
187: }
188:
189: /**
190: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.render.IRenderManager <em>IRender Manager</em>}'.
191: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
192: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
193: * end-user-doc -->
194: *
195: * @return the new adapter.
196: * @see net.refractions.udig.project.render.IRenderManager
197: * @generated
198: */
199: public Adapter createIRenderManagerAdapter() {
200: return null;
201: }
202:
203: /**
204: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.render.IViewportModel <em>IViewport Model</em>}'.
205: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
206: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
207: * end-user-doc -->
208: *
209: * @return the new adapter.
210: * @see net.refractions.udig.project.render.IViewportModel
211: * @generated
212: */
213: public Adapter createIViewportModelAdapter() {
214: return null;
215: }
216:
217: /**
218: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.render.ICompositeRenderContext <em>IComposite Render Context</em>}'.
219: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
220: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
221: * end-user-doc -->
222: *
223: * @return the new adapter.
224: * @see net.refractions.udig.project.render.ICompositeRenderContext
225: * @generated
226: */
227: public Adapter createICompositeRenderContextAdapter() {
228: return null;
229: }
230:
231: /**
232: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.render.IMultiLayerRenderer <em>IMulti Layer Renderer</em>}'.
233: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
234: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
235: * end-user-doc -->
236: *
237: * @return the new adapter.
238: * @see net.refractions.udig.project.render.IMultiLayerRenderer
239: * @generated
240: */
241: public Adapter createIMultiLayerRendererAdapter() {
242: return null;
243: }
244:
245: /**
246: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.render.IRenderContext <em>IRender Context</em>}'.
247: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
248: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
249: * end-user-doc -->
250: *
251: * @return the new adapter.
252: * @see net.refractions.udig.project.render.IRenderContext
253: * @generated
254: */
255: public Adapter createIRenderContextAdapter() {
256: return null;
257: }
258:
259: /**
260: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.render.IRenderer <em>IRenderer</em>}'.
261: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
262: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
263: * end-user-doc -->
264: *
265: * @return the new adapter.
266: * @see net.refractions.udig.project.render.IRenderer
267: * @generated
268: */
269: public Adapter createIRendererAdapter() {
270: return null;
271: }
272:
273: /**
274: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.ILayer <em>ILayer</em>}'.
275: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
276: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
277: * end-user-doc -->
278: *
279: * @return the new adapter.
280: * @see net.refractions.udig.project.ILayer
281: * @generated
282: */
283: public Adapter createILayerAdapter() {
284: return null;
285: }
286:
287: /**
288: * Creates a new adapter for an object of class '
289: * {@link net.refractions.udig.project.render.RenderManager <em>Manager</em>}'. <!--
290: * begin-user-doc --> This default implementation returns null so that we can easily ignore
291: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
292: * end-user-doc -->
293: *
294: * @return the new adapter.
295: * @see net.refractions.udig.project.internal.render.RenderManager
296: * @generated
297: */
298: public Adapter createRenderManagerAdapter() {
299: return null;
300: }
301:
302: /**
303: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.internal.render.Renderer <em>Renderer</em>}'.
304: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
305: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
306: * end-user-doc -->
307: *
308: * @return the new adapter.
309: * @see net.refractions.udig.project.internal.render.Renderer
310: * @generated
311: */
312: public Adapter createRendererAdapter() {
313: return null;
314: }
315:
316: /**
317: * Creates a new adapter for an object of class '
318: * {@link net.refractions.udig.project.render.RendererCreator <em>er Creator</em>}'. <!--
319: * begin-user-doc --> This default implementation returns null so that we can easily ignore
320: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
321: * end-user-doc -->
322: *
323: * @return the new adapter.
324: * @see net.refractions.udig.project.internal.render.RendererCreator
325: * @generated
326: */
327: public Adapter createRendererCreatorAdapter() {
328: return null;
329: }
330:
331: /**
332: * Creates a new adapter for an object of class '
333: * {@link net.refractions.udig.project.render.ViewportModel <em>Viewport Model</em>}'. <!--
334: * begin-user-doc --> This default implementation returns null so that we can easily ignore
335: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
336: * end-user-doc -->
337: *
338: * @return the new adapter.
339: * @see net.refractions.udig.project.internal.render.ViewportModel
340: * @generated
341: */
342: public Adapter createViewportModelAdapter() {
343: return null;
344: }
345:
346: /**
347: * Creates a new adapter for an object of class '
348: * {@link net.refractions.udig.project.render.RenderExecutor <em>Executor</em>}'. <!--
349: * begin-user-doc --> This default implementation returns null so that we can easily ignore
350: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
351: * end-user-doc -->
352: *
353: * @return the new adapter.
354: * @see net.refractions.udig.project.internal.render.RenderExecutor
355: * @generated
356: */
357: public Adapter createRenderExecutorAdapter() {
358: return null;
359: }
360:
361: /**
362: * Creates a new adapter for an object of class '
363: * {@link net.refractions.udig.project.render.RenderContext <em>Context</em>}'. <!--
364: * begin-user-doc --> This default implementation returns null so that we can easily ignore
365: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
366: * end-user-doc -->
367: *
368: * @return the new adapter.
369: * @see net.refractions.udig.project.internal.render.RenderContext
370: * @generated
371: */
372: public Adapter createRenderContextAdapter() {
373: return null;
374: }
375:
376: /**
377: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.internal.render.CompositeRenderContext <em>Composite Render Context</em>}'.
378: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
379: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
380: * end-user-doc -->
381: *
382: * @return the new adapter.
383: * @see net.refractions.udig.project.internal.render.CompositeRenderContext
384: * @generated
385: */
386: public Adapter createCompositeRenderContextAdapter() {
387: return null;
388: }
389:
390: /**
391: * Creates a new adapter for an object of class '{@link Comparable <em>Comparable</em>}'. <!--
392: * begin-user-doc --> This default implementation returns null so that we can easily ignore
393: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
394: * end-user-doc -->
395: *
396: * @return the new adapter.
397: * @see Comparable
398: * @generated
399: */
400: public Adapter createComparableAdapter() {
401: return null;
402: }
403:
404: /**
405: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.internal.render.MultiLayerRenderer <em>Multi Layer Renderer</em>}'.
406: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
407: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
408: * end-user-doc -->
409: *
410: * @return the new adapter.
411: * @see net.refractions.udig.project.internal.render.MultiLayerRenderer
412: * @generated
413: */
414: public Adapter createMultiLayerRendererAdapter() {
415: return null;
416: }
417:
418: /**
419: * Creates a new adapter for an object of class '{@link Cloneable <em>Cloneable</em>}'. <!--
420: * begin-user-doc --> This default implementation returns null so that we can easily ignore
421: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
422: * end-user-doc -->
423: *
424: * @return the new adapter.
425: * @see Cloneable
426: * @generated
427: */
428: public Adapter createCloneableAdapter() {
429: return null;
430: }
431:
432: /**
433: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.IAbstractContext <em>IAbstract Context</em>}'.
434: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
435: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
436: * end-user-doc -->
437: *
438: * @return the new adapter.
439: * @see net.refractions.udig.project.IAbstractContext
440: * @generated
441: */
442: public Adapter createIAbstractContextAdapter() {
443: return null;
444: }
445:
446: /**
447: * Creates a new adapter for an object of class '
448: * {@link net.refractions.udig.project.AbstractContext <em>Abstract Context</em>}'. <!--
449: * begin-user-doc --> This default implementation returns null so that we can easily ignore
450: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
451: * end-user-doc -->
452: *
453: * @return the new adapter.
454: * @see net.refractions.udig.project.internal.AbstractContext
455: * @generated
456: */
457: public Adapter createAbstractContextAdapter() {
458: return null;
459: }
460:
461: /**
462: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.render.displayAdapter.IMapDisplayListener <em>IMap Display Listener</em>}'.
463: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
464: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
465: * end-user-doc -->
466: *
467: * @return the new adapter.
468: * @see net.refractions.udig.project.render.displayAdapter.IMapDisplayListener
469: * @generated
470: */
471: public Adapter createIMapDisplayListenerAdapter() {
472: return null;
473: }
474:
475: /**
476: * Creates a new adapter for the default case. <!-- begin-user-doc --> This default
477: * implementation returns null. <!-- end-user-doc -->
478: *
479: * @return the new adapter.
480: * @generated
481: */
482: public Adapter createEObjectAdapter() {
483: return null;
484: }
485:
486: } // RenderAdapterFactory
|