|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.Displayable
ucar.visad.display.DisplayableDataRef
public class DisplayableDataRef
Provides support for displaying the VisAD Data of a VisAD DataReference.
| Field Summary |
|---|
| Fields inherited from class ucar.visad.display.Displayable |
|---|
DISPLAY, parent, SCALAR_MAP_SET |
| Constructor Summary | |
|---|---|
DisplayableDataRef(DataReference ref)
Constructs from a DataReference and a missing data value. |
|
DisplayableDataRef(String name)
Constructs from a DataReference and a missing data value. |
|
| Method Summary | |
|---|---|
Displayable |
cloneForDisplay()
Returns a clone of this instance suitable for another VisAD display. |
DataReference |
getDataReference()
Returns the underlying DataReference attribute. |
protected DataRenderer |
getDataRenderer(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(Color color)
Sets the color of this Displayable. |
void |
setData(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DisplayableDataRef(String name)
throws RemoteException,
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 reference
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
public DisplayableDataRef(DataReference ref)
throws RemoteException,
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.
NullPointerException - if the argument is null.
VisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.| Method Detail |
|---|
public final DataReference getDataReference()
DataReference attribute.
DataReference.
public void setData(Data d)
throws VisADException,
RemoteException
d - data to set
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public final void setManipulable(boolean manipulable)
throws VisADException,
RemoteException
Data attribute of this
instance's DataReference attribute may be directly
manipulated by the VisAD display subsystem.
setManipulable in class Displayablemanipulable - Whether or not this instance may be directly
manipulated by the VisAD display subsystem.
VisADException - VisAD failure.
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 VisADException,
RemoteException
setVisible in class Displayablevisible - Whether or not this instance is visible.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
protected final void myAddDataReferences()
throws VisADException,
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 DisplayableVisADException - if a VisAD failure occurs.
RemoteException - if a Java RMI failure occurs.
protected final void myRemoveDataReferences()
throws VisADException,
RemoteException
myRemoveDataReferences in class DisplayableVisADException - VisAD failure.
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 DataRenderer getDataRenderer(DisplayImpl display)
throws VisADException
display - The VisAD display for which a DataRenderer is
needed.
Displayable's
DataRenderer.
VisADException - VisAD failure.
public void setColor(Color color)
throws VisADException,
RemoteException
setColor in class Displayablecolor - The color.
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setLineWidth(float width)
throws VisADException,
RemoteException
setLineWidth in class Displayablewidth - Width of lines (2 = normal)
VisADException - VisAD failure.
RemoteException - Java RMI failure.
public void setLineStyle(int lineStyle)
throws VisADException,
RemoteException
lineStyle - style of line
VisADException - VisAD failure.
RemoteException - Java RMI failure.GraphicsModeControl
public Displayable cloneForDisplay()
throws RemoteException,
VisADException
cloneForDisplay in class DisplayableVisADException - VisAD failure.
RemoteException - Java RMI failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||