|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucla.loni.LOVE.BoundedModelImpl edu.ucla.loni.LOVE.colormap.BoundedColorMap
public class BoundedColorMap
This is a bounded colormap. Any changes to this
colormap will fire a PropertyChangeEvent
to
the listeners that are registered.
This class will create a actual colormap class based on the
user's choice, and delegate all the request of colormap changes
to this colormap instance and send a changevent as well.
It will return the colormap generated by this colormap.
The affected properties may include:
upper limit, lower limit, under color, over color, alpha,
colormap's style
A special notice on colormap plugin could be found at: ???
Constructor Summary | |
---|---|
BoundedColorMap(int size,
int bits)
/** Constructor. |
|
BoundedColorMap(int size,
int bits,
int n)
Constructor with default initial choice at index n. |
Method Summary | |
---|---|
void |
copyColorMap(BoundedColorMap cMap)
Copy the settings from another colormap. |
byte |
getAlpha()
Get transparency. |
byte[] |
getAlphaMap()
Get Alpha map |
int |
getBits()
Get number of bits for this colormap. |
byte[] |
getBlueMap()
Get Blue map |
java.lang.Object[] |
getColorMapNames()
Get the available colormaps. |
ColorMap |
getColorMapRule()
|
java.awt.image.ColorModel |
getColorModel()
Get a colormodel of current colormap. |
java.lang.Object |
getCurrentColorMapName()
Get colormap's name. |
byte[] |
getGreenMap()
Get Green map |
boolean |
getInverted()
Get inverted. |
int |
getLowerLimit()
Get lower limit. |
java.awt.Color |
getOverColor()
Get over color. |
byte[] |
getRedMap()
Get Red map |
int |
getSize()
Get size of this colormap. |
java.awt.Color |
getUnderColor()
Get under color. |
int |
getUpperLimit()
Get upper limit. |
static void |
main(java.lang.String[] args)
Test Program |
void |
setAlpha(byte alpha)
set transparency. |
void |
setColorMapName(java.lang.Object colorMapName)
Set which colormap to use. |
void |
setInverted(boolean flag)
Set inverted. |
void |
setLowerLimit(int lowerLimit)
set lower limit |
void |
setOverColor(java.awt.Color overColor)
Set over color |
void |
setUnderColor(java.awt.Color underColor)
Set under color |
void |
setUpperLimit(int upperLimit)
set upper limit |
Methods inherited from class edu.ucla.loni.LOVE.BoundedModelImpl |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BoundedColorMap(int size, int bits)
size
- Size of the colormap.bits
- Bits each pixel.public BoundedColorMap(int size, int bits, int n)
size
- Size of the colormap.bits
- Bits each pixel.n
- Index of the intial colormap.Method Detail |
---|
public int getBits()
public int getSize()
public void copyColorMap(BoundedColorMap cMap)
cMap
- The colormap to be copied into this.public java.lang.Object[] getColorMapNames()
public java.lang.Object getCurrentColorMapName()
public ColorMap getColorMapRule()
public void setColorMapName(java.lang.Object colorMapName)
colorMapName
- Name of the colormap to be created.public void setUnderColor(java.awt.Color underColor)
public java.awt.Color getUnderColor()
public void setInverted(boolean flag)
public boolean getInverted()
public void setOverColor(java.awt.Color overColor)
public java.awt.Color getOverColor()
public void setUpperLimit(int upperLimit)
public int getUpperLimit()
public void setLowerLimit(int lowerLimit)
public int getLowerLimit()
public void setAlpha(byte alpha)
public byte getAlpha()
public java.awt.image.ColorModel getColorModel()
public byte[] getRedMap()
public byte[] getGreenMap()
public byte[] getBlueMap()
public byte[] getAlphaMap()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |