Class SizeImpl
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.birt.chart.model.attribute.impl.SizeImpl
- All Implemented Interfaces:
Size,IChartObject,org.eclipse.emf.common.notify.Notifier,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.InternalEObject
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterListNested classes/interfaces inherited from interface 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_FLAGFields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE -
Constructor Summary
ConstructorsConstructorDescriptionSizeImpl(double dWidth, double dHeight) An additional constructor that allows creation of a Size instance and initializing member variables. -
Method Summary
Modifier and TypeMethodDescriptionA convenient method to get an instance copy.static final Sizecreate(double dWidth, double dHeight) /** Convenient creation of a Size object and instantiates member variables NOTE: Manually writteneGet(int featureID, boolean resolve, boolean coreType) booleaneIsSet(int featureID) voidvoideUnset(int featureID) doubledoublegetWidth()booleanbooleanfinal voidscale(double dScale) Scales the size instance as specified via the 'dScale' parameterfinal SizescaleInstance(double dScale) Returns a new size instance with scaled membersvoidsetHeight(double newHeight) voidsetWidth(double newWidth) toString()voidvoidMethods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURIMethods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnsetMethods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotifyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequiredMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Constructor Details
-
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 Details
-
getHeight
public double getHeight() -
setHeight
public void setHeight(double newHeight) -
unsetHeight
public void unsetHeight()- Specified by:
unsetHeightin interfaceSize- See Also:
-
isSetHeight
public boolean isSetHeight()- Specified by:
isSetHeightin interfaceSize- Returns:
- whether the value of the 'Height' attribute is set.
- See Also:
-
getWidth
public double getWidth() -
setWidth
public void setWidth(double newWidth) -
unsetWidth
public void unsetWidth()- Specified by:
unsetWidthin interfaceSize- See Also:
-
isSetWidth
public boolean isSetWidth()- Specified by:
isSetWidthin interfaceSize- Returns:
- whether the value of the 'Width' attribute is set.
- See Also:
-
eGet
- Specified by:
eGetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eGetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eSet
- Specified by:
eSetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eSetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eUnset
public void eUnset(int featureID) - Specified by:
eUnsetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eUnsetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eIsSet
public boolean eIsSet(int featureID) - Specified by:
eIsSetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eIsSetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
toString
- Overrides:
toStringin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
create
/** 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:SizeScales the size instance as specified via the 'dScale' parameter -
scaleInstance
Description copied from interface:SizeReturns a new size instance with scaled members- Specified by:
scaleInstancein interfaceSize- Parameters:
dScale- The scaling factor- Returns:
- A new scaled instance
-
copyInstance
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy().- Specified by:
copyInstancein interfaceIChartObject- Specified by:
copyInstancein interfaceSize
-