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 extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
Nested 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_FLAG
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Causes the internal (left,right,width,height) values to be scaled by a the specified Insetsfinal Bounds
adjustedInstance
(Insets ins) Creates a new 'Bounds' instance by adjusting the existing 'Bounds' instance using the given 'Insets' NOTE: Manually writtenboolean
Returns if the given point is within this bounds.A convenient method to get an instance copy.static final Bounds
create
(double dLeft, double dTop, double dWidth, double dHeight) Convenient creation of a Bounds object and instantiates member variables NOTE: Manually writtenstatic final Bounds
createDefault
(double dLeft, double dTop, double dWidth, double dHeight) Convenient creation of a Bounds object and instantiates member variables NOTE: Manually writtenfinal void
delta
(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) boolean
eIsSet
(int featureID) void
void
eUnset
(int featureID) double
double
getLeft()
double
getTop()
double
getWidth()
boolean
boolean
boolean
isSetTop()
boolean
final void
final void
scale
(double dScale) Causes the internal (left,right,width,height) values to be scaled by a relative (dScale) valuefinal Bounds
scaledInstance
(double dScale) Returns a new Bounds instance with scaled membersvoid
set
(double dLeft, double dTop, double dWidth, double dHeight) A convenient method that allows initializing member variables.void
setHeight
(double newHeight) void
setLeft
(double newLeft) void
setTop
(double newTop) void
setWidth
(double newWidth) toString()
final void
translate
(double dTranslateX, double dTranslateY) Causes the internal (left,right) location to be translated by a relative value of (dTranslateX, dTranslateY)final Bounds
translateInstance
(double dTranslateX, double dTranslateY) Creates a new 'Bounds' instance by translate the existing 'Bounds' instance using given offsets.void
void
void
unsetTop()
void
void
updateFrom
(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, eSetProxyURI
Methods 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, eVirtualUnset
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, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getLeft
public double getLeft() -
setLeft
public void setLeft(double newLeft) -
unsetLeft
public void unsetLeft() -
isSetLeft
public boolean isSetLeft() -
getTop
public double getTop() -
setTop
public void setTop(double newTop) -
unsetTop
public void unsetTop() -
isSetTop
public boolean isSetTop() -
getWidth
public double getWidth() -
setWidth
public void setWidth(double newWidth) -
unsetWidth
public void unsetWidth()- Specified by:
unsetWidth
in interfaceBounds
- See Also:
-
isSetWidth
public boolean isSetWidth()- Specified by:
isSetWidth
in interfaceBounds
- Returns:
- whether the value of the 'Width' attribute is set.
- See Also:
-
getHeight
public double getHeight() -
setHeight
public void setHeight(double newHeight) -
unsetHeight
public void unsetHeight()- Specified by:
unsetHeight
in interfaceBounds
- See Also:
-
isSetHeight
public boolean isSetHeight()- Specified by:
isSetHeight
in interfaceBounds
- Returns:
- whether the value of the 'Height' attribute is set.
- See Also:
-
eGet
- Specified by:
eGet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eGet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eSet
- Specified by:
eSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eSet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eUnset
public void eUnset(int featureID) - Specified by:
eUnset
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eUnset
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eIsSet
public boolean eIsSet(int featureID) - Specified by:
eIsSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eIsSet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
toString
- Overrides:
toString
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
set
public void set(double dLeft, double dTop, double dWidth, double dHeight) A convenient method that allows initializing member variables. Note: Manually written, no EMF notifying! -
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:
adjustedInstance
in interfaceBounds
- Parameters:
ins
-- Returns:
-
translateInstance
Creates a new 'Bounds' instance by translate the existing 'Bounds' instance using given offsets.- Specified by:
translateInstance
in interfaceBounds
- Parameters:
dTranslateX
-dTranslateY
-- Returns:
-
delta
public final void delta(double dLeft, double dTop, double dWidth, double dHeight) Description copied from interface:Bounds
Adds a 'delta' value to the existing member variables and applies it to the current instance -
translate
public final void translate(double dTranslateX, double dTranslateY) Description copied from interface:Bounds
Causes the internal (left,right) location to be translated by a relative value of (dTranslateX, dTranslateY) -
scale
public final void scale(double dScale) Description copied from interface:Bounds
Causes the internal (left,right,width,height) values to be scaled by a relative (dScale) value -
scaledInstance
Description copied from interface:Bounds
Returns a new Bounds instance with scaled members- Specified by:
scaledInstance
in interfaceBounds
- Parameters:
dScale
- The scaling factor- Returns:
- A new scaled instance
-
adjust
Description copied from interface:Bounds
Causes the internal (left,right,width,height) values to be scaled by a the specified Insets -
updateFrom
Description copied from interface:Bounds
Updates an existing Bounds instance to encompass the polygon specified by a given set of points- Specified by:
updateFrom
in interfaceBounds
-
max
-
contains
Description copied from interface:Bounds
Returns if the given point is within this bounds. -
copyInstance
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy().- Specified by:
copyInstance
in interfaceBounds
- Specified by:
copyInstance
in interfaceIChartObject
-