|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ColormapStore
Abstract colormap storage. Colormap is "<0,size()-1> -> { Gr[A] | RGB[A] }" mapping. Store can hold a sequence of M colormaps at time.
Field Summary |
---|
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Method Summary | |
---|---|
int[][] |
getColormap(int i)
Retrieves the i-th colormap. |
double[][] |
getColormapDouble(int i)
Retrieves the i-th colormap. |
void |
init()
Store re-initialization (keeps current colormap mode). |
void |
init(int _mode,
int _bands)
Store (re-)initialization. |
double[][] |
setColormap(int i,
double[][] cmap)
Assigns the i-th colormap. |
int[][] |
setColormap(int i,
int[][] cmap)
Assigns the i-th colormap. |
int |
setSize(int newSize)
Assigns the new store size (potentially discards some colormaps). |
int |
size()
Returns the store size (colormaps are indexed from 0 to size() -1). |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit, get, set |
Method Detail |
---|
void init(int _mode, int _bands)
_mode
- Colormap item value type (RasterGraphics.MODE_* constant)._bands
- Number of bands (for RasterGraphics.MODE_BAND
).RasterGraphics
,
init()
void init()
init(int,int)
int size()
size()
-1).
setSize(int)
int setSize(int newSize)
newSize
- The new store size.
size()
double[][] getColormapDouble(int i)
i
- Colormap index (from 0 to size()
-1).
getColormap(int)
int[][] getColormap(int i)
i
- Colormap index (from 0 to size()
-1).
getColormapDouble(int)
int[][] setColormap(int i, int[][] cmap)
i
- Colormap index.cmap
- The new colormap data (or null).
setColormap(int,double[][])
double[][] setColormap(int i, double[][] cmap)
i
- Colormap index.cmap
- The new colormap data (or null).
setColormap(int,int[][])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |