public abstract class Displayable
extends java.lang.Object
Name | Type | Access | Default | Description |
---|---|---|---|---|
display | visad.LocalDisplay | set/get | null |
The VisAD display associated with this instance |
scalarMapSet | ScalarMapSet | get | empty set | The set of non-spatial or unique ScalarMap-s associated with this instance |
This implementation conserves memory by delaying storage allocation for PropertyChangeListener-s until the first one is registered.
ScalarMapSet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DISPLAY
The name of the VisAD display property.
|
protected CompositeDisplayable |
parent
The parent.
|
static java.lang.String |
SCALAR_MAP_SET
The name of the set of ScalarMapSet property.
|
Modifier | Constructor and Description |
---|---|
protected |
Displayable()
Constructs from nothing.
|
protected |
Displayable(Displayable that)
Constructs from another instance.
|
protected |
Displayable(visad.LocalDisplay display)
Constructs from an initial VisAD display.
|
Modifier and Type | Method and Description |
---|---|
visad.ConstantMap |
addConstantMap(visad.ConstantMap constantMap)
Adds a ConstantMap to this instance.
|
void |
addConstantMaps(visad.ConstantMap[] maps)
Adds ConstantMaps to this instance.
|
void |
addDataReferences()
Requests that this instance's
DataReference s be added to
the associated VisAD display as soon as feasible. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to this instance.
|
void |
addPropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener for a named property to this instance.
|
protected boolean |
addRefsInvoked()
Returns whether or not the client has requested that this instance's
DataReference s be added to the display. |
protected void |
addScalarMap(visad.ScalarMap map)
Adds a ScalarMap to this instance's set of ScalarMap-s.
|
protected void |
addScalarMaps(ScalarMapSet maps)
Adds a set of ScalarMap-s to this instance's set of ScalarMap-s.
|
protected void |
applyColorUnit(visad.ScalarMap map,
visad.RealType realType)
If the colorUnit is not compatible with the unit of the given real type
then clear the colorUnit and set the override unit of the given
ScalarMap to the default Unit of the realType.
|
protected void |
applyDisplayUnit(visad.ScalarMap map,
visad.RealType realType)
If the displayUnit is not compatible with the unit of the given
RealType then clear the displayUnit and set the override
unit of the given ScalarMap to the default Unit of the
realType . |
protected void |
checkUnit(visad.RealType realType,
visad.Unit unit)
Check if the given unit is compatible with the unit of the
given
realtype . |
abstract Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display.
|
protected visad.ConstantMap[] |
combineConstantMaps(ConstantMapSet maps)
Combines this instance's ConstantMap-s with another set of ConstantMap-s
and returns a copy of the set.
|
protected void |
destroy()
Called when the displayable is removed from a display master
|
void |
destroyDisplayable()
Destroy this instance
|
protected void |
firePropertyChange(java.beans.PropertyChangeEvent event)
Calls firePropertyChangeEventInThread so we break up potential deadlocks
|
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Fires a PropertyChangeEvent.
|
protected void |
fireScalarMapSetChange()
Fires a PropertyChangeEvent for the SCALAR_MAP_SET property with the
value of the SCALAR_MAP_SET at the time of the last firing as the old
value.
|
visad.Set |
getAnimationSet(visad.RealType aniType,
boolean force)
Returns the set of values for the given
aniType if
the contained Data objects adapted by this Displayable have
any data of that type. |
visad.Unit |
getColorUnit()
Return the color
Unit . |
visad.ConstantMap[] |
getConstantMaps()
Returns copies of the ConstantMap-s of this instance.
|
visad.Data |
getData()
Returns the single, VisAD data object adapted by this
Displayable , if one exists. |
boolean |
getDestroyed()
Are we destroyed?
|
visad.LocalDisplay |
getDisplay()
Returns the associated VisAD display.
|
DisplayMaster |
getDisplayMaster()
Get the display master.
|
visad.Unit |
getDisplayUnit()
Returns the unit that is being used by the VisAD display subsystem for
rendering this instance or
null if no such unit exists. |
boolean |
getPointMode()
Get whether or not to render data as points
|
protected static visad.ScalarMap |
getScalarMap(visad.LocalDisplay display,
visad.ScalarMap template)
Finds the ScalarMap of a VisAD display that matches a given ScalarMap
in the sense that it has the same ScalarType and DisplayRealType.
|
protected static visad.ScalarMap |
getScalarMap(visad.LocalDisplay display,
visad.ScalarType scalarType,
visad.DisplayRealType displayRealType)
Finds the ScalarMap of a VisAD display that has the given ScalarType
and DisplayRealType.
|
protected visad.ScalarMap |
getScalarMap(visad.ScalarMap template)
Returns the
ScalarMap in this instance's set of ScalarMap s that matches a template or null if no such
ScalarMap is found. |
ScalarMapSet |
getScalarMapSet()
Returns the set of ScalarMap-s associated with this instance.
|
boolean |
getUseFastRendering()
Get whether or not to use fast rendering.
|
boolean |
getUseTimesInAnimation()
Get the UseTimesInAnimation property.
|
boolean |
getVisible()
Gets the visibility property.
|
boolean |
hasDataObject()
Indicates whether or not this
Displayable adapts a single,
VisAD data object. |
boolean |
isActive()
Is the DisplayMaster this displayable is part of active
|
protected boolean |
isUnitCompatible(visad.RealType realType,
visad.Unit unit)
Is the given unit compatible (i.e., is either null or
can convert to the defaultUnit) with the the given real type.
|
boolean |
isVisible()
Returns the visibility property.
|
void |
logException(java.lang.String msg,
java.lang.Exception exc)
A wrapper around LogUtil.logException
|
protected void |
myAddConstantMaps(visad.ConstantMap[] newMaps)
Adds this instance's data references to the associated VisAD display if
possible.
|
protected abstract void |
myAddDataReferences()
Adds this instance's data references to the associated VisAD display if
possible.
|
protected abstract void |
myRemoveDataReferences()
Removes this instance's data references from the associated VisAD
display.
|
visad.ConstantMap |
removeConstantMap(visad.DisplayRealType displayRealType)
Removes a ConstantMap from this instance.
|
void |
removeDataReferences()
Removes this instance's data references from the associated VisAD
display.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from this instance.
|
void |
removePropertyChangeListener(java.lang.String name,
java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener for a named property from this instance.
|
protected void |
removeScalarMap(visad.ScalarMap map)
Removes a ScalarMap from this instance's set of ScalarMap-s.
|
protected void |
replaceScalarMap(visad.ScalarMap oldMap,
visad.ScalarMap newMap)
Replaces a ScalarMap in this instance's set of ScalarMap-s.
|
void |
setAdjustFlow(boolean adjust)
A no-op method so we can have a consistent api with the composite
pattern.
|
void |
setColor(java.awt.Color c)
A no-op method so we can have a consistent api with the composite
pattern.
|
void |
setColorPalette(ColorTable colorTable)
A wrapper method calling setColorPalette (float[][] c)
|
void |
setColorPalette(float[][] c)
A no-op method so we can have a consistent api with the composite
pattern.
|
void |
setColorUnit(visad.Unit unit)
A hook to allow sub-classes to set their color unit.
|
void |
setConstantPosition(double value,
visad.DisplayRealType type)
Set the z position to given value
|
void |
setContourInfo(ContourInfo contourInfo)
A no-op method for setting contour information
|
void |
setDisplay(visad.LocalDisplay display)
Associates this instance with a given VisAD display.
|
void |
setDisplayActive()
A wrapper arount DisplayMaster.setDisplayActive.
|
void |
setDisplayInactive()
A wrapper arount DisplayMaster.setDisplayInactive.
|
protected void |
setDisplayMaster(DisplayMaster master)
Set the display master.
|
void |
setDisplayUnit(visad.Unit unit)
Sets the unit for use by the VisAD display subsystem.
|
void |
setLineWidth(float size)
A no-op method so we can have a consistent api with the composite
pattern.
|
void |
setManipulable(boolean manipulable)
Sets the manipulable value of this Displayable.
|
void |
setOverrideAnimationSet(java.util.List times)
Set the animation set with a list of DateTimes
|
void |
setOverrideAnimationSet(visad.Set set)
Set an alternate animation set
|
protected void |
setParent(CompositeDisplayable parent)
Set the parent.
|
void |
setPointMode(boolean usePoints)
Set the flags for whether the Displayable displays data
as points.
|
void |
setPointSize(float size)
A no-op method so we can have a consistent api with the composite
pattern.
|
void |
setRangeForColor(double low,
double hi)
A no-op method so we can have a consistent api with the composite
pattern.
|
void |
setRangeForColor(Range r)
Just a wrapper around the other
setRangeForColor(double, double) |
void |
setScalarMapSet(ScalarMapSet maps)
Sets the set of ScalarMap-s of this instance.
|
void |
setSelectedRange(double low,
double hi)
A no-op method so we can have a consistent api with the composite
pattern.
|
void |
setSelectedRange(Range r)
Just a wrapper around the other
setSelectedRange(double, double) |
void |
setUseFastRendering(boolean fastRender)
Set the flags for whether the renderer should use fast (but
perhaps inaccurate) rendering (ie, not account for projection
seams)
|
void |
setUseTimesInAnimation(boolean value)
Set the UseTimesInAnimation property.
|
void |
setVisible(boolean visible)
Sets the visibility property.
|
void |
toFront()
Bring the displayable to the front.
|
public static final java.lang.String DISPLAY
public static final java.lang.String SCALAR_MAP_SET
protected CompositeDisplayable parent
protected Displayable() throws java.rmi.RemoteException, visad.VisADException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected Displayable(visad.LocalDisplay display) throws java.rmi.RemoteException, visad.VisADException
display
- The VisAD display. May be null
.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected Displayable(Displayable that) throws java.rmi.RemoteException, visad.VisADException
that
- The other instance.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void toFront() throws java.rmi.RemoteException, visad.VisADException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public DisplayMaster getDisplayMaster()
DisplayMaster
this displayable is part of.protected void setDisplayMaster(DisplayMaster master) throws visad.VisADException, java.rmi.RemoteException
master
- The DisplayMaster
this displayable is part of.java.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- VisAD Exceptionpublic void setUseFastRendering(boolean fastRender) throws visad.VisADException, java.rmi.RemoteException
fastRender
- true to render quicklyvisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public boolean getUseFastRendering()
public void setPointMode(boolean usePoints) throws visad.VisADException, java.rmi.RemoteException
usePoints
- true to display as pointsvisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public boolean getPointMode()
protected void setParent(CompositeDisplayable parent)
parent
- The parent composite.public void setConstantPosition(double value, visad.DisplayRealType type) throws visad.VisADException, java.rmi.RemoteException
value
- The valuetype
- The typejava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void setDisplayInactive() throws java.rmi.RemoteException, visad.VisADException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setDisplayActive() throws java.rmi.RemoteException, visad.VisADException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic boolean isActive() throws java.rmi.RemoteException, visad.VisADException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setDisplay(visad.LocalDisplay display) throws java.rmi.RemoteException, visad.VisADException
super.setDisplay(display)
.display
- The VisAD display.visad.VisADException
- if a core VisAD failure occurs.java.rmi.RemoteException
- if Java RMI failure occurs.removeDataReferences()
public final visad.LocalDisplay getDisplay()
null
if this instance hasn't been
associated with a VisAD display yet.public final ScalarMapSet getScalarMapSet()
protected final boolean addRefsInvoked()
DataReference
s be added to the display.true
if and only if
addDataReferences()
has been called
without an intervening removeDataReferences()
.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be added.public void addPropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener listener)
name
- The name of the property.listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed.public void removePropertyChangeListener(java.lang.String name, java.beans.PropertyChangeListener listener)
name
- The name of the property.listener
- The PropertyChangeListener to be removed.public visad.ConstantMap addConstantMap(visad.ConstantMap constantMap) throws java.rmi.RemoteException, visad.VisADException
constantMap
- The ConstantMap to be added.null
.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void addConstantMaps(visad.ConstantMap[] maps) throws java.rmi.RemoteException, visad.VisADException
maps
- The ConstantMaps to be added.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public visad.ConstantMap removeConstantMap(visad.DisplayRealType displayRealType)
displayRealType
- The DisplayRealType to have its ConstantMap
removed.null
.public void setRangeForColor(double low, double hi) throws visad.VisADException, java.rmi.RemoteException
A no-op method so we can have a consistent api with the composite pattern. This method is overwritten in CompositeDisplayable, which iterates through its children composite calling setRangeForColor. This method is overwritten in RGBDisplayable to actually setRangeForColor.
There is a fundamental problem with the Composite pattern (of which the Displayable class serves as the abstract root class) in that you want to have the Composite class (e.g., CompositeDisplayable) to be able to have methods which are recursively applied to its children. However, not all methods are shared by all potential children classes. There is a tension between having methods defined for objects that make sense and having the utility of applying methods to a group of objects through the composite.
With these no-op methods here (e.g., setColorPalette, setColor, setPointSize) we leaned towards utility vs. method signature correctness.
Of course, one way around this is to have a general setProperty (propertyName, value) method which is used.
low
- The minimum value of the range for the color.hi
- The maximum value of the range for the color.visad.VisADException
- if a VisADFailure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public void setRangeForColor(Range r) throws visad.VisADException, java.rmi.RemoteException
setRangeForColor(double, double)
r
- The range for the color.visad.VisADException
- if a VisADFailure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public void setSelectedRange(Range r) throws visad.VisADException, java.rmi.RemoteException
setSelectedRange(double, double)
r
- The range for the color.visad.VisADException
- if a VisADFailure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public void setSelectedRange(double low, double hi) throws visad.VisADException, java.rmi.RemoteException
low
- The minimum value of the selected rangehi
- The maximum value of the selected rangevisad.VisADException
- if a VisADFailure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public void setColorPalette(float[][] c) throws java.rmi.RemoteException, visad.VisADException
c
- color palettejava.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.public void setContourInfo(ContourInfo contourInfo) throws visad.VisADException, java.rmi.RemoteException
contourInfo
- Contains contour and labeling informationvisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setColorPalette(ColorTable colorTable) throws java.rmi.RemoteException, visad.VisADException
colorTable
- ColorTable that defines the palettejava.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.public void setColor(java.awt.Color c) throws java.rmi.RemoteException, visad.VisADException
c
- the Colorjava.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.public void setPointSize(float size) throws java.rmi.RemoteException, visad.VisADException
size
- point sizejava.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.public void setLineWidth(float size) throws java.rmi.RemoteException, visad.VisADException
size
- line width size (pixels)java.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.public void setVisible(boolean visible) throws java.rmi.RemoteException, visad.VisADException
visible
- Whether or not this instance should be
displayed.java.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.public void setManipulable(boolean manipulable) throws visad.VisADException, java.rmi.RemoteException
manipulable
- valuevisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public boolean getVisible()
public boolean isVisible()
public final void addDataReferences() throws visad.DisplayException, visad.VisADException, java.rmi.RemoteException
DataReference
s be added to
the associated VisAD display as soon as feasible. This might or might
not happen during the invocation of this method (a
DataReference
might not be added if, for example, it contains no data). Invoking this
method will cause all subsequent addRefsInvoked()
invocations
to return true
until removeDataReferences()
is
invoked. This method is idempotent: it may be invoked multiple times.visad.DisplayException
- if setDisplay(LocalDisplay)
has not
been invoked.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public final void removeDataReferences() throws visad.DisplayException, visad.VisADException, java.rmi.RemoteException
addRefsInvoked()
invocations to return false
until addDataReferences()
is invoked. This method is idempotent: it may
be invoked multiple times.visad.DisplayException
- if setDisplay(LocalDisplay)
hasn't been
invoked.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected abstract void myAddDataReferences() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected abstract void myRemoveDataReferences() throws visad.VisADException, java.rmi.RemoteException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void myAddConstantMaps(visad.ConstantMap[] newMaps) throws visad.VisADException, java.rmi.RemoteException
newMaps
- new mapsvisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void destroyDisplayable() throws java.rmi.RemoteException, visad.VisADException
java.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- VisAD Exceptionpublic boolean getDestroyed()
protected void destroy() throws java.rmi.RemoteException, visad.VisADException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setScalarMapSet(ScalarMapSet maps)
fireScalarMapSetChange()
. 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.fireScalarMapSetChange()
public boolean hasDataObject()
Indicates whether or not this Displayable
adapts a single,
VisAD data object.
This implementation always returns false
.
public visad.Data getData() throws visad.VisADException, java.rmi.RemoteException
Returns the single, VisAD data object adapted by this Displayable
, if one exists. null
will be returned if
this instance adapts such an object but the object is unset, or if this
instance is not capable of adapting a single, VisAD data object. To
distinguish these cases, use hasDataObject()
.
This implementation always returns null.
null
.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.hasDataObject()
protected void addScalarMaps(ScalarMapSet maps) throws visad.BadMappingException
fireScalarMapSetChange()
.maps
- The set of ScalarMap-s to be added.visad.BadMappingException
- Duplicate ScalarMap.fireScalarMapSetChange()
protected void addScalarMap(visad.ScalarMap map) throws visad.BadMappingException
fireScalarMapSetChange()
.map
- The ScalarMap to be added.visad.BadMappingException
- Duplicate ScalarMap.fireScalarMapSetChange()
protected visad.ScalarMap getScalarMap(visad.ScalarMap template)
ScalarMap
in this instance's set of ScalarMap
s that matches a template or null
if no such
ScalarMap
is found.template
- The template.null
.protected void removeScalarMap(visad.ScalarMap map)
fireScalarMapSetChange()
.map
- The ScalarMap to be removed.fireScalarMapSetChange()
protected void replaceScalarMap(visad.ScalarMap oldMap, visad.ScalarMap newMap) throws visad.BadMappingException
fireScalarMapSetChange()
.oldMap
- The old ScalarMap to be removed. May be
null
.newMap
- The new ScalarMap to be added.visad.BadMappingException
- Duplicate ScalarMap.fireScalarMapSetChange()
protected static visad.ScalarMap getScalarMap(visad.LocalDisplay display, visad.ScalarType scalarType, visad.DisplayRealType displayRealType) throws visad.VisADException, java.rmi.RemoteException
display
- The VisAD display.scalarType
- The ScalarType to match.displayRealType
- The DisplayRealType to match.null
if no matching ScalarMap was
found.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected static visad.ScalarMap getScalarMap(visad.LocalDisplay display, visad.ScalarMap template) throws visad.VisADException, java.rmi.RemoteException
display
- The VisAD display.template
- The ScalarMap to match.null
if no matching ScalarMap was
found.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected void firePropertyChange(java.beans.PropertyChangeEvent event)
event
- The PropertyChangeEvent.protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
propertyName
- The name of the property.oldValue
- The old value of the property.newValue
- The new value of the property.public visad.ConstantMap[] getConstantMaps()
public abstract Displayable cloneForDisplay() throws java.rmi.RemoteException, visad.VisADException
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected visad.ConstantMap[] combineConstantMaps(ConstantMapSet maps)
maps
- The set of ConstantMap-s to be combined with the
ConstantMap-s of this instance.protected void fireScalarMapSetChange()
public void logException(java.lang.String msg, java.lang.Exception exc)
msg
- message for the exceptionexc
- exception that is being loggedpublic void setDisplayUnit(visad.Unit unit) throws java.rmi.RemoteException, visad.VisADException
unit
- The display unit to use.java.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.public visad.Unit getDisplayUnit() throws java.rmi.RemoteException, visad.VisADException
null
if no such unit exists.null
.java.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.public void setColorUnit(visad.Unit unit) throws java.rmi.RemoteException, visad.VisADException
unit
- The color unit or null
java.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.public visad.Unit getColorUnit() throws java.rmi.RemoteException, visad.VisADException
Unit
.java.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.public void setAdjustFlow(boolean adjust) throws java.rmi.RemoteException, visad.VisADException
adjust
- true to adjustjava.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.protected boolean isUnitCompatible(visad.RealType realType, visad.Unit unit)
realType
- RealType to checkunit
- Unit
in questionprotected void checkUnit(visad.RealType realType, visad.Unit unit) throws visad.VisADException, java.rmi.RemoteException
realtype
.
If not throw a VisADException.realType
- RealType to checkunit
- Unit
in questionjava.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.protected void applyDisplayUnit(visad.ScalarMap map, visad.RealType realType) throws visad.VisADException, java.rmi.RemoteException
RealType
then clear the displayUnit and set the override
unit of the given ScalarMap
to the default Unit of the
realType
. Else set the override unit of the
ScalarMap to the displayUnit.map
- ScalarMap to modifyrealType
- RealType of default unitjava.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.protected void applyColorUnit(visad.ScalarMap map, visad.RealType realType) throws visad.VisADException, java.rmi.RemoteException
map
- ScalarMap to changerealType
- RealType for default unitjava.rmi.RemoteException
- Java RMI failure.visad.VisADException
- VisAD failure.public visad.Set getAnimationSet(visad.RealType aniType, boolean force) throws visad.VisADException, java.rmi.RemoteException
Returns the set of values for the given aniType
if
the contained Data objects adapted by this Displayable
have
any data of that type. null
will be returned if
this instance adapts such an object but the object is unset, or if this
instance does not support this type.
aniType
- The type used for animationforce
- force the calculationnull
.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.hasDataObject()
public void setOverrideAnimationSet(visad.Set set)
set
- the setpublic void setOverrideAnimationSet(java.util.List times) throws java.rmi.RemoteException, visad.VisADException
times
- the timesjava.rmi.RemoteException
- Java RMI Exceptionvisad.VisADException
- VisAD Exceptionpublic void setUseTimesInAnimation(boolean value) throws java.rmi.RemoteException, visad.VisADException
value
- The new value for UseTimesInAnimationvisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public boolean getUseTimesInAnimation()