Modifier and Type | Field and Description |
---|---|
static String |
PERSISTENT_DESCRIPTION |
static String |
PERSISTENT_NAME |
Constructor and Description |
---|
ColorItemImpl() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
equals(Object obj) |
Color |
getColor()
Devuelve el color
|
double |
getInterpolated()
Devuelve el valor de interpolación con el siguiente color.
|
String |
getNameClass()
Devuelve el nombre de la clase
|
double |
getValue()
Obtener en que valor estará dicho color
|
int |
hashCode() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistence() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setColor(Color color)
Definir el color
|
void |
setInterpolated(double interpolated)
Definir el valor de interpolación.
|
void |
setNameClass(String nameClass)
Define el nombre de la clase
|
void |
setValue(double value)
Definir el valor del ColorItem.
|
public static final String PERSISTENT_NAME
public static final String PERSISTENT_DESCRIPTION
public Color getColor()
public void setColor(Color color)
public double getInterpolated()
getInterpolated
in interface ColorItem
public void setInterpolated(double interpolated)
setInterpolated
in interface ColorItem
interpolated
- public double getValue()
public void setValue(double value)
public String getNameClass()
getNameClass
in interface ColorItem
public void setNameClass(String nameClass)
setNameClass
in interface ColorItem
nameClass
- public static void registerPersistence()
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException