Class GradientImpl
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.FillImpl
org.eclipse.birt.chart.model.attribute.impl.GradientImpl
- All Implemented Interfaces:
Fill
,Gradient
,IChartObject
,org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.ecore.InternalEObject
An implementation of the model object '
Gradient'.
The following features are implemented:
-
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 TypeMethodDescriptionorg.eclipse.emf.common.notify.NotificationChain
basicSetEndColor
(ColorDefinition newEndColor, org.eclipse.emf.common.notify.NotificationChain msgs) org.eclipse.emf.common.notify.NotificationChain
basicSetStartColor
(ColorDefinition newStartColor, org.eclipse.emf.common.notify.NotificationChain msgs) A convenient method to get an instance copy.static final Gradient
create
(ColorDefinition cdStart, ColorDefinition cdEnd) static final Gradient
create
(ColorDefinition cdStart, ColorDefinition cdEnd, double dDirectionInDegrees, boolean bCyclic) A convenience method provided to create a gradient instance with all member variables initializedeGet
(int featureID, boolean resolve, boolean coreType) org.eclipse.emf.common.notify.NotificationChain
eInverseRemove
(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs) boolean
eIsSet
(int featureID) void
void
eUnset
(int featureID) double
int
boolean
isCyclic()
boolean
boolean
boolean
void
setCyclic
(boolean newCyclic) void
setDirection
(double newDirection) void
setEndColor
(ColorDefinition newEndColor) void
setStartColor
(ColorDefinition newStartColor) void
setTransparency
(int newTransparency) toString()
void
void
void
Methods inherited from class org.eclipse.birt.chart.model.attribute.impl.FillImpl
getType, isSetType, setType, unsetType
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, 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.birt.chart.model.attribute.Fill
getType, isSetType, setType, unsetType
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
-
getStartColor
- Specified by:
getStartColor
in interfaceGradient
- Returns:
- the value of the 'Start Color' containment reference.
- See Also:
-
basicSetStartColor
public org.eclipse.emf.common.notify.NotificationChain basicSetStartColor(ColorDefinition newStartColor, org.eclipse.emf.common.notify.NotificationChain msgs) -
setStartColor
- Specified by:
setStartColor
in interfaceGradient
- Parameters:
newStartColor
- the new value of the 'Start Color' containment reference.- See Also:
-
getEndColor
- Specified by:
getEndColor
in interfaceGradient
- Returns:
- the value of the 'End Color' containment reference.
- See Also:
-
basicSetEndColor
public org.eclipse.emf.common.notify.NotificationChain basicSetEndColor(ColorDefinition newEndColor, org.eclipse.emf.common.notify.NotificationChain msgs) -
setEndColor
- Specified by:
setEndColor
in interfaceGradient
- Parameters:
newEndColor
- the new value of the 'End Color' containment reference.- See Also:
-
getDirection
public double getDirection()- Specified by:
getDirection
in interfaceGradient
- Returns:
- the value of the 'Direction' attribute.
- See Also:
-
setDirection
public void setDirection(double newDirection) - Specified by:
setDirection
in interfaceGradient
- Parameters:
newDirection
- the new value of the 'Direction' attribute.- See Also:
-
unsetDirection
public void unsetDirection()- Specified by:
unsetDirection
in interfaceGradient
- See Also:
-
isSetDirection
public boolean isSetDirection()- Specified by:
isSetDirection
in interfaceGradient
- Returns:
- whether the value of the 'Direction' attribute is set.
- See Also:
-
isCyclic
public boolean isCyclic() -
setCyclic
public void setCyclic(boolean newCyclic) -
unsetCyclic
public void unsetCyclic()- Specified by:
unsetCyclic
in interfaceGradient
- See Also:
-
isSetCyclic
public boolean isSetCyclic()- Specified by:
isSetCyclic
in interfaceGradient
- Returns:
- whether the value of the 'Cyclic' attribute is set.
- See Also:
-
getTransparency
public int getTransparency()- Specified by:
getTransparency
in interfaceGradient
- Returns:
- the value of the 'Transparency' attribute.
- See Also:
-
setTransparency
public void setTransparency(int newTransparency) - Specified by:
setTransparency
in interfaceGradient
- Parameters:
newTransparency
- the new value of the 'Transparency' attribute.- See Also:
-
unsetTransparency
public void unsetTransparency()- Specified by:
unsetTransparency
in interfaceGradient
- See Also:
-
isSetTransparency
public boolean isSetTransparency()- Specified by:
isSetTransparency
in interfaceGradient
- Returns:
- whether the value of the 'Transparency' attribute is set.
- See Also:
-
eInverseRemove
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs) - Overrides:
eInverseRemove
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eGet
-
eSet
-
eUnset
public void eUnset(int featureID) -
eIsSet
public boolean eIsSet(int featureID) -
toString
-
create
public static final Gradient create(ColorDefinition cdStart, ColorDefinition cdEnd, double dDirectionInDegrees, boolean bCyclic) A convenience method provided to create a gradient instance with all member variables initialized- Parameters:
cdStart
-cdEnd
-dDirectionInDegrees
- Must lie within the range of (90 >= 0 >= -90)bCyclic
-- Returns:
- grandient instance with setting 'isSet' flag.
-
create
-
copyInstance
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy().- Specified by:
copyInstance
in interfaceFill
- Specified by:
copyInstance
in interfaceGradient
- Specified by:
copyInstance
in interfaceIChartObject
- Overrides:
copyInstance
in classFillImpl
-