org.eclipse.birt.chart.model.attribute.impl
Class SizeImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended byorg.eclipse.birt.chart.model.attribute.impl.SizeImpl
All Implemented Interfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, org.eclipse.emf.common.notify.Notifier, Size

public class SizeImpl
extends org.eclipse.emf.ecore.impl.EObjectImpl
implements Size

An implementation of the model object ' Size'.

The following features are implemented:


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList
 
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
SizeImpl(double dWidth, double dHeight)
          An additional constructor that allows creation of a Size instance and initializing member variables.
 
Method Summary
static Size create(double dWidth, double dHeight)
          /** Convenient creation of a Size object and instantiates member variables NOTE: Manually written
 java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature, boolean resolve)
           
 boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature, java.lang.Object newValue)
           
 void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)
           
 double getHeight()
           
 double getWidth()
           
 boolean isSetHeight()
           
 boolean isSetWidth()
           
 void scale(double dScale)
          Scales the size instance as specified via the 'dScale' parameter
 void setHeight(double newHeight)
           
 void setWidth(double newWidth)
           
 java.lang.String toString()
           
 void unsetHeight()
           
 void unsetWidth()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eInternalResource, eInverseAdd, eInverseRemove, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSetResource, eSetStore, eSetting, eStore, eURIFragmentSegment
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eIsProxy, eResource
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Constructor Detail

SizeImpl

public SizeImpl(double dWidth,
                double dHeight)
An additional constructor that allows creation of a Size instance and initializing member variables. Note: Manually written

Parameters:
dWidth -
dHeight -
Method Detail

getHeight

public double getHeight()

Specified by:
getHeight in interface Size
Returns:
the value of the 'Height' attribute.
See Also:
Size.isSetHeight(), Size.unsetHeight(), Size.setHeight(double), AttributePackage.getSize_Height()

setHeight

public void setHeight(double newHeight)

Specified by:
setHeight in interface Size
Parameters:
newHeight - the new value of the 'Height' attribute.
See Also:
Size.isSetHeight(), Size.unsetHeight(), Size.getHeight()

unsetHeight

public void unsetHeight()

Specified by:
unsetHeight in interface Size
See Also:
Size.isSetHeight(), Size.getHeight(), Size.setHeight(double)

isSetHeight

public boolean isSetHeight()

Specified by:
isSetHeight in interface Size
Returns:
whether the value of the 'Height' attribute is set.
See Also:
Size.unsetHeight(), Size.getHeight(), Size.setHeight(double)

getWidth

public double getWidth()

Specified by:
getWidth in interface Size
Returns:
the value of the 'Width' attribute.
See Also:
Size.isSetWidth(), Size.unsetWidth(), Size.setWidth(double), AttributePackage.getSize_Width()

setWidth

public void setWidth(double newWidth)

Specified by:
setWidth in interface Size
Parameters:
newWidth - the new value of the 'Width' attribute.
See Also:
Size.isSetWidth(), Size.unsetWidth(), Size.getWidth()

unsetWidth

public void unsetWidth()

Specified by:
unsetWidth in interface Size
See Also:
Size.isSetWidth(), Size.getWidth(), Size.setWidth(double)

isSetWidth

public boolean isSetWidth()

Specified by:
isSetWidth in interface Size
Returns:
whether the value of the 'Width' attribute is set.
See Also:
Size.unsetWidth(), Size.getWidth(), Size.setWidth(double)

eGet

public java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                             boolean resolve)

Specified by:
eGet in interface org.eclipse.emf.ecore.EObject

eSet

public void eSet(org.eclipse.emf.ecore.EStructuralFeature eFeature,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.EObject

eUnset

public void eUnset(org.eclipse.emf.ecore.EStructuralFeature eFeature)

Specified by:
eUnset in interface org.eclipse.emf.ecore.EObject

eIsSet

public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature eFeature)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.EObject

toString

public java.lang.String toString()


create

public static final Size create(double dWidth,
                                double dHeight)
/** Convenient creation of a Size object and instantiates member variables NOTE: Manually written

Parameters:
dWidth -
dHeight -
Returns:

scale

public final void scale(double dScale)
Description copied from interface: Size
Scales the size instance as specified via the 'dScale' parameter

Specified by:
scale in interface Size
Parameters:
dScale -


Copyright © 2005 Actuate Corp. All rights reserved.