public class Grid2DDisplayable extends RGBDisplayable implements GridDisplayable
DisplayableData.DragAdapterCOLOR_PALETTE, POLYGON_FILL, POLYGON_LINE, POLYGON_POINT, RGB_REAL_TYPELINE_WIDTH, MANIPULABLE, renderer, VISIBLEDISPLAY, parent, SCALAR_MAP_SET| Modifier | Constructor and Description |
|---|---|
protected |
Grid2DDisplayable(Grid2DDisplayable that)
Constructs from another instance.
|
|
Grid2DDisplayable(java.lang.String name,
boolean alphaflag)
Constructs an instance with the supplied name.
|
|
Grid2DDisplayable(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 |
|---|---|
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display.
|
int |
getCurvedSize()
Get the default texture curve size
|
protected visad.DataRenderer |
getDataRenderer()
Obtains the DataRenderer for this displayable.
|
boolean |
getMissingTransparent()
Get whether this is textured or smoothed
|
boolean |
getTextureEnable()
Get whether this is textured or smoothed
|
boolean |
getUseDefaultRenderer()
Get whether to always use default renderer instead of specialized
one.
|
void |
loadData(visad.FieldImpl field)
Set the data into the Displayable; set RGB Type
|
protected visad.ConstantMap |
makeTextureMap(boolean enable)
Create a ConstantMap for texture mapping
|
protected void |
myAddConstantMaps(visad.ConstantMap[] newMaps)
Adds this instance's data references to the associated VisAD display if
possible.
|
void |
setColoredByAnother(boolean yesno)
Set whether this GridDisplayable should have the data colored
by another parameter.
|
void |
setCurvedSize(int size)
Set the default texture curve size
|
void |
setGrid2D(visad.FieldImpl field)
Deprecated.
Should use setData now.
|
void |
setMissingTransparent(boolean enable)
Set whether missing values should be shown as transparent or not
|
void |
setTextureEnable(boolean enable)
Set whether this should be shown as color shading or
as a texture map.
|
void |
setTextureProperties(visad.FieldImpl grid)
A method that subclasses can call to set the texture properties on
a
Grid2DDisplayable. |
void |
setUseDefaultRenderer(boolean use)
Set whether to always use default renderer instead of specialized
one.
|
getAutoScaleColorRange, getColorPalette, getPolygonMode, getRangeforColor, getRangeForColor, getRGBRealType, getSelectRealType, getUseRGBTypeForSelect, hasRange, hasSelectedRange, makeCurvedSizeMap, setAutoScaleColorRange, setColor, setColorPalette, setColorUnit, setDisplayUnit, setGreyPalette, setPolygonMode, setRange, setRangeForColor, setRangeForSelect, setRGBRealType, setScalarMaps, setSelectedRange, setSelectRealType, setUseRGBTypeForSelect, setVisADPalette, useDisplayUnitForColoraddAction, dataChange, destroy, getActive, getAnimationSet, getData, getLineWidth, getName, getPointSize, hasData, hasDataObject, isManipulable, isPickable, 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 Grid2DDisplayable(java.lang.String name,
boolean alphaflag)
throws visad.VisADException,
java.rmi.RemoteException
name - a String identifieralphaflag - boolean flag whether to use transparencyvisad.VisADException - from construction of super classjava.rmi.RemoteException - from construction of super classpublic Grid2DDisplayable(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 Grid2DDisplayable(Grid2DDisplayable that) throws visad.VisADException, java.rmi.RemoteException
that - The other instance.visad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setGrid2D(visad.FieldImpl field)
throws visad.VisADException,
java.rmi.RemoteException
field - a VisAD FlatField with a 2D naturevisad.VisADException - from construction of VisAd objectsjava.rmi.RemoteException - from construction of VisAD objectspublic void loadData(visad.FieldImpl field)
throws visad.VisADException,
java.rmi.RemoteException
loadData in interface GridDisplayablefield - a VisAD FlatField with a 2D naturevisad.VisADException - from construction of VisAd objectsjava.rmi.RemoteException - from construction of VisAD objectspublic Displayable cloneForDisplay() throws java.rmi.RemoteException, visad.VisADException
cloneForDisplay in class DisplayableDatavisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected visad.DataRenderer getDataRenderer()
throws visad.VisADException
getDataRenderer in class DisplayableDatavisad.VisADException - VisAD failure.public void setTextureEnable(boolean enable)
throws visad.VisADException,
java.rmi.RemoteException
enable - true to enable texturingjava.rmi.RemoteExceptionvisad.VisADExceptionprotected void myAddConstantMaps(visad.ConstantMap[] newMaps)
throws visad.VisADException,
java.rmi.RemoteException
myAddConstantMaps in class DisplayableDatanewMaps - new mapsvisad.VisADException - VisAD failure.java.rmi.RemoteException - Java RMI failure.protected visad.ConstantMap makeTextureMap(boolean enable)
throws visad.VisADException,
java.rmi.RemoteException
enable - true to enable texture mappingjava.rmi.RemoteException - Java RMI errorvisad.VisADException - problem creating VisAD objectpublic boolean getTextureEnable()
public void setMissingTransparent(boolean enable)
throws visad.VisADException,
java.rmi.RemoteException
enable - true enable missing transparencyjava.rmi.RemoteExceptionvisad.VisADExceptionpublic boolean getMissingTransparent()
public void setUseDefaultRenderer(boolean use)
use - true to always use the default rendererpublic boolean getUseDefaultRenderer()
public void setTextureProperties(visad.FieldImpl grid)
throws visad.VisADException,
java.rmi.RemoteException
Grid2DDisplayable. Checks to see if the grid is
too big to not do texture mapping.grid - grid to use to set the properties. Can be null.java.rmi.RemoteExceptionvisad.VisADExceptionpublic void setColoredByAnother(boolean yesno)
setColoredByAnother in interface GridDisplayableyesno - true if colored by anotherpublic void setCurvedSize(int size)
setCurvedSize in class RGBDisplayablesize - size of texturepublic int getCurvedSize()
getCurvedSize in class RGBDisplayable