public class DisplayableDataRef extends Displayable
DISPLAY, parent, SCALAR_MAP_SET
Constructor and Description |
---|
DisplayableDataRef(visad.DataReference ref)
Constructs from a
DataReference and a missing data value. |
DisplayableDataRef(java.lang.String name)
Constructs from a
DataReference and a missing data value. |
Modifier and Type | Method and Description |
---|---|
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display.
|
visad.DataReference |
getDataReference()
Returns the underlying
DataReference attribute. |
protected visad.DataRenderer |
getDataRenderer(visad.DisplayImpl display)
Returns the DataRenderer for this displayable.
|
boolean |
hasDataObject()
Indicates whether or not this
Displayable adapts a single,
VisAD data object. |
boolean |
isManipulable()
Indicates whether or not this instance may be directly manipulated by the
VisAD display subsystem.
|
protected void |
myAddDataReferences()
Adds this instance's
DataReference to the associated VisAD
display. |
protected void |
myRemoveDataReferences()
Removes this instance's data references from the associated VisAD
display.
|
void |
setColor(java.awt.Color color)
Sets the color of this Displayable.
|
void |
setData(visad.Data d)
Set the data on this reference
|
void |
setLineStyle(int lineStyle)
Sets the style of lines in this Displayable.
|
void |
setLineWidth(float width)
Sets the width of lines in this Displayable.
|
void |
setManipulable(boolean manipulable)
Sets the direct-manipulability of the underlying data.
|
void |
setVisible(boolean visible)
Sets whether or not this instance is visible.
|
addConstantMap, addConstantMaps, addDataReferences, addPropertyChangeListener, addPropertyChangeListener, addRefsInvoked, addScalarMap, addScalarMaps, applyColorUnit, applyDisplayUnit, checkUnit, combineConstantMaps, destroy, destroyDisplayable, firePropertyChange, firePropertyChange, fireScalarMapSetChange, getAnimationSet, getColorUnit, getConstantMaps, getData, getDestroyed, getDisplay, getDisplayMaster, getDisplayUnit, getPointMode, getScalarMap, getScalarMap, getScalarMap, getScalarMapSet, getUseFastRendering, getUseTimesInAnimation, getVisible, isActive, isUnitCompatible, isVisible, logException, myAddConstantMaps, removeConstantMap, removeDataReferences, removePropertyChangeListener, removePropertyChangeListener, removeScalarMap, replaceScalarMap, setAdjustFlow, setColorPalette, setColorPalette, setColorUnit, setConstantPosition, setContourInfo, setDisplay, setDisplayActive, setDisplayInactive, setDisplayMaster, setDisplayUnit, setOverrideAnimationSet, setOverrideAnimationSet, setParent, setPointMode, setPointSize, setRangeForColor, setRangeForColor, setScalarMapSet, setSelectedRange, setSelectedRange, setUseFastRendering, setUseTimesInAnimation, toFront
public DisplayableDataRef(java.lang.String name) throws java.rmi.RemoteException, visad.VisADException
DataReference
and a missing data value.
By default, the DataRenderer
will be appropriate for the
dimensionality of the display and will not directly manipulate the data
(but see setManipulable(boolean)
).name
- the name of the referencevisad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public DisplayableDataRef(visad.DataReference ref) throws java.rmi.RemoteException, visad.VisADException
DataReference
and a missing data value.
By default, the DataRenderer
will be appropriate for the
dimensionality of the display and will not directly manipulate the data
(but see setManipulable(boolean)
).ref
- The data reference for this instance.java.lang.NullPointerException
- if the argument is null
.visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public final visad.DataReference getDataReference()
DataReference
attribute.DataReference
.public void setData(visad.Data d) throws visad.VisADException, java.rmi.RemoteException
d
- data to setvisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public final void setManipulable(boolean manipulable) throws visad.VisADException, java.rmi.RemoteException
Data
attribute of this
instance's DataReference
attribute may be directly
manipulated by the VisAD display subsystem.setManipulable
in class Displayable
manipulable
- Whether or not this instance may be directly
manipulated by the VisAD display subsystem.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public final boolean isManipulable()
true
if and only if this instance
may be directly manipulated by the VisAD
display subsystem.public final void setVisible(boolean visible) throws visad.VisADException, java.rmi.RemoteException
setVisible
in class Displayable
visible
- Whether or not this instance is visible.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.protected final void myAddDataReferences() throws visad.VisADException, java.rmi.RemoteException
DataReference
to the associated VisAD
display. This method does not verify that the VisAD display has been
set. This method is idempotent.myAddDataReferences
in class Displayable
visad.VisADException
- if a VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.protected final void myRemoveDataReferences() throws visad.VisADException, java.rmi.RemoteException
myRemoveDataReferences
in class Displayable
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public final boolean hasDataObject()
Indicates whether or not this Displayable
adapts a single,
VisAD data object.
This implementation always returns true
.
hasDataObject
in class Displayable
protected visad.DataRenderer getDataRenderer(visad.DisplayImpl display) throws visad.VisADException
display
- The VisAD display for which a DataRenderer is
needed.Displayable
's
DataRenderer
.visad.VisADException
- VisAD failure.public void setColor(java.awt.Color color) throws visad.VisADException, java.rmi.RemoteException
setColor
in class Displayable
color
- The color.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setLineWidth(float width) throws visad.VisADException, java.rmi.RemoteException
setLineWidth
in class Displayable
width
- Width of lines (2 = normal)visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.public void setLineStyle(int lineStyle) throws visad.VisADException, java.rmi.RemoteException
lineStyle
- style of linevisad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.GraphicsModeControl
public Displayable cloneForDisplay() throws java.rmi.RemoteException, visad.VisADException
cloneForDisplay
in class Displayable
visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.