public class PaletteImpl extends org.eclipse.emf.ecore.impl.EObjectImpl implements Palette
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
Modifier and Type | Method and Description |
---|---|
Palette |
copyInstance()
A convenient method to get an instance copy.
|
static Palette |
create(Fill f)
A convenience method provided to create a palette with a single color
entry
NOTE: Manually written
|
static Palette |
create(int iIndex,
boolean bEmpty)
A convenience method provided to create an empty or pre-initialized
palette
NOTE: Manually written
|
java.lang.Object |
eGet(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 |
eSet(int featureID,
java.lang.Object newValue) |
void |
eUnset(int featureID) |
org.eclipse.emf.common.util.EList<Fill> |
getEntries() |
java.lang.String |
getName() |
void |
setName(java.lang.String newName) |
void |
shift(int step)
Shifts the colors in palette with the steps.
|
void |
shift(int step,
int size)
Re-creates the palette colors with specified size and shifts the colors
in palette with the steps.
|
java.lang.String |
toString() |
void |
update(Fill f)
This convenience method updates the content of a palette with a single color
NOTE: Manually written
|
void |
update(int iIndex)
This convenience method updates the content of a palette with a library
of colors
NOTE: Manually written
|
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
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
eNotificationRequired, eNotify
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
public java.lang.String getName()
getName
in interface Palette
Palette.setName(String)
,
AttributePackage.getPalette_Name()
public void setName(java.lang.String newName)
setName
in interface Palette
newName
- the new value of the 'Name' attribute.Palette.getName()
public org.eclipse.emf.common.util.EList<Fill> getEntries()
getEntries
in interface Palette
AttributePackage.getPalette_Entries()
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public java.lang.String toString()
toString
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public static final Palette create(int iIndex, boolean bEmpty)
bEmpty
- public static final Palette create(Fill f)
f
- public final void update(int iIndex)
Palette
update
in interface Palette
Palette.shift(int)
public final void update(Fill f)
Palette
public void shift(int step)
Palette
public void shift(int step, int size)
Palette
shift
in interface Palette
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 createpublic Palette copyInstance()
copyInstance
in interface Palette
copyInstance
in interface IChartObject
Copyright © 2005-2008 Actuate Corp. All rights reserved.