public class RendererControl extends Control
RendererControl is the VisAD class for controlling
DisplayRenderer data.| Constructor and Description |
|---|
RendererControl(DisplayImpl dpy)
Construct a renderer control.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
equals(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). |
String |
getSaveString()
get a string that can be used to reconstruct this control later
|
void |
setBackgroundColor(Color color)
Set the background color.
|
void |
setBackgroundColor(float r,
float g,
float b)
Set the background color.
|
void |
setBoxColor(Color color)
Set the box color.
|
void |
setBoxColor(float r,
float g,
float b)
Set the box color.
|
void |
setBoxOn(boolean on)
Set the box visibility.
|
void |
setCursorColor(Color color)
Set the cursor color.
|
void |
setCursorColor(float r,
float g,
float b)
Set the cursor color.
|
void |
setForegroundColor(Color color)
Convenience method to set the foreground color (box, cursor and axes).
|
void |
setForegroundColor(float r,
float g,
float b)
Convenience method to set the foreground color (box, cursor and axes).
|
void |
setSaveString(String save)
reconstruct this control using the specified save string
|
void |
syncControl(Control ctl)
Copy the state of the specified control.
|
String |
toString() |
addControlListener, animation_string, changeControl, checkTicks, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, nullControl, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTickspublic RendererControl(DisplayImpl dpy)
dpy - Display with which this control is associated.public float[] getBackgroundColor()
float values
in the range [0.0f - 1.0f]
in the order (Red, Green, Blue).public void setBackgroundColor(Color color) throws RemoteException, VisADException
color - background colorRemoteExceptionVisADExceptionpublic void setBackgroundColor(float r,
float g,
float b)
throws RemoteException,
VisADException
[0.0f - 1.0f].r - Red value.g - Green value.b - Blue value.RemoteExceptionVisADExceptionpublic 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(Color color) throws RemoteException, VisADException
color - foreground colorRemoteExceptionVisADExceptionpublic void setForegroundColor(float r,
float g,
float b)
throws RemoteException,
VisADException
[0.0f - 1.0f].r - Red value.g - Green value.b - Blue value.RemoteExceptionVisADExceptiongetForegroundColor(),
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(Color color) throws RemoteException, VisADException
color - box colorRemoteExceptionVisADExceptionpublic void setBoxColor(float r,
float g,
float b)
throws RemoteException,
VisADException
[0.0f - 1.0f].r - Red value.g - Green value.b - Blue value.RemoteExceptionVisADExceptionpublic void setBoxOn(boolean on)
throws RemoteException,
VisADException
on - true if the box should be visible.RemoteExceptionVisADExceptionpublic float[] getCursorColor()
float values
in the range [0.0f - 1.0f]
in the order (Red, Green, Blue).public void setCursorColor(Color color) throws RemoteException, VisADException
color - cursor colorRemoteExceptionVisADExceptionpublic void setCursorColor(float r,
float g,
float b)
throws RemoteException,
VisADException
[0.0f - 1.0f].r - Red value.g - Green value.b - Blue value.RemoteExceptionVisADExceptionpublic String getSaveString()
getSaveString in class Controlpublic void setSaveString(String save) throws VisADException, RemoteException
setSaveString in class Controlsave - - String representation for reconstructionVisADException - if a VisAD error occursRemoteException - if an RMI error occurspublic void syncControl(Control ctl) throws VisADException
syncControl in class Controlctl - Control to copy.VisADException - if a VisAD error occurspublic boolean equals(Object o)
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.