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 boolean
areLessThan(double dValue)
A convenience method provdided to detect if all members are below a certain value NOTE: Manually writtenInsets
copyInstance()
A convenient method to get an instance copy.static Insets
create(double dTop, double dLeft, double dBottom, double dRight)
A convenient method for creating an instance and initializing member variables.static Insets
createDefault(double dTop, double dLeft, double dBottom, double dRight)
A convenient method for creating an instance and initializing member variables.java.lang.Object
eGet(int featureID, boolean resolve, boolean coreType)
boolean
eIsSet(int featureID)
boolean
equals(java.lang.Object obj)
void
eSet(int featureID, java.lang.Object newValue)
void
eUnset(int featureID)
double
getBottom()
double
getLeft()
double
getRight()
double
getTop()
int
hashCode()
boolean
isSetBottom()
boolean
isSetLeft()
boolean
isSetRight()
boolean
isSetTop()
static Insets
max(Insets ins1, Insets ins2)
static Insets
min(Insets ins1, Insets ins2)
Insets
scaledInstance(double dScale)
Returns a new instance with scaled members w.r.t this instance.void
set(double dTop, double dLeft, double dBottom, double dRight)
A convenient method for initializing member variables.void
setBottom(double newBottom)
void
setLeft(double newLeft)
void
setRight(double newRight)
void
setTop(double newTop)
java.lang.String
toString()
void
unsetBottom()
void
unsetLeft()
void
unsetRight()
void
unsetTop()
-
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:
getTop
in 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:
setTop
in interfaceInsets
- Parameters:
newTop
- the new value of the 'Top' attribute.- See Also:
Insets.isSetTop()
,Insets.unsetTop()
,Insets.getTop()
-
unsetTop
public void unsetTop()
- Specified by:
unsetTop
in interfaceInsets
- See Also:
Insets.isSetTop()
,Insets.getTop()
,Insets.setTop(double)
-
isSetTop
public boolean isSetTop()
- Specified by:
isSetTop
in 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:
getLeft
in 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:
setLeft
in interfaceInsets
- Parameters:
newLeft
- the new value of the 'Left' attribute.- See Also:
Insets.isSetLeft()
,Insets.unsetLeft()
,Insets.getLeft()
-
unsetLeft
public void unsetLeft()
- Specified by:
unsetLeft
in interfaceInsets
- See Also:
Insets.isSetLeft()
,Insets.getLeft()
,Insets.setLeft(double)
-
isSetLeft
public boolean isSetLeft()
- Specified by:
isSetLeft
in 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:
getBottom
in 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:
setBottom
in interfaceInsets
- Parameters:
newBottom
- the new value of the 'Bottom' attribute.- See Also:
Insets.isSetBottom()
,Insets.unsetBottom()
,Insets.getBottom()
-
unsetBottom
public void unsetBottom()
- Specified by:
unsetBottom
in interfaceInsets
- See Also:
Insets.isSetBottom()
,Insets.getBottom()
,Insets.setBottom(double)
-
isSetBottom
public boolean isSetBottom()
- Specified by:
isSetBottom
in 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:
getRight
in 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:
setRight
in interfaceInsets
- Parameters:
newRight
- the new value of the 'Right' attribute.- See Also:
Insets.isSetRight()
,Insets.unsetRight()
,Insets.getRight()
-
unsetRight
public void unsetRight()
- Specified by:
unsetRight
in interfaceInsets
- See Also:
Insets.isSetRight()
,Insets.getRight()
,Insets.setRight(double)
-
isSetRight
public boolean isSetRight()
- Specified by:
isSetRight
in 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:
eGet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eGet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eSet
public void eSet(int featureID, java.lang.Object newValue)
- 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
public java.lang.String toString()
- Overrides:
toString
in 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:Insets
Returns a new instance with scaled members w.r.t this instance. NOTE: Manually written- Specified by:
scaledInstance
in interfaceInsets
- Returns:
-
areLessThan
public boolean areLessThan(double dValue)
Description copied from interface:Insets
A convenience method provdided to detect if all members are below a certain value NOTE: Manually written- Specified by:
areLessThan
in interfaceInsets
- Returns:
-
copyInstance
public Insets copyInstance()
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy().- Specified by:
copyInstance
in interfaceIChartObject
- Specified by:
copyInstance
in interfaceInsets
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-