Class BoundsImpl
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.BoundsImpl
- All Implemented Interfaces:
Bounds, 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>, 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidCauses the internal (left,right,width,height) values to be scaled by a the specified Insetsfinal BoundsadjustedInstance(Insets ins) Creates a new 'Bounds' instance by adjusting the existing 'Bounds' instance using the given 'Insets' NOTE: Manually writtenbooleanReturns if the given point is within this bounds.A convenient method to get an instance copy.static final Boundscreate(double dLeft, double dTop, double dWidth, double dHeight) Convenient creation of a Bounds object and instantiates member variables NOTE: Manually writtenstatic final BoundscreateDefault(double dLeft, double dTop, double dWidth, double dHeight) Convenient creation of a Bounds object and instantiates member variables NOTE: Manually writtenfinal voiddelta(double dLeft, double dTop, double dWidth, double dHeight) Adds a 'delta' value to the existing member variables and applies it to the current instanceeGet(int featureID, boolean resolve, boolean coreType) booleaneIsSet(int featureID) voidvoideUnset(int featureID) doubledoublegetLeft()doublegetTop()doublegetWidth()booleanbooleanbooleanisSetTop()booleanfinal voidfinal voidscale(double dScale) Causes the internal (left,right,width,height) values to be scaled by a relative (dScale) valuefinal BoundsscaledInstance(double dScale) Returns a new Bounds instance with scaled membersvoidset(double dLeft, double dTop, double dWidth, double dHeight) A convenient method that allows initializing member variables.voidsetHeight(double newHeight) voidsetLeft(double newLeft) voidsetTop(double newTop) voidsetWidth(double newWidth) toString()final voidtranslate(double dTranslateX, double dTranslateY) Causes the internal (left,right) location to be translated by a relative value of (dTranslateX, dTranslateY)final BoundstranslateInstance(double dTranslateX, double dTranslateY) Creates a new 'Bounds' instance by translate the existing 'Bounds' instance using given offsets.voidvoidvoidunsetTop()voidvoidupdateFrom(Location[] loa) Updates an existing Bounds instance to encompass the polygon specified by a given set of pointsMethods 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 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
-
Method Details
-
getLeft
-
setLeft
-
unsetLeft
-
isSetLeft
-
getTop
-
setTop
-
unsetTop
-
isSetTop
-
getWidth
-
setWidth
-
unsetWidth
-
isSetWidth
public boolean isSetWidth()- Specified by:
isSetWidthin interfaceBounds- Returns:
- whether the value of the 'Width' attribute is set.
- See Also:
-
getHeight
-
setHeight
-
unsetHeight
-
isSetHeight
public boolean isSetHeight()- Specified by:
isSetHeightin interfaceBounds- Returns:
- whether the value of the 'Height' 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
-
set
-
create
Convenient creation of a Bounds object and instantiates member variables NOTE: Manually written- Parameters:
dLeft-dTop-dWidth-dHeight-- Returns:
-
createDefault
Convenient creation of a Bounds object and instantiates member variables NOTE: Manually written- Parameters:
dLeft-dTop-dWidth-dHeight-- Returns:
-
adjustedInstance
Creates a new 'Bounds' instance by adjusting the existing 'Bounds' instance using the given 'Insets' NOTE: Manually written- Specified by:
adjustedInstancein interfaceBounds- Parameters:
ins-- Returns:
-
translateInstance
Creates a new 'Bounds' instance by translate the existing 'Bounds' instance using given offsets.- Specified by:
translateInstancein interfaceBounds- Parameters:
dTranslateX-dTranslateY-- Returns:
-
delta
public final void delta(double dLeft, double dTop, double dWidth, double dHeight) Description copied from interface:BoundsAdds a 'delta' value to the existing member variables and applies it to the current instance -
translate
-
scale
-
scaledInstance
Description copied from interface:BoundsReturns a new Bounds instance with scaled members- Specified by:
scaledInstancein interfaceBounds- Parameters:
dScale- The scaling factor- Returns:
- A new scaled instance
-
adjust
-
updateFrom
Description copied from interface:BoundsUpdates an existing Bounds instance to encompass the polygon specified by a given set of points- Specified by:
updateFromin interfaceBounds- Parameters:
loa-
-
max
-
contains
-
copyInstance
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy().- Specified by:
copyInstancein interfaceBounds- Specified by:
copyInstancein interfaceIChartObject
-