gvsig-raster / org.gvsig.raster / trunk / org.gvsig.raster / org.gvsig.raster.lib / org.gvsig.raster.lib.impl / src / main / java / org / gvsig / raster / util / persistence / GenericPersistentColorTable.java @ 2443
History | View | Annotate | Download (608 Bytes)
1 |
package org.gvsig.raster.util.persistence; |
---|---|
2 |
|
3 |
import org.gvsig.fmap.dal.coverage.store.props.ColorTable; |
4 |
import org.gvsig.tools.persistence.PersistentState; |
5 |
import org.gvsig.tools.persistence.exception.PersistenceException; |
6 |
|
7 |
|
8 |
/**
|
9 |
*
|
10 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
11 |
*
|
12 |
*/
|
13 |
public class GenericPersistentColorTable extends GenericPersistentObject { |
14 |
public void loadFromState(PersistentState state) throws PersistenceException { |
15 |
obj = (ColorTable)state.get("value");
|
16 |
} |
17 |
public void saveToState(PersistentState state) throws PersistenceException { |
18 |
state.set("value", ((ColorTable)obj));
|
19 |
} |
20 |
} |