public abstract class RGBDisplayable extends DisplayableData
Instances of this class have the following bound properties:
| Name | Type | Access | Default | Description |
|---|---|---|---|---|
| colorPalette | float[][] | set/get | 0 | The color palette for this instance. |
| rgbRealType | visad.RealType | set/get | null |
The VisAD type of the colored quantity. |
| lineWidth | float | set/get | 1.0f | The width of rendered lines. |
DisplayableData.DragAdapter| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COLOR_PALETTE
The name of the "color palette" property.
|
static int |
POLYGON_FILL
The polygon fill style
|
static int |
POLYGON_LINE
The polygon line style
|
static int |
POLYGON_POINT
The polygon point style
|
static java.lang.String |
RGB_REAL_TYPE
The name of the "RGB real-type" property.
|
LINE_WIDTH, MANIPULABLE, renderer, VISIBLEDISPLAY, parent, SCALAR_MAP_SET| Modifier | Constructor and Description |
|---|---|
protected |
RGBDisplayable(RGBDisplayable that)
Constructs from another instance.
|
|
RGBDisplayable(java.lang.String name,
visad.RealType rgbRealType,
boolean alphaflag)
Constructs from a name for the Displayable and the type of the
RGB parameter.
|
|
RGBDisplayable(java.lang.String name,
visad.RealType rgbRealType,
float[][] colorPalette,
boolean alphaflag)
Constructs from a name for the Displayable and the type of the
RGB parameter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAutoScaleColorRange()
Set whether the RGB type is used for the select range.
|
float[][] |
getColorPalette()
Return the current color palette in this Displayable
|
int |
getCurvedSize()
Return the size of a curved texture
|
int |
getPolygonMode()
Return the type of polygon mode being used
|
double[] |
getRangeforColor()
Deprecated.
use #getRangeForColor()
|
double[] |
getRangeForColor()
Get the color range
|
visad.RealType |
getRGBRealType()
Returns the RealType of the RGB parameter.
|
visad.RealType |
getSelectRealType()
Returns the RealType of the SelectRange parameter.
|
boolean |
getUseRGBTypeForSelect()
Get whether the RGB type is used for the select range.
|
boolean |
hasRange()
Returns whether this Displayable has a valid range (i.e., lowRange and
highRange are both not NaN's
|
boolean |
hasSelectedRange()
Returns whether this Displayable has a valid range
(i.e., lowSelectedRange and highSelectedRange are both not NaN's
|
protected visad.ConstantMap |
makeCurvedSizeMap(int curvedSize)
Create the ConstantMap for the texture curve size
|
void |
setAutoScaleColorRange(boolean yesno)
Set whether the color scale should auto scale
|
void |
setColor(java.awt.Color color)
Make a color palette representing this color and set it as the
color pallete.
|
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.
|
void |
setColorUnit(visad.Unit unit)
Set the units for the displayed range
|
void |
setCurvedSize(int curvedSize)
Set the curved size for textured displays
|
void |
setDisplayUnit(visad.Unit unit)
Set the units for the displayed range
|
void |
setGreyPalette()
This method sets the color palette to shades of grey.
|
void |
setPolygonMode(int polygonMode)
Set the type of polygon display that should be used
|
void |
setRange(double low,
double hi)
Deprecated.
use setRangeForColor
|
void |
setRangeForColor(double low,
double hi)
Set the upper and lower limit of the range values associated
with a color table.
|
void |
setRangeForSelect(double low,
double hi)
Set the upper and lower limit of the range values associated
with a color table.
|
void |
setRGBRealType(visad.RealType realType)
Sets the RealType of the RGB parameter.
|
protected void |
setScalarMaps(ScalarMapSet maps)
Sets the set of ScalarMap-s of this instance.
|
void |
setSelectedRange(double low,
double hi)
Set selected range with the range for select
|
protected void |
setSelectRealType(visad.RealType realType)
Sets the RealType of the select parameter.
|
void |
setUseRGBTypeForSelect(boolean yesno)
Set whether the RGB type is used for the select range.
|
void |
setVisADPalette()
This method with no argument sets the default Vis5D color spectrum.
|
protected boolean |
useDisplayUnitForColor()
Does this object use the displayUnit (or the colorUnit) for its
display unit.
|
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, setColorPalette, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setRangeForColor, setScalarMapSet, setSelectedRange, setUseTimesInAnimation, toFrontpublic static final java.lang.String COLOR_PALETTE
public static final java.lang.String RGB_REAL_TYPE
public static final int POLYGON_FILL
public static final int POLYGON_LINE
public static final int POLYGON_POINT
public RGBDisplayable(java.lang.String name,
visad.RealType rgbRealType,
boolean alphaflag)
throws visad.VisADException,
java.rmi.RemoteException
name - The name for the displayable.rgbRealType - The type of the RGB parameter. May be
null.alphaflag - boolean - will use Display.RBGA if true
otherwise only Display.RGBvisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public RGBDisplayable(java.lang.String name,
visad.RealType rgbRealType,
float[][] colorPalette,
boolean alphaflag)
throws visad.VisADException,
java.rmi.RemoteException
name - The name for the displayable.rgbRealType - The type of the RGB parameter. May be
null.colorPalette - The initial colorPalette to use. May be
null (Vis5D palette used
as default).alphaflag - boolean - use Display.RBGA if truevisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected RGBDisplayable(RGBDisplayable that) throws visad.VisADException, java.rmi.RemoteException
that - The other instance.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected boolean useDisplayUnitForColor()
public void setRGBRealType(visad.RealType realType)
throws java.rmi.RemoteException,
visad.VisADException
realType - The RealType of the RGB parameter. May
not be null.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public visad.RealType getRGBRealType()
null.public visad.RealType getSelectRealType()
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 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 setColor(java.awt.Color color)
throws java.rmi.RemoteException,
visad.VisADException
setColor in class Displayablecolor - color to usevisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public final void setGreyPalette()
throws java.rmi.RemoteException,
visad.VisADException
visad.VisADException - if a core VisAD failure occurs.java.rmi.RemoteException - if a Java RMI failure occurs.public final void setVisADPalette()
throws java.rmi.RemoteException,
visad.VisADException
visad.VisADException - if a core VisAD failure occurs.java.rmi.RemoteException - if a Java RMI failure occurs.public void setRange(double low,
double hi)
throws visad.VisADException,
java.rmi.RemoteException
low - the minimun valuehi - the maximum valuejava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void setRangeForColor(double low,
double hi)
throws visad.VisADException,
java.rmi.RemoteException
setRangeForColor in class Displayablelow - The minimum value of the parameter matched to
the low end of the color table.hi - The maximum value of the parameter matched to
the high end of the color table.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public double[] getRangeforColor()
public double[] getRangeForColor()
public void setDisplayUnit(visad.Unit unit)
throws visad.VisADException,
java.rmi.RemoteException
setDisplayUnit in class Displayableunit - Unit for displayjava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void setColorUnit(visad.Unit unit)
throws visad.VisADException,
java.rmi.RemoteException
setColorUnit in class Displayableunit - Unit for displayjava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic boolean hasRange()
public void setPolygonMode(int polygonMode)
throws visad.VisADException,
java.rmi.RemoteException
polygonMode - polygon modejava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic int getPolygonMode()
public void setCurvedSize(int curvedSize)
throws visad.VisADException,
java.rmi.RemoteException
curvedSize - size to use (> 0)java.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectprotected visad.ConstantMap makeCurvedSizeMap(int curvedSize)
throws visad.VisADException,
java.rmi.RemoteException
curvedSize - size for texture curvejava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic int getCurvedSize()
protected void setSelectRealType(visad.RealType realType)
throws java.rmi.RemoteException,
visad.VisADException
realType - The RealType of the RGB parameter. May
not be null.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public boolean hasSelectedRange()
public void setSelectedRange(double low,
double hi)
throws visad.VisADException,
java.rmi.RemoteException
setSelectedRange in class Displayablelow - low select valuehi - hi select valuejava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void setRangeForSelect(double low,
double hi)
throws visad.VisADException,
java.rmi.RemoteException
low - the minimun valuehi - the maximum valuejava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic void setUseRGBTypeForSelect(boolean yesno)
yesno - true to use the RGB type for thepublic boolean getUseRGBTypeForSelect()
public void setAutoScaleColorRange(boolean yesno)
yesno - true to autoscalepublic boolean getAutoScaleColorRange()