|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gdal.gdal.ColorTable
public class ColorTable
Class ColorTable represents a color table / palette.
The ColorTable class is a binding for the C++ GDALColorTable class.
Constructor Summary | |
---|---|
ColorTable()
Construct a new color table. |
|
ColorTable(int ePaletteInterpretation)
Construct a new color table. |
Method Summary | |
---|---|
Object |
clone()
Make a copy of a color table. |
ColorTable |
Clone()
Make a copy of a color table. |
void |
CreateColorRamp(int nStartIndex,
Color startcolor,
int nEndIndex,
Color endcolor)
Create color ramp. |
void |
delete()
|
Color |
GetColorEntry(int entry)
Fetch a color entry from table. |
int |
GetCount()
Get number of color entries in table. |
IndexColorModel |
getIndexColorModel(int bits)
|
int |
GetPaletteInterpretation()
Fetch palette interpretation. |
void |
SetColorEntry(int entry,
Color centry)
Set entry in color table. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColorTable(int ePaletteInterpretation)
public ColorTable()
ColorTable(int ePaletteInterpretation)
Method Detail |
---|
public void delete()
public Object clone()
clone
in class Object
public IndexColorModel getIndexColorModel(int bits)
public ColorTable Clone()
public int GetPaletteInterpretation()
public int GetCount()
public Color GetColorEntry(int entry)
entry
- entry offset from zero to GetCount()-1.
public void SetColorEntry(int entry, Color centry)
entry
- entry offset from zero to GetCount()-1.centry
- value to assign to table.public void CreateColorRamp(int nStartIndex, Color startcolor, int nEndIndex, Color endcolor)
nStartIndex
- index to start the ramp on the color table [0..255]startcolor
- a color value to start the rampnEndIndex
- index to end the ramp on the color table [0..255]endcolor
- a color value to end the ramp
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |