| Overview | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object
|
+--java.awt.image.ColorModel
|
+--ncsa.horizon.awt.color.HorizonColorModel
|
+--ncsa.horizon.awt.color.RemappableColorModel
| Field Summary | |
| boolean | cached
if true, map is up to date. |
| HorizonColorModel | refcm
the four-component reference color table |
| int[] | tbl
the cached table of remapped colors. |
| Fields inherited from class ncsa.horizon.awt.color.HorizonColorModel | |
| mapsz, transi | |
| Fields inherited from class java.awt.image.ColorModel | |
| pixel_bits, transferType | |
| Constructor Summary | |
| RemappableColorModel(java.awt.image.IndexColorModel cm)
instantiate a RemappableColorModel. |
|
| RemappableColorModel(HorizonColorModel cm)
instantiate a RemappableColorModel. |
|
| Method Summary | |
| void | cacheMapping()
recalculate and cache the mapping for the entire table. |
| java.lang.Object | clone()
|
| java.awt.image.IndexColorModel | createIndexColorModel()
convert this ColorModel into an IndexColorModel |
| int | getAlpha(int index)
return the red component for the given index |
| byte[] | getAlpha()
return the alpha components of the color table as an array A reference rather than a copy should be returned when possible. |
| int | getBlue(int index)
return the red component for the given index |
| byte[] | getBlue()
return the blue components of the color table as an array A reference rather than a copy should be returned when possible. |
| int | getGreen(int index)
return the red component for the given index |
| byte[] | getGreen()
return the green components of the color table as an array A reference rather than a copy should be returned when possible. |
| int | getMappedIndex(int index)
return the current mapping of a given index to an index in the reference color table. |
| int | getRed(int index)
return the red component for the given index |
| byte[] | getRed()
return the red components of the color table as an array. |
| int | getRefAlpha(int index)
return the alpha component of reference model for a given index |
| int | getRefBlue(int index)
return the blue component of reference model for a given index |
| int | getRefGreen(int index)
return the green component of reference model for a given index |
| HorizonColorModel | getRefModel()
return the reference model as an IndexColorModel |
| int | getRefRed(int index)
return the red component of reference model for a given index |
| int | getRefRGB(int index)
return the color of reference model for a given index |
| void | hardReset()
reset this model to its original state, including the outer, logical colors. |
| void | setOverflowColor(int red,
int green,
int blue,
int alpha)
set the color to be given to datum values greater than some minimum threshold. |
| void | setUndefinedColor(int red,
int green,
int blue,
int alpha)
set the color to be given to undefined datum values. |
| void | setUnderflowColor(int red,
int green,
int blue,
int alpha)
set the color to be given to datum values less than some minimum threshold. |
| void | softReset()
reset this model to its original state, excepting the outer, logical colors. |
| Methods inherited from class ncsa.horizon.awt.color.HorizonColorModel | |
| addHorizonColorModelListener, clearChanged, clone, createIndexColorModel, delayNotify, delayNotify, getAlpha, getAlphas, getBlue, getBlues, getGreen, getGreens, getMapSize, getOverflowColor, getRed, getReds, getTransparentIndex, getUndefinedColor, getUnderflowColor, hasChanged, notifyListeners, removeAllListeners, removeListener, saveColorModel, saveColorModel, saveColorModel, setChanged, setChanged, setOverflowColor, setTransparentIndex, setUndefinedColor, setUnderflowColor | |
| Methods inherited from class java.awt.image.ColorModel | |
| coerceData, createCompatibleSampleModel, createCompatibleWritableRaster, equals, finalize, getAlpha, getAlpha, getAlphaRaster, getBlue, getBlue, getColorSpace, getComponents, getComponents, getComponentSize, getComponentSize, getDataElement, getDataElements, getGreen, getGreen, getNormalizedComponents, getNumColorComponents, getNumComponents, getPixelSize, getRed, getRed, getRGB, getRGB, getRGBdefault, getTransparency, getUnnormalizedComponents, hasAlpha, isAlphaPremultiplied, isCompatibleRaster, isCompatibleSampleModel, setDataElements, toString | |
| Methods inherited from class java.lang.Object | |
| clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait | |
| Field Detail |
protected HorizonColorModel refcm
protected boolean cached
protected int[] tbl
| Constructor Detail |
public RemappableColorModel(java.awt.image.IndexColorModel cm)
cm
- the initial color modelpublic RemappableColorModel(HorizonColorModel cm)
cm
- the initial color model| Method Detail |
public void softReset()
public void hardReset()
public final int getRefRed(int index)
public final int getRefGreen(int index)
public final int getRefBlue(int index)
public final int getRefAlpha(int index)
public final int getRefRGB(int index)
public final HorizonColorModel getRefModel()
public abstract int getMappedIndex(int index)
public void cacheMapping()
public int getRed(int index)
public int getGreen(int index)
public int getBlue(int index)
public int getAlpha(int index)
protected byte[] getRed()
protected byte[] getGreen()
protected byte[] getBlue()
protected byte[] getAlpha()
public java.awt.image.IndexColorModel createIndexColorModel()
public void setUndefinedColor(int red,
int green,
int blue,
int alpha)
public void setUnderflowColor(int red,
int green,
int blue,
int alpha)
public void setOverflowColor(int red,
int green,
int blue,
int alpha)
public java.lang.Object clone()
| Overview | Package | Class | Tree | Deprecated | Index | Help | |||
| PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||