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
public class GradientImpl extends FillImpl implements Gradient
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 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 org.eclipse.emf.common.notify.NotificationChainbasicSetEndColor(ColorDefinition newEndColor, org.eclipse.emf.common.notify.NotificationChain msgs)org.eclipse.emf.common.notify.NotificationChainbasicSetStartColor(ColorDefinition newStartColor, org.eclipse.emf.common.notify.NotificationChain msgs)GradientcopyInstance()A convenient method to get an instance copy.static Gradientcreate(ColorDefinition cdStart, ColorDefinition cdEnd)static Gradientcreate(ColorDefinition cdStart, ColorDefinition cdEnd, double dDirectionInDegrees, boolean bCyclic)A convenience method provided to create a gradient instance with all member variables initializedjava.lang.ObjecteGet(int featureID, boolean resolve, boolean coreType)org.eclipse.emf.common.notify.NotificationChaineInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)booleaneIsSet(int featureID)voideSet(int featureID, java.lang.Object newValue)voideUnset(int featureID)doublegetDirection()ColorDefinitiongetEndColor()ColorDefinitiongetStartColor()intgetTransparency()booleanisCyclic()booleanisSetCyclic()booleanisSetDirection()booleanisSetTransparency()voidsetCyclic(boolean newCyclic)voidsetDirection(double newDirection)voidsetEndColor(ColorDefinition newEndColor)voidsetStartColor(ColorDefinition newStartColor)voidsetTransparency(int newTransparency)java.lang.StringtoString()voidunsetCyclic()voidunsetDirection()voidunsetTransparency()-
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
-
-
-
-
Method Detail
-
getStartColor
public ColorDefinition getStartColor()
- Specified by:
getStartColorin interfaceGradient- Returns:
- the value of the 'Start Color' containment reference.
- See Also:
Gradient.setStartColor(ColorDefinition),AttributePackage.getGradient_StartColor()
-
basicSetStartColor
public org.eclipse.emf.common.notify.NotificationChain basicSetStartColor(ColorDefinition newStartColor, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setStartColor
public void setStartColor(ColorDefinition newStartColor)
- Specified by:
setStartColorin interfaceGradient- Parameters:
newStartColor- the new value of the 'Start Color' containment reference.- See Also:
Gradient.getStartColor()
-
getEndColor
public ColorDefinition getEndColor()
- Specified by:
getEndColorin interfaceGradient- Returns:
- the value of the 'End Color' containment reference.
- See Also:
Gradient.setEndColor(ColorDefinition),AttributePackage.getGradient_EndColor()
-
basicSetEndColor
public org.eclipse.emf.common.notify.NotificationChain basicSetEndColor(ColorDefinition newEndColor, org.eclipse.emf.common.notify.NotificationChain msgs)
-
setEndColor
public void setEndColor(ColorDefinition newEndColor)
- Specified by:
setEndColorin interfaceGradient- Parameters:
newEndColor- the new value of the 'End Color' containment reference.- See Also:
Gradient.getEndColor()
-
getDirection
public double getDirection()
- Specified by:
getDirectionin interfaceGradient- Returns:
- the value of the 'Direction' attribute.
- See Also:
Gradient.isSetDirection(),Gradient.unsetDirection(),Gradient.setDirection(double),AttributePackage.getGradient_Direction()
-
setDirection
public void setDirection(double newDirection)
- Specified by:
setDirectionin interfaceGradient- Parameters:
newDirection- the new value of the 'Direction' attribute.- See Also:
Gradient.isSetDirection(),Gradient.unsetDirection(),Gradient.getDirection()
-
unsetDirection
public void unsetDirection()
- Specified by:
unsetDirectionin interfaceGradient- See Also:
Gradient.isSetDirection(),Gradient.getDirection(),Gradient.setDirection(double)
-
isSetDirection
public boolean isSetDirection()
- Specified by:
isSetDirectionin interfaceGradient- Returns:
- whether the value of the 'Direction' attribute is set.
- See Also:
Gradient.unsetDirection(),Gradient.getDirection(),Gradient.setDirection(double)
-
isCyclic
public boolean isCyclic()
- Specified by:
isCyclicin interfaceGradient- Returns:
- the value of the 'Cyclic' attribute.
- See Also:
Gradient.isSetCyclic(),Gradient.unsetCyclic(),Gradient.setCyclic(boolean),AttributePackage.getGradient_Cyclic()
-
setCyclic
public void setCyclic(boolean newCyclic)
- Specified by:
setCyclicin interfaceGradient- Parameters:
newCyclic- the new value of the 'Cyclic' attribute.- See Also:
Gradient.isSetCyclic(),Gradient.unsetCyclic(),Gradient.isCyclic()
-
unsetCyclic
public void unsetCyclic()
- Specified by:
unsetCyclicin interfaceGradient- See Also:
Gradient.isSetCyclic(),Gradient.isCyclic(),Gradient.setCyclic(boolean)
-
isSetCyclic
public boolean isSetCyclic()
- Specified by:
isSetCyclicin interfaceGradient- Returns:
- whether the value of the 'Cyclic' attribute is set.
- See Also:
Gradient.unsetCyclic(),Gradient.isCyclic(),Gradient.setCyclic(boolean)
-
getTransparency
public int getTransparency()
- Specified by:
getTransparencyin interfaceGradient- Returns:
- the value of the 'Transparency' attribute.
- See Also:
Gradient.isSetTransparency(),Gradient.unsetTransparency(),Gradient.setTransparency(int),AttributePackage.getGradient_Transparency()
-
setTransparency
public void setTransparency(int newTransparency)
- Specified by:
setTransparencyin interfaceGradient- Parameters:
newTransparency- the new value of the 'Transparency' attribute.- See Also:
Gradient.isSetTransparency(),Gradient.unsetTransparency(),Gradient.getTransparency()
-
unsetTransparency
public void unsetTransparency()
- Specified by:
unsetTransparencyin interfaceGradient- See Also:
Gradient.isSetTransparency(),Gradient.getTransparency(),Gradient.setTransparency(int)
-
isSetTransparency
public boolean isSetTransparency()
- Specified by:
isSetTransparencyin interfaceGradient- Returns:
- whether the value of the 'Transparency' attribute is set.
- See Also:
Gradient.unsetTransparency(),Gradient.getTransparency(),Gradient.setTransparency(int)
-
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:
eInverseRemovein classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
-
eGet
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
-
eSet
public void eSet(int featureID, java.lang.Object newValue)
-
eUnset
public void eUnset(int featureID)
-
eIsSet
public boolean eIsSet(int featureID)
-
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
public static final Gradient create(ColorDefinition cdStart, ColorDefinition cdEnd)
-
copyInstance
public Gradient copyInstance()
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy().- Specified by:
copyInstancein interfaceFill- Specified by:
copyInstancein interfaceGradient- Specified by:
copyInstancein interfaceIChartObject- Overrides:
copyInstancein classFillImpl
-
-