001: /**
002: * <copyright></copyright> $Id: MultiLayerRendererImpl.java 15577 2005-09-02 17:55:00Z jeichar $
003: */package net.refractions.udig.project.internal.render.impl;
004:
005: import net.refractions.udig.project.internal.render.MultiLayerRenderer;
006: import net.refractions.udig.project.internal.render.RenderPackage;
007: import net.refractions.udig.project.render.IRenderContext;
008:
009: import org.eclipse.emf.ecore.EClass;
010: import org.eclipse.emf.ecore.EStructuralFeature;
011:
012: /**
013: * <!-- begin-user-doc --> An implementation of the model object '
014: * <em><b>Multi Layer Renderer</b></em>'. <!-- end-user-doc -->
015: * <p>
016: * </p>
017: *
018: * @generated
019: */
020: public abstract class MultiLayerRendererImpl extends RendererImpl
021: implements MultiLayerRenderer {
022: /**
023: * <!-- begin-user-doc --> <!-- end-user-doc -->
024: *
025: * @generated
026: */
027: 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$
028:
029: /**
030: * <!-- begin-user-doc --> <!-- end-user-doc -->
031: *
032: * @generated
033: */
034: protected MultiLayerRendererImpl() {
035: super ();
036: }
037:
038: /**
039: * <!-- begin-user-doc --> <!-- end-user-doc -->
040: *
041: * @generated
042: */
043: protected EClass eStaticClass() {
044: return RenderPackage.eINSTANCE.getMultiLayerRenderer();
045: }
046:
047: /**
048: * <!-- begin-user-doc --> <!-- end-user-doc -->
049: *
050: * @generated
051: */
052: public void refreshImage() {
053: // TODO: implement this method
054: // Ensure that you remove @generated or mark it @generated NOT
055: throw new UnsupportedOperationException();
056: }
057:
058: /**
059: * <!-- begin-user-doc --> <!-- end-user-doc -->
060: *
061: * @generated
062: */
063: public Object eGet(EStructuralFeature eFeature, boolean resolve) {
064: switch (eDerivedStructuralFeatureID(eFeature)) {
065: case RenderPackage.MULTI_LAYER_RENDERER__STATE:
066: return new Integer(getState());
067: case RenderPackage.MULTI_LAYER_RENDERER__NAME:
068: return getName();
069: case RenderPackage.MULTI_LAYER_RENDERER__CONTEXT:
070: return getContext();
071: }
072: return eDynamicGet(eFeature, resolve);
073: }
074:
075: /**
076: * <!-- begin-user-doc --> <!-- end-user-doc -->
077: *
078: * @generated
079: */
080: public void eSet(EStructuralFeature eFeature, Object newValue) {
081: switch (eDerivedStructuralFeatureID(eFeature)) {
082: case RenderPackage.MULTI_LAYER_RENDERER__STATE:
083: setState(((Integer) newValue).intValue());
084: return;
085: case RenderPackage.MULTI_LAYER_RENDERER__NAME:
086: setName((String) newValue);
087: return;
088: case RenderPackage.MULTI_LAYER_RENDERER__CONTEXT:
089: setContext((IRenderContext) newValue);
090: return;
091: }
092: eDynamicSet(eFeature, newValue);
093: }
094:
095: /**
096: * <!-- begin-user-doc --> <!-- end-user-doc -->
097: *
098: * @generated
099: */
100: public void eUnset(EStructuralFeature eFeature) {
101: switch (eDerivedStructuralFeatureID(eFeature)) {
102: case RenderPackage.MULTI_LAYER_RENDERER__STATE:
103: setState(STATE_EDEFAULT);
104: return;
105: case RenderPackage.MULTI_LAYER_RENDERER__NAME:
106: setName(NAME_EDEFAULT);
107: return;
108: case RenderPackage.MULTI_LAYER_RENDERER__CONTEXT:
109: setContext((IRenderContext) null);
110: return;
111: }
112: eDynamicUnset(eFeature);
113: }
114:
115: /**
116: * <!-- begin-user-doc --> <!-- end-user-doc -->
117: *
118: * @generated
119: */
120: public boolean eIsSet(EStructuralFeature eFeature) {
121: switch (eDerivedStructuralFeatureID(eFeature)) {
122: case RenderPackage.MULTI_LAYER_RENDERER__STATE:
123: return state != STATE_EDEFAULT;
124: case RenderPackage.MULTI_LAYER_RENDERER__NAME:
125: return NAME_EDEFAULT == null ? name != null
126: : !NAME_EDEFAULT.equals(name);
127: case RenderPackage.MULTI_LAYER_RENDERER__CONTEXT:
128: return context != null;
129: }
130: return eDynamicIsSet(eFeature);
131: }
132:
133: } // MultiLayerRendererImpl
|