Class InsetsImpl
- 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.InsetsImpl
-
- All Implemented Interfaces:
Insets,IChartObject,org.eclipse.emf.common.notify.Notifier,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.InternalEObject
public class InsetsImpl extends org.eclipse.emf.ecore.impl.EObjectImpl implements Insets
-
-
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 java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareLessThan(double dValue)A convenience method provdided to detect if all members are below a certain value NOTE: Manually writtenInsetscopyInstance()A convenient method to get an instance copy.static Insetscreate(double dTop, double dLeft, double dBottom, double dRight)A convenient method for creating an instance and initializing member variables.static InsetscreateDefault(double dTop, double dLeft, double dBottom, double dRight)A convenient method for creating an instance and initializing member variables.java.lang.ObjecteGet(int featureID, boolean resolve, boolean coreType)booleaneIsSet(int featureID)booleanequals(java.lang.Object obj)voideSet(int featureID, java.lang.Object newValue)voideUnset(int featureID)doublegetBottom()doublegetLeft()doublegetRight()doublegetTop()inthashCode()booleanisSetBottom()booleanisSetLeft()booleanisSetRight()booleanisSetTop()static Insetsmax(Insets ins1, Insets ins2)static Insetsmin(Insets ins1, Insets ins2)InsetsscaledInstance(double dScale)Returns a new instance with scaled members w.r.t this instance.voidset(double dTop, double dLeft, double dBottom, double dRight)A convenient method for initializing member variables.voidsetBottom(double newBottom)voidsetLeft(double newLeft)voidsetRight(double newRight)voidsetTop(double newTop)java.lang.StringtoString()voidunsetBottom()voidunsetLeft()voidunsetRight()voidunsetTop()-
Methods 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
-
-
-
-
Method Detail
-
getTop
public double getTop()
- Specified by:
getTopin interfaceInsets- Returns:
- the value of the 'Top' attribute.
- See Also:
Insets.isSetTop(),Insets.unsetTop(),Insets.setTop(double),AttributePackage.getInsets_Top()
-
setTop
public void setTop(double newTop)
- Specified by:
setTopin interfaceInsets- Parameters:
newTop- the new value of the 'Top' attribute.- See Also:
Insets.isSetTop(),Insets.unsetTop(),Insets.getTop()
-
unsetTop
public void unsetTop()
- Specified by:
unsetTopin interfaceInsets- See Also:
Insets.isSetTop(),Insets.getTop(),Insets.setTop(double)
-
isSetTop
public boolean isSetTop()
- Specified by:
isSetTopin interfaceInsets- Returns:
- whether the value of the 'Top' attribute is set.
- See Also:
Insets.unsetTop(),Insets.getTop(),Insets.setTop(double)
-
getLeft
public double getLeft()
- Specified by:
getLeftin interfaceInsets- Returns:
- the value of the 'Left' attribute.
- See Also:
Insets.isSetLeft(),Insets.unsetLeft(),Insets.setLeft(double),AttributePackage.getInsets_Left()
-
setLeft
public void setLeft(double newLeft)
- Specified by:
setLeftin interfaceInsets- Parameters:
newLeft- the new value of the 'Left' attribute.- See Also:
Insets.isSetLeft(),Insets.unsetLeft(),Insets.getLeft()
-
unsetLeft
public void unsetLeft()
- Specified by:
unsetLeftin interfaceInsets- See Also:
Insets.isSetLeft(),Insets.getLeft(),Insets.setLeft(double)
-
isSetLeft
public boolean isSetLeft()
- Specified by:
isSetLeftin interfaceInsets- Returns:
- whether the value of the 'Left' attribute is set.
- See Also:
Insets.unsetLeft(),Insets.getLeft(),Insets.setLeft(double)
-
getBottom
public double getBottom()
- Specified by:
getBottomin interfaceInsets- Returns:
- the value of the 'Bottom' attribute.
- See Also:
Insets.isSetBottom(),Insets.unsetBottom(),Insets.setBottom(double),AttributePackage.getInsets_Bottom()
-
setBottom
public void setBottom(double newBottom)
- Specified by:
setBottomin interfaceInsets- Parameters:
newBottom- the new value of the 'Bottom' attribute.- See Also:
Insets.isSetBottom(),Insets.unsetBottom(),Insets.getBottom()
-
unsetBottom
public void unsetBottom()
- Specified by:
unsetBottomin interfaceInsets- See Also:
Insets.isSetBottom(),Insets.getBottom(),Insets.setBottom(double)
-
isSetBottom
public boolean isSetBottom()
- Specified by:
isSetBottomin interfaceInsets- Returns:
- whether the value of the 'Bottom' attribute is set.
- See Also:
Insets.unsetBottom(),Insets.getBottom(),Insets.setBottom(double)
-
getRight
public double getRight()
- Specified by:
getRightin interfaceInsets- Returns:
- the value of the 'Right' attribute.
- See Also:
Insets.isSetRight(),Insets.unsetRight(),Insets.setRight(double),AttributePackage.getInsets_Right()
-
setRight
public void setRight(double newRight)
- Specified by:
setRightin interfaceInsets- Parameters:
newRight- the new value of the 'Right' attribute.- See Also:
Insets.isSetRight(),Insets.unsetRight(),Insets.getRight()
-
unsetRight
public void unsetRight()
- Specified by:
unsetRightin interfaceInsets- See Also:
Insets.isSetRight(),Insets.getRight(),Insets.setRight(double)
-
isSetRight
public boolean isSetRight()
- Specified by:
isSetRightin interfaceInsets- Returns:
- whether the value of the 'Right' attribute is set.
- See Also:
Insets.unsetRight(),Insets.getRight(),Insets.setRight(double)
-
eGet
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)- Specified by:
eGetin interfaceorg.eclipse.emf.ecore.InternalEObject- Overrides:
eGetin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eSet
public void eSet(int featureID, java.lang.Object newValue)- 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
public java.lang.String toString()
- Overrides:
toStringin classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
set
public void set(double dTop, double dLeft, double dBottom, double dRight)A convenient method for initializing member variables. Note: Manually written
-
create
public static final Insets create(double dTop, double dLeft, double dBottom, double dRight)
A convenient method for creating an instance and initializing member variables. Note: Manually written- Parameters:
dTop-dLeft-dBottom-dRight-- Returns:
-
createDefault
public static final Insets createDefault(double dTop, double dLeft, double dBottom, double dRight)
A convenient method for creating an instance and initializing member variables. Note: Manually written- Parameters:
dTop-dLeft-dBottom-dRight-- Returns:
-
scaledInstance
public final Insets scaledInstance(double dScale)
Description copied from interface:InsetsReturns a new instance with scaled members w.r.t this instance. NOTE: Manually written- Specified by:
scaledInstancein interfaceInsets- Returns:
-
areLessThan
public boolean areLessThan(double dValue)
Description copied from interface:InsetsA convenience method provdided to detect if all members are below a certain value NOTE: Manually written- Specified by:
areLessThanin interfaceInsets- Returns:
-
copyInstance
public Insets copyInstance()
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy().- Specified by:
copyInstancein interfaceIChartObject- Specified by:
copyInstancein interfaceInsets
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-