Class PaletteImpl
- 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.PaletteImpl
-
- All Implemented Interfaces:
Palette,IChartObject,org.eclipse.emf.common.notify.Notifier,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.InternalEObject
public class PaletteImpl extends org.eclipse.emf.ecore.impl.EObjectImpl implements Palette
-
-
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 PalettecopyInstance()A convenient method to get an instance copy.static Palettecreate(int iIndex, boolean bEmpty)A convenience method provided to create an empty or pre-initialized palette NOTE: Manually writtenstatic Palettecreate(Fill f)A convenience method provided to create a palette with a single color entry NOTE: Manually writtenjava.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)org.eclipse.emf.common.util.EList<Fill>getEntries()java.lang.StringgetName()voidsetName(java.lang.String newName)voidshift(int step)Shifts the colors in palette with the steps.voidshift(int step, int size)Re-creates the palette colors with specified size and shifts the colors in palette with the steps.java.lang.StringtoString()voidupdate(int iIndex)This convenience method updates the content of a palette with a library of colors NOTE: Manually writtenvoidupdate(Fill f)This convenience method updates the content of a palette with a single color NOTE: Manually written-
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
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacePalette- Returns:
- the value of the 'Name' attribute.
- See Also:
Palette.setName(String),AttributePackage.getPalette_Name()
-
setName
public void setName(java.lang.String newName)
- Specified by:
setNamein interfacePalette- Parameters:
newName- the new value of the 'Name' attribute.- See Also:
Palette.getName()
-
getEntries
public org.eclipse.emf.common.util.EList<Fill> getEntries()
- Specified by:
getEntriesin interfacePalette- Returns:
- the value of the 'Entries' containment reference list.
- See Also:
AttributePackage.getPalette_Entries()
-
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)- 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
-
create
public static final Palette create(int iIndex, boolean bEmpty)
A convenience method provided to create an empty or pre-initialized palette NOTE: Manually written- Parameters:
bEmpty-
-
create
public static final Palette create(Fill f)
A convenience method provided to create a palette with a single color entry NOTE: Manually written- Parameters:
f-
-
update
public final void update(int iIndex)
Description copied from interface:PaletteThis convenience method updates the content of a palette with a library of colors NOTE: Manually written- Specified by:
updatein interfacePalette- See Also:
Palette.shift(int)
-
update
public final void update(Fill f)
Description copied from interface:PaletteThis convenience method updates the content of a palette with a single color NOTE: Manually written
-
shift
public void shift(int step)
Description copied from interface:PaletteShifts the colors in palette with the steps. NOTE: Manually written
-
shift
public void shift(int step, int size)Description copied from interface:PaletteRe-creates the palette colors with specified size and shifts the colors in palette with the steps. NOTE: Manually written- Specified by:
shiftin interfacePalette- Parameters:
step- moving steps to rotate the color. If the step is zero or the absolute value is greater than the size of list, do nothing. Negative value means moving to the left side, and positive value is to the right side.size- the size of color library to create
-
copyInstance
public Palette copyInstance()
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy().- Specified by:
copyInstancein interfaceIChartObject- Specified by:
copyInstancein interfacePalette
-
-