|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectvisad.Control
visad.RendererControl
public class RendererControl
RendererControl is the VisAD class for controlling
DisplayRenderer data.
| Constructor Summary | |
|---|---|
RendererControl(DisplayImpl dpy)
Construct a renderer control. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
Compare this object to another object. |
float[] |
getBackgroundColor()
Get the background color. |
float[] |
getBoxColor()
Get the box color. |
boolean |
getBoxOn()
Get the box visibility. |
float[] |
getCursorColor()
Get the cursor color. |
float[] |
getForegroundColor()
Get the foreground color set using setForegroundColor(float, float, float). |
java.lang.String |
getSaveString()
get a string that can be used to reconstruct this control later |
void |
setBackgroundColor(float r,
float g,
float b)
Set the background color. |
void |
setBoxColor(float r,
float g,
float b)
Set the box color. |
void |
setBoxOn(boolean on)
Set the box visibility. |
void |
setCursorColor(float r,
float g,
float b)
Set the cursor color. |
void |
setForegroundColor(float r,
float g,
float b)
Convenience method to set the foreground color (box, cursor and axes). |
void |
setSaveString(java.lang.String save)
reconstruct this control using the specified save string |
void |
syncControl(Control ctl)
Copy the state of the specified control. |
java.lang.String |
toString()
|
| Methods inherited from class visad.Control |
|---|
addControlListener, animation_string, changeControl, checkTicks, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, nullControl, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RendererControl(DisplayImpl dpy)
dpy - Display with which this control is associated.| Method Detail |
|---|
public float[] getBackgroundColor()
float values
in the range [0.0f - 1.0f]
in the order (Red, Green, Blue).
public void setBackgroundColor(float r,
float g,
float b)
throws java.rmi.RemoteException,
VisADException
[0.0f - 1.0f].
r - Red value.g - Green value.b - Blue value.
java.rmi.RemoteException
VisADExceptionpublic float[] getForegroundColor()
setForegroundColor(float, float, float).
NOTE: The values returned may not be
indicative of the actual color of any of the components of the foreground
(box, cursor, axes) since the color of each of these can be set
individually.
float values
in the range [0.0f - 1.0f]
in the order (Red, Green, Blue).setForegroundColor(float, float, float)
public void setForegroundColor(float r,
float g,
float b)
throws java.rmi.RemoteException,
VisADException
[0.0f - 1.0f].
r - Red value.g - Green value.b - Blue value.
java.rmi.RemoteException
VisADExceptiongetForegroundColor(),
setCursorColor(float, float, float),
setBoxColor(float, float, float),
ScalarMap.setScaleColor(float[])public float[] getBoxColor()
float values
in the range [0.0f - 1.0f]
in the order (Red, Green, Blue).public boolean getBoxOn()
true if the box is visible.
public void setBoxColor(float r,
float g,
float b)
throws java.rmi.RemoteException,
VisADException
[0.0f - 1.0f].
r - Red value.g - Green value.b - Blue value.
java.rmi.RemoteException
VisADException
public void setBoxOn(boolean on)
throws java.rmi.RemoteException,
VisADException
on - true if the box should be visible.
java.rmi.RemoteException
VisADExceptionpublic float[] getCursorColor()
float values
in the range [0.0f - 1.0f]
in the order (Red, Green, Blue).
public void setCursorColor(float r,
float g,
float b)
throws java.rmi.RemoteException,
VisADException
[0.0f - 1.0f].
r - Red value.g - Green value.b - Blue value.
java.rmi.RemoteException
VisADExceptionpublic java.lang.String getSaveString()
getSaveString in class Control
public void setSaveString(java.lang.String save)
throws VisADException,
java.rmi.RemoteException
setSaveString in class ControlVisADException
java.rmi.RemoteException
public void syncControl(Control ctl)
throws VisADException
syncControl in class Controlctl - Control to copy.
VisADExceptionpublic boolean equals(java.lang.Object o)
equals in class Controlo - Object to compare.
true if this object is "equal" to the
specified object.public java.lang.Object clone()
clone in class Controlpublic java.lang.String toString()
toString in class Control
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||