Documentation of 'visad.RendererControl' Java class
RendererControl
visad

Class RendererControl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class RendererControl
    extends Control
    RendererControl is the VisAD class for controlling DisplayRenderer data.

    See Also:
    Serialized Form
    • 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 float values 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,
                                       VisADException
        Set the background color.
        Parameters:
        color - background color
        Throws:
        java.rmi.RemoteException
        VisADException
      • setBackgroundColor

        public void setBackgroundColor(float r,
                                       float g,
                                       float b)
                                throws java.rmi.RemoteException,
                                       VisADException
        Set 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.RemoteException
        VisADException
      • getForegroundColor

        public float[] getForegroundColor()
        Get the foreground color set using 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.
        Returns:
        A 3 element array of float values 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,
                                       VisADException
        Convenience 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.RemoteException
        VisADException
      • getBoxColor

        public float[] getBoxColor()
        Get the box color.
        Returns:
        A 3 element array of float values in the range [0.0f - 1.0f] in the order (Red, Green, Blue).
      • getBoxOn

        public boolean getBoxOn()
        Get the box visibility.
        Returns:
        true if the box is visible.
      • setBoxColor

        public void setBoxColor(java.awt.Color color)
                         throws java.rmi.RemoteException,
                                VisADException
        Set the box color.
        Parameters:
        color - box color
        Throws:
        java.rmi.RemoteException
        VisADException
      • setBoxColor

        public void setBoxColor(float r,
                                float g,
                                float b)
                         throws java.rmi.RemoteException,
                                VisADException
        Set 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.RemoteException
        VisADException
      • setBoxOn

        public void setBoxOn(boolean on)
                      throws java.rmi.RemoteException,
                             VisADException
        Set the box visibility.
        Parameters:
        on - true if the box should be visible.
        Throws:
        java.rmi.RemoteException
        VisADException
      • getCursorColor

        public float[] getCursorColor()
        Get the cursor color.
        Returns:
        A 3 element array of float values 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,
                                   VisADException
        Set the cursor color.
        Parameters:
        color - cursor color
        Throws:
        java.rmi.RemoteException
        VisADException
      • setCursorColor

        public void setCursorColor(float r,
                                   float g,
                                   float b)
                            throws java.rmi.RemoteException,
                                   VisADException
        Set 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.RemoteException
        VisADException
      • getSaveString

        public java.lang.String getSaveString()
        get a string that can be used to reconstruct this control later
        Specified by:
        getSaveString in class Control
        Returns:
        String representation of this Control
      • setSaveString

        public void setSaveString(java.lang.String save)
                           throws VisADException,
                                  java.rmi.RemoteException
        reconstruct this control using the specified save string
        Specified by:
        setSaveString in class Control
        Parameters:
        save - - String representation for reconstruction
        Throws:
        VisADException - if a VisAD error occurs
        java.rmi.RemoteException - if an RMI error occurs
      • equals

        public boolean equals(java.lang.Object o)
        Compare this object to another object.
        Overrides:
        equals in class Control
        Parameters:
        o - Object to compare.
        Returns:
        true if this object is "equal" to the specified object.
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class Control
        Returns:
        a copy of this Control
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Control
        Returns:
        a simple String representation of this Control

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.