|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.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 | |
---|---|
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()
|
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(Color color) throws RemoteException, VisADException
color
- background color
RemoteException
VisADException
public void setBackgroundColor(float r, float g, float b) throws RemoteException, VisADException
[0.0f - 1.0f]
.
r
- Red value.g
- Green value.b
- Blue value.
RemoteException
VisADException
public 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 color
RemoteException
VisADException
public void setForegroundColor(float r, float g, float b) throws RemoteException, VisADException
[0.0f - 1.0f]
.
r
- Red value.g
- Green value.b
- Blue value.
RemoteException
VisADException
getForegroundColor()
,
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 color
RemoteException
VisADException
public void setBoxColor(float r, float g, float b) throws RemoteException, VisADException
[0.0f - 1.0f]
.
r
- Red value.g
- Green value.b
- Blue value.
RemoteException
VisADException
public void setBoxOn(boolean on) throws RemoteException, VisADException
on
- true
if the box should be visible.
RemoteException
VisADException
public 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 color
RemoteException
VisADException
public void setCursorColor(float r, float g, float b) throws RemoteException, VisADException
[0.0f - 1.0f]
.
r
- Red value.g
- Green value.b
- Blue value.
RemoteException
VisADException
public String getSaveString()
getSaveString
in class Control
public void setSaveString(String save) throws VisADException, RemoteException
setSaveString
in class Control
save
- - String representation for reconstruction
VisADException
- if a VisAD error occurs
RemoteException
- if an RMI error occurspublic void syncControl(Control ctl) throws VisADException
syncControl
in class Control
ctl
- Control
to copy.
VisADException
- if a VisAD error occurspublic boolean equals(Object o)
equals
in class Control
o
- Object to compare.
true
if this object is "equal" to the
specified object.public Object clone()
clone
in class Control
public String toString()
toString
in class Control
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |