Class ColorDefinitionImpl
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.ColorDefinitionImpl
- All Implemented Interfaces:
ColorDefinition,Fill,IChartObject,org.eclipse.emf.common.notify.Notifier,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.InternalEObject
An implementation of the model object ' Color
Definition'.
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.EScannableAdapterListNested 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_FLAGFields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE -
Method Summary
Modifier and TypeMethodDescriptionstatic final ColorDefinitionBLACK()An opaque black color with (r=0;g=0;b=0) Note: Manually writtenstatic final ColorDefinitionBLUE()A light opaque blue color with (r=0;g=0;b=255) Note: Manually writtenfinal ColorDefinitionbrighter()NOTE: Manually writtenA convenient method to get an instance copy.static final ColorDefinitionCREAM()An opaque creamy color with (r=249;g=225;b=191) Note: Manually writtenstatic final ColorDefinitioncreate(int iRed, int iGreen, int iBlue) NOTE: Manually writtenstatic final ColorDefinitioncreate(int iRed, int iGreen, int iBlue, int iAlpha) NOTE: Manually writtenstatic final ColorDefinitionCYAN()An opaque cyan color with (r=225;g=225;b=255) Note: Manually writtenfinal ColorDefinitiondarker()NOTE: Manually writteneGet(int featureID, boolean resolve, boolean coreType) booleaneIsSet(int featureID) booleanvoidvoideUnset(int featureID) intgetBlue()intgetGreen()intgetRed()intstatic final ColorDefinitionGREEN()A light opaque green color with (r=0;g=255;b=0) Note: Manually writtenstatic final ColorDefinitionGREY()A light opaque grey color with (r=127;g=127;b=127) Note: Manually writteninthashCode()voidinvert()Inverts the existing color (XORed with 0xFF).booleanbooleanbooleanisSetRed()booleanfinal ColorDefinitionopaque()NOTE: Manually writtenstatic final ColorDefinitionORANGE()An opaque orange color with (r=223;g=197;b=41) Note: Manually writtenstatic final ColorDefinitionPINK()An opaque orange color with (r=255;g=205;b=225) Note: Manually writtenstatic final ColorDefinitionRED()A light opaque red color with (r=255;g=0;b=0) Note: Manually writtenvoidset(int iRed, int iGreen, int iBlue) A convenient method provided to initialize member variables (without transparency) Note: Manually writtenvoidset(int iRed, int iGreen, int iBlue, int iAlpha) A convenient method provided to initialize all member variables (including transparency) Note: Manually writtenvoidsetBlue(int newBlue) voidsetGreen(int newGreen) voidsetRed(int newRed) voidsetTransparency(int newTransparency) toString()final ColorDefinitionNOTE: Manually writtenfinal ColorDefinitionNOTE: Manually writtenstatic final ColorDefinitionA transparent color constant that should be used wherever applicable Note: Manually writtenvoidvoidvoidunsetRed()voidstatic final ColorDefinitionWHITE()An opaque white color with (r=255;g=255;b=255) Note: Manually writtenstatic final ColorDefinitionYELLOW()An opaque yellow color with (r=255;g=255;b=0) Note: Manually writtenMethods inherited from class org.eclipse.birt.chart.model.attribute.impl.FillImpl
getType, isSetType, setType, unsetTypeMethods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURIMethods 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, eVirtualUnsetMethods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotifyMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface org.eclipse.birt.chart.model.attribute.Fill
getType, isSetType, setType, unsetTypeMethods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequiredMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
set
public void set(int iRed, int iGreen, int iBlue) A convenient method provided to initialize member variables (without transparency) Note: Manually written- Specified by:
setin interfaceColorDefinition- Parameters:
iRed-iGreen-iBlue-
-
set
public void set(int iRed, int iGreen, int iBlue, int iAlpha) A convenient method provided to initialize all member variables (including transparency) Note: Manually written- Specified by:
setin interfaceColorDefinition- Parameters:
iRed-iGreen-iBlue-iAlpha-
-
getTransparency
public int getTransparency()- Specified by:
getTransparencyin interfaceColorDefinition- Returns:
- the value of the 'Transparency' attribute.
- See Also:
-
setTransparency
public void setTransparency(int newTransparency) - Specified by:
setTransparencyin interfaceColorDefinition- Parameters:
newTransparency- the new value of the 'Transparency' attribute.- See Also:
-
unsetTransparency
public void unsetTransparency()- Specified by:
unsetTransparencyin interfaceColorDefinition- See Also:
-
isSetTransparency
public boolean isSetTransparency()- Specified by:
isSetTransparencyin interfaceColorDefinition- Returns:
- whether the value of the 'Transparency' attribute is set.
- See Also:
-
getRed
public int getRed()- Specified by:
getRedin interfaceColorDefinition- Returns:
- the value of the 'Red' attribute.
- See Also:
-
setRed
public void setRed(int newRed) - Specified by:
setRedin interfaceColorDefinition- Parameters:
newRed- the new value of the 'Red' attribute.- See Also:
-
unsetRed
public void unsetRed()- Specified by:
unsetRedin interfaceColorDefinition- See Also:
-
isSetRed
public boolean isSetRed()- Specified by:
isSetRedin interfaceColorDefinition- Returns:
- whether the value of the 'Red' attribute is set.
- See Also:
-
getBlue
public int getBlue()- Specified by:
getBluein interfaceColorDefinition- Returns:
- the value of the 'Blue' attribute.
- See Also:
-
setBlue
public void setBlue(int newBlue) - Specified by:
setBluein interfaceColorDefinition- Parameters:
newBlue- the new value of the 'Blue' attribute.- See Also:
-
unsetBlue
public void unsetBlue()- Specified by:
unsetBluein interfaceColorDefinition- See Also:
-
isSetBlue
public boolean isSetBlue()- Specified by:
isSetBluein interfaceColorDefinition- Returns:
- whether the value of the 'Blue' attribute is set.
- See Also:
-
eGet
-
eSet
-
eUnset
public void eUnset(int featureID) -
eIsSet
public boolean eIsSet(int featureID) -
getGreen
public int getGreen()- Specified by:
getGreenin interfaceColorDefinition- Returns:
- the value of the 'Green' attribute.
- See Also:
-
setGreen
public void setGreen(int newGreen) - Specified by:
setGreenin interfaceColorDefinition- Parameters:
newGreen- the new value of the 'Green' attribute.- See Also:
-
unsetGreen
public void unsetGreen()- Specified by:
unsetGreenin interfaceColorDefinition- See Also:
-
isSetGreen
public boolean isSetGreen()- Specified by:
isSetGreenin interfaceColorDefinition- Returns:
- whether the value of the 'Green' attribute is set.
- See Also:
-
toString
-
create
NOTE: Manually written- Parameters:
iRed-iGreen-iBlue-iAlpha-- Returns:
- color definition instance with setting 'isSet' flag.
-
create
NOTE: Manually written- Parameters:
iRed-iGreen-iBlue-- Returns:
- color definition instance with setting 'isSet' flag.
-
TRANSPARENT
A transparent color constant that should be used wherever applicable Note: Manually written -
RED
A light opaque red color with (r=255;g=0;b=0) Note: Manually written -
GREEN
A light opaque green color with (r=0;g=255;b=0) Note: Manually written -
BLUE
A light opaque blue color with (r=0;g=0;b=255) Note: Manually written -
BLACK
An opaque black color with (r=0;g=0;b=0) Note: Manually written -
WHITE
An opaque white color with (r=255;g=255;b=255) Note: Manually written -
YELLOW
An opaque yellow color with (r=255;g=255;b=0) Note: Manually written -
CYAN
An opaque cyan color with (r=225;g=225;b=255) Note: Manually written -
GREY
A light opaque grey color with (r=127;g=127;b=127) Note: Manually written -
ORANGE
An opaque orange color with (r=223;g=197;b=41) Note: Manually written -
CREAM
An opaque creamy color with (r=249;g=225;b=191) Note: Manually written -
PINK
An opaque orange color with (r=255;g=205;b=225) Note: Manually written -
brighter
NOTE: Manually written- Specified by:
brighterin interfaceColorDefinition- Returns:
- A new brighter color instance of this color
-
darker
NOTE: Manually written- Specified by:
darkerin interfaceColorDefinition- Returns:
- A new darker color instance of this color
-
translucent
Description copied from interface:ColorDefinitionNOTE: Manually written- Specified by:
translucentin interfaceColorDefinition- Returns:
- A copy of the existing color but with alpha=127
-
transparent
Description copied from interface:ColorDefinitionNOTE: Manually written- Specified by:
transparentin interfaceColorDefinition- Returns:
- A copy of the existing color but with alpha=0
-
opaque
Description copied from interface:ColorDefinitionNOTE: Manually written- Specified by:
opaquein interfaceColorDefinition- Returns:
- A copy of the existing color but with alpha=255
-
invert
public void invert()Description copied from interface:ColorDefinitionInverts the existing color (XORed with 0xFF).- Specified by:
invertin interfaceColorDefinition
-
copyInstance
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy().- Specified by:
copyInstancein interfaceColorDefinition- Specified by:
copyInstancein interfaceFill- Specified by:
copyInstancein interfaceIChartObject- Overrides:
copyInstancein classFillImpl
-
hashCode
public int hashCode() -
equals
-