public class ImageRGBDisplayable extends DisplayableData implements GridDisplayable
DisplayableData.DragAdapterLINE_WIDTH, MANIPULABLE, renderer, VISIBLEDISPLAY, parent, SCALAR_MAP_SET| Modifier | Constructor and Description |
|---|---|
protected |
ImageRGBDisplayable(ImageRGBDisplayable that)
Constructs from another instance.
|
|
ImageRGBDisplayable(java.lang.String name)
Constructs from a name for the Displayable and the type of the
RGB parameter.
|
|
ImageRGBDisplayable(java.lang.String name,
boolean doAlpha)
Constructs from a name for the Displayable and the type of the
RGB parameter.
|
|
ImageRGBDisplayable(java.lang.String name,
float[][] colorPalette,
boolean doAlpha)
Constructs from a name for the Displayable and the type of the
RGB parameter.
|
|
ImageRGBDisplayable(java.lang.String name,
float[][] colorPalette,
boolean doAlpha,
visad.FieldImpl field)
Constructs from a name for the Displayable and the type of the
RGB parameter.
|
| Modifier and Type | Method and Description |
|---|---|
float[][] |
getColorPalette()
Return the current color palette in this Displayable
|
visad.RealTupleType |
getColorTupleType()
Get the RealTupleType of the RGB parameter.
|
visad.RealTupleType |
getRGBRealTupleType()
Deprecated.
use getColorTupleType()
|
void |
loadData(visad.FieldImpl field)
Set the data into the Displayable; set RGB Type
|
void |
setAlpha(float alpha)
Set the alpha.
|
void |
setColoredByAnother(boolean yesno)
Set whether this GridDisplayable should have the data colored
by another parameter.
|
void |
setColorPalette(float[][] colorPalette)
This method sets the color palette
according to the color table in argument;
pair this method with setRange(lo,high) to get
a fixed association of color table and range of values.
|
protected void |
setColorTupleType(visad.RealTupleType realTupleType)
Sets the RealTupleType of the RGB parameter.
|
void |
setDisplay(visad.LocalDisplay display)
Set the display.
|
protected void |
setScalarMaps(ScalarMapSet maps)
Sets the set of ScalarMap-s of this instance.
|
addAction, cloneForDisplay, dataChange, destroy, getActive, getAnimationSet, getData, getDataRenderer, getLineWidth, getName, getPointSize, hasData, hasDataObject, isManipulable, isPickable, myAddConstantMaps, myAddDataReferences, myRemoveDataReferences, removeAction, setActive, setData, setDataReference, setDragAdapter, setLineWidth, setManipulable, setPickable, setPointMode, setPointSize, setUseFastRendering, setVisible, showme, toStringaddConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getColorUnit, getConstantMaps, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColor, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplayActive, setDisplayInactive, setDisplayMaster, setDisplayUnit, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseTimesInAnimation, toFrontpublic ImageRGBDisplayable(java.lang.String name)
throws visad.VisADException,
java.rmi.RemoteException
name - The name for the displayable.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public ImageRGBDisplayable(java.lang.String name,
boolean doAlpha)
throws visad.VisADException,
java.rmi.RemoteException
name - The name for the displayable.doAlpha - true to map to RGBAvisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public ImageRGBDisplayable(java.lang.String name,
float[][] colorPalette,
boolean doAlpha)
throws visad.VisADException,
java.rmi.RemoteException
name - The name for the displayable.colorPalette - The color palettedoAlpha - true to map to RGBAvisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public ImageRGBDisplayable(java.lang.String name,
float[][] colorPalette,
boolean doAlpha,
visad.FieldImpl field)
throws visad.VisADException,
java.rmi.RemoteException
name - The name for the displayable.colorPalette - The color palettedoAlpha - true to map to RGBAvisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected ImageRGBDisplayable(ImageRGBDisplayable that) throws visad.VisADException, java.rmi.RemoteException
that - The other instance.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void loadData(visad.FieldImpl field)
throws visad.VisADException,
java.rmi.RemoteException
loadData in interface GridDisplayablefield - an image or sequence of imagesvisad.VisADException - from construction of VisAd objectsjava.rmi.RemoteException - from construction of VisAD objectspublic visad.RealTupleType getColorTupleType()
null.protected void setColorTupleType(visad.RealTupleType realTupleType)
throws java.rmi.RemoteException,
visad.VisADException
realTupleType - The RealTupleType of the RGB parameters. May
not be null.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public visad.RealTupleType getRGBRealTupleType()
null.protected void setScalarMaps(ScalarMapSet maps) throws visad.BadMappingException
null for the old value and the new
set of ScalarMap-s for the new Value. Intermediate subclasses that
have their own ScalarMap-s should override this method and invoke
super.setScalarMaps(ScalarMapSet).maps - The set of ScalarMap-s to be added.visad.BadMappingException - The RealType of the color parameter
has not been set or its ScalarMap is alread in
the set.public void setAlpha(float alpha)
throws java.rmi.RemoteException,
visad.VisADException
alpha - alphajava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic void setDisplay(visad.LocalDisplay display)
throws visad.DisplayException,
visad.VisADException,
java.rmi.RemoteException
setDisplay in class Displayabledisplay - display to set this intovisad.DisplayException - Display type exceptionjava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectDisplayable.removeDataReferences()public void setColorPalette(float[][] colorPalette)
throws java.rmi.RemoteException,
visad.VisADException
setColorPalette in class DisplayablecolorPalette - the color table or color-alpha table desiredvisad.VisADException - if a core VisAD failure occurs.java.rmi.RemoteException - if a Java RMI failure occurs.public float[][] getColorPalette()
public void setColoredByAnother(boolean yesno)
setColoredByAnother in interface GridDisplayableyesno - true if colored by another