visad
Class RendererControl
- java.lang.Object
-
- visad.Control
-
- visad.RendererControl
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class RendererControl extends Control
RendererControlis the VisAD class for controllingDisplayRendererdata.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description RendererControl(DisplayImpl dpy)Construct a renderer control.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()booleanequals(java.lang.Object o)Compare this object to another object.float[]getBackgroundColor()Get the background color.float[]getBoxColor()Get the box color.booleangetBoxOn()Get the box visibility.float[]getCursorColor()Get the cursor color.float[]getForegroundColor()Get the foreground color set usingsetForegroundColor(float, float, float).java.lang.StringgetSaveString()get a string that can be used to reconstruct this control latervoidsetBackgroundColor(java.awt.Color color)Set the background color.voidsetBackgroundColor(float r, float g, float b)Set the background color.voidsetBoxColor(java.awt.Color color)Set the box color.voidsetBoxColor(float r, float g, float b)Set the box color.voidsetBoxOn(boolean on)Set the box visibility.voidsetCursorColor(java.awt.Color color)Set the cursor color.voidsetCursorColor(float r, float g, float b)Set the cursor color.voidsetForegroundColor(java.awt.Color color)Convenience method to set the foreground color (box, cursor and axes).voidsetForegroundColor(float r, float g, float b)Convenience method to set the foreground color (box, cursor and axes).voidsetSaveString(java.lang.String save)reconstruct this control using the specified save stringvoidsyncControl(Control ctl)Copy the state of the specified control.java.lang.StringtoString()-
Methods inherited from class visad.Control
addControlListener, animation_string, changeControl, checkTicks, getDisplay, getDisplayRenderer, getInstanceNumber, incTick, nullControl, peekTicks, removeControlListener, resetTicks, setTicks, subCheckTicks, subPeekTicks, subResetTicks, subSetTicks
-
-
-
-
Constructor Detail
-
RendererControl
public RendererControl(DisplayImpl dpy)
Construct a renderer control.- Parameters:
dpy- Display with which this control is associated.
-
-
Method Detail
-
getBackgroundColor
public float[] getBackgroundColor()
Get the background color.- Returns:
- A 3 element array of
floatvalues in the range[0.0f - 1.0f]in the order (Red, Green, Blue).
-
setBackgroundColor
public void setBackgroundColor(java.awt.Color color) throws java.rmi.RemoteException, VisADExceptionSet the background color.- Parameters:
color- background color- Throws:
java.rmi.RemoteExceptionVisADException
-
setBackgroundColor
public void setBackgroundColor(float r, float g, float b) throws java.rmi.RemoteException, VisADExceptionSet the background color. All specified values should be in the range[0.0f - 1.0f].- Parameters:
r- Red value.g- Green value.b- Blue value.- Throws:
java.rmi.RemoteExceptionVisADException
-
getForegroundColor
public float[] getForegroundColor()
Get the foreground color set usingsetForegroundColor(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.- Returns:
- A 3 element array of
floatvalues in the range[0.0f - 1.0f]in the order (Red, Green, Blue). - See Also:
setForegroundColor(float, float, float)
-
setForegroundColor
public void setForegroundColor(java.awt.Color color) throws java.rmi.RemoteException, VisADExceptionConvenience method to set the foreground color (box, cursor and axes). Overrides any previous calls to setCursorColor, setBoxColor and ScalarMap.setScaleColor().- Parameters:
color- foreground color- Throws:
java.rmi.RemoteExceptionVisADException
-
setForegroundColor
public void setForegroundColor(float r, float g, float b) throws java.rmi.RemoteException, VisADExceptionConvenience method to set the foreground color (box, cursor and axes). Overrides any previous calls to setCursorColor, setBoxColor and ScalarMap.setScaleColor(). All specified values should be in the range[0.0f - 1.0f].- Parameters:
r- Red value.g- Green value.b- Blue value.- Throws:
java.rmi.RemoteExceptionVisADException- See Also:
getForegroundColor(),setCursorColor(float, float, float),setBoxColor(float, float, float),ScalarMap.setScaleColor(float[])
-
getBoxColor
public float[] getBoxColor()
Get the box color.- Returns:
- A 3 element array of
floatvalues in the range[0.0f - 1.0f]in the order (Red, Green, Blue).
-
getBoxOn
public boolean getBoxOn()
Get the box visibility.- Returns:
trueif the box is visible.
-
setBoxColor
public void setBoxColor(java.awt.Color color) throws java.rmi.RemoteException, VisADExceptionSet the box color.- Parameters:
color- box color- Throws:
java.rmi.RemoteExceptionVisADException
-
setBoxColor
public void setBoxColor(float r, float g, float b) throws java.rmi.RemoteException, VisADExceptionSet the box color. All specified values should be in the range[0.0f - 1.0f].- Parameters:
r- Red value.g- Green value.b- Blue value.- Throws:
java.rmi.RemoteExceptionVisADException
-
setBoxOn
public void setBoxOn(boolean on) throws java.rmi.RemoteException, VisADExceptionSet the box visibility.- Parameters:
on-trueif the box should be visible.- Throws:
java.rmi.RemoteExceptionVisADException
-
getCursorColor
public float[] getCursorColor()
Get the cursor color.- Returns:
- A 3 element array of
floatvalues in the range[0.0f - 1.0f]in the order (Red, Green, Blue).
-
setCursorColor
public void setCursorColor(java.awt.Color color) throws java.rmi.RemoteException, VisADExceptionSet the cursor color.- Parameters:
color- cursor color- Throws:
java.rmi.RemoteExceptionVisADException
-
setCursorColor
public void setCursorColor(float r, float g, float b) throws java.rmi.RemoteException, VisADExceptionSet the cursor color. All specified values should be in the range[0.0f - 1.0f].- Parameters:
r- Red value.g- Green value.b- Blue value.- Throws:
java.rmi.RemoteExceptionVisADException
-
getSaveString
public java.lang.String getSaveString()
get a string that can be used to reconstruct this control later- Specified by:
getSaveStringin classControl- Returns:
- String representation of this Control
-
setSaveString
public void setSaveString(java.lang.String save) throws VisADException, java.rmi.RemoteExceptionreconstruct this control using the specified save string- Specified by:
setSaveStringin classControl- Parameters:
save- - String representation for reconstruction- Throws:
VisADException- if a VisAD error occursjava.rmi.RemoteException- if an RMI error occurs
-
syncControl
public void syncControl(Control ctl) throws VisADException
Copy the state of the specified control.- Specified by:
syncControlin classControl- Parameters:
ctl-Controlto copy.- Throws:
VisADException- if a VisAD error occurs
-
equals
public boolean equals(java.lang.Object o)
Compare this object to another object.
-
clone
public java.lang.Object clone()
-
-
DMelt 3.0 © DataMelt by jWork.ORG