satin.uishell
Class ASlider

java.lang.Object
  |
  +--satin.aro.AROobject
        |
        +--satin.aro.AROremoteObject
              |
              +--satin.core.AObject
                    |
                    +--satin.uishell.APane
                          |
                          +--satin.uishell.AGadget
                                |
                                +--satin.uishell.ASlider

public class ASlider
extends AGadget

Represents a C++ ASlider object in an ARO server.

Author:
Ed Stauff

Fields inherited from class satin.uishell.APane
uiName
 
Fields inherited from class satin.aro.AROremoteObject
server
 
Fields inherited from class satin.aro.AROobject
id
 
Constructor Summary
ASlider(APane pane)
          Constructs an object representing an ASlider.
ASlider(AROremoteServer rs, AROobjectID id)
          Constructs an object representing an ASlider.
ASlider(AWindow window, java.lang.String paneID)
          Constructs an object representing an ASlider.
 
Method Summary
double getMax()
          Returns the slider's maximum value.
double getMin()
          Returns the slider's minimum value.
double getValue()
          Returns the slider's current value.
void setValue(double value)
          Causes the slider to change its value.
AROpoint valueToPt(double value)
          Returns a location that corresponds to the given value.
 
Methods inherited from class satin.uishell.AGadget
getEnabled, getMenuContents, getMenuContents, getMenuItem, getResourceID, getResourceType, getState, hasMenu
 
Methods inherited from class satin.uishell.APane
doClick, doClick, doClick, doClick, doClick, doClick, getBounds, getClassAndID, getFrame, getLabel, getPaneID, getParent, getSubPanes, getText, getUIname, getWindow, isActive, isVisible, postClickEvent, toString
 
Methods inherited from class satin.core.AObject
className, isInstanceOf
 
Methods inherited from class satin.aro.AROremoteObject
equals, exists, getAROclassName
 
Methods inherited from class satin.aro.AROobject
getID, setID, toAROstring
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASlider

public ASlider(AROremoteServer rs,
               AROobjectID id)
Constructs an object representing an ASlider.

Parameters:
rs
the ARO server in which the C++ object lives.
id
the ARO object ID of the APane.

ASlider

public ASlider(AWindow window,
               java.lang.String paneID)
        throws java.io.IOException,
               AROexception,
               PaneIDnotFound
Constructs an object representing an ASlider.

Parameters:
window
the pane's parent window.
paneID
the pane ID of the pane.

ASlider

public ASlider(APane pane)
        throws java.io.IOException,
               AROexception
Constructs an object representing an ASlider. Use this constructor to "cast" an APane object to an ASlider object. Throws an assertion if the APane in the application is not a member of the class ASlider.

Parameters:
pane
the pane's parent window.
paneID
the pane ID of the pane.
Method Detail

getValue

public double getValue()
                throws java.io.IOException,
                       AROexception
Returns the slider's current value. This is a front-end to the C++ method of the same name.

Returns:
the current value.

setValue

public void setValue(double value)
              throws java.io.IOException,
                     AROexception
Causes the slider to change its value. This is a front-end to the C++ method of the same name.

getMin

public double getMin()
              throws java.io.IOException,
                     AROexception
Returns the slider's minimum value. This is a front-end to the C++ method of the same name.

Returns:
the min value.

getMax

public double getMax()
              throws java.io.IOException,
                     AROexception
Returns the slider's maximum value. This is a front-end to the C++ method of the same name.

Returns:
the max value.

valueToPt

public AROpoint valueToPt(double value)
                   throws java.io.IOException,
                          AROexception
Returns a location that corresponds to the given value. This is a front-end to the C++ method of the same name.

Returns:
the corresponding location.
Revision History

7/26/01 - code review.

7/13/01 Ed Stauff - added constructor that takes an APane.

4/6/01 Ed Stauff - changes per review.

3/28/01 Ed Stauff - initial review by Satin team.



Generated on 5/9/2001 19:37 from ASlider.java (PRIVATE SOURCES)