public class LUT extends java.lang.Object implements IcyColorSpaceListener, ScalerListener, ChangeListener, XMLPersistent
Modifier and Type | Class and Description |
---|---|
class |
LUT.LUTChannel |
static class |
LUT.LUTChannelEvent |
static interface |
LUT.LUTChannelListener |
Constructor and Description |
---|
LUT(IcyColorModel cm) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(LUTListener listener)
Add a listener
|
void |
beginUpdate() |
void |
colorSpaceChanged(IcyColorSpaceEvent e) |
void |
copyColormaps(LUT lut)
Deprecated.
Use
setColorMaps(LUT, boolean) instead. |
void |
copyFrom(LUT lut)
Copy LUT from the specified source lut
|
void |
copyScalers(LUT lut)
Deprecated.
Use
setScalers(LUT) instead. |
void |
endUpdate() |
void |
fireLUTChanged(LUTEvent e) |
IcyColorSpace |
getColorSpace() |
LUTBand |
getLutBand(int band)
Deprecated.
Use
getLutChannel(int) instead. |
java.util.ArrayList<LUTBand> |
getLutBands()
Deprecated.
Use
getLutChannels() instead. |
LUT.LUTChannel |
getLutChannel(int channel)
Return the
LUT.LUTChannel for specified channel index. |
java.util.ArrayList<LUT.LUTChannel> |
getLutChannels() |
int |
getNumChannel() |
int |
getNumComponents()
Deprecated.
Use
getNumChannel() instead. |
Scaler[] |
getScalers() |
boolean |
isCompatible(IcyColorModel colorModel)
Return true if LUT is compatible with specified ColorModel.
|
boolean |
isCompatible(LUT lut)
Return true if LUT is compatible with specified ColorModel.
|
boolean |
isEnabled() |
boolean |
isUpdating() |
boolean |
loadFromXML(org.w3c.dom.Node node)
LOAD
|
void |
onChanged(CollapsibleEvent compare)
fire changed event
|
void |
removeListener(LUTListener listener)
Remove a listener
|
boolean |
saveToXML(org.w3c.dom.Node node)
SAVE
|
void |
scalerChanged(ScalerEvent e) |
void |
setAlphaToLinear()
Set the alpha channel to linear opacity (0 to 1) for all LUT channel
|
void |
setAlphaToLinear3D()
Set the alpha channel to an optimized linear transparency for 3D volume display on all LUT
channel
|
void |
setAlphaToOpaque()
Set the alpha channel to full opaque for all LUT channel
|
void |
setColormaps(LUT lut)
Deprecated.
USe
setColorMaps(LUT, boolean) instead. |
void |
setColorMaps(LUT lut,
boolean setAlpha)
Set colormaps from the specified source lut (do a copy).
|
void |
setEnabled(boolean enabled) |
void |
setScalers(LUT lut)
Set the scalers from the specified source lut (do a copy)
|
public LUT(IcyColorModel cm)
public IcyColorSpace getColorSpace()
public Scaler[] getScalers()
public boolean isEnabled()
public void setEnabled(boolean enabled)
public java.util.ArrayList<LUT.LUTChannel> getLutChannels()
public LUT.LUTChannel getLutChannel(int channel)
LUT.LUTChannel
for specified channel index.@Deprecated public java.util.ArrayList<LUTBand> getLutBands()
getLutChannels()
instead.@Deprecated public LUTBand getLutBand(int band)
getLutChannel(int)
instead.public int getNumChannel()
@Deprecated public int getNumComponents()
getNumChannel()
instead.public void setScalers(LUT lut)
@Deprecated public void copyScalers(LUT lut)
setScalers(LUT)
instead.public void setColorMaps(LUT lut, boolean setAlpha)
lut
- source lut to usesetAlpha
- also set the alpha information@Deprecated public void setColormaps(LUT lut)
setColorMaps(LUT, boolean)
instead.@Deprecated public void copyColormaps(LUT lut)
setColorMaps(LUT, boolean)
instead.public void setAlphaToOpaque()
public void setAlphaToLinear()
public void setAlphaToLinear3D()
public boolean isCompatible(LUT lut)
public boolean isCompatible(IcyColorModel colorModel)
public void addListener(LUTListener listener)
listener
- public void removeListener(LUTListener listener)
listener
- public void fireLUTChanged(LUTEvent e)
public void onChanged(CollapsibleEvent compare)
ChangeListener
onChanged
in interface ChangeListener
public void colorSpaceChanged(IcyColorSpaceEvent e)
colorSpaceChanged
in interface IcyColorSpaceListener
public void scalerChanged(ScalerEvent e)
scalerChanged
in interface ScalerListener
public void beginUpdate()
public void endUpdate()
public boolean isUpdating()
public boolean loadFromXML(org.w3c.dom.Node node)
XMLPersistent
loadFromXML
in interface XMLPersistent
public boolean saveToXML(org.w3c.dom.Node node)
XMLPersistent
saveToXML
in interface XMLPersistent