Class sunsoft.jws.visual.rt.awt.WinScrollbar
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sunsoft.jws.visual.rt.awt.WinScrollbar

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----sunsoft.jws.visual.rt.awt.WinScrollbar

public class WinScrollbar
extends Canvas

Variable Index

 o HORIZONTAL
The horizontal Scrollbar variable.
 o VERTICAL
The vertical Scrollbar variable.

Constructor Index

 o WinScrollbar()
Constructs a new vertical Scrollbar.
 o WinScrollbar(int)
Constructs a new Scrollbar with the specified orientation.
 o WinScrollbar(int, int, int, int, int)
Constructs a new Scrollbar with the specified orientation, value, page size, and minumum and maximum values.

Method Index

 o getLineIncrement()
Gets the line increment for this scrollbar.
 o getMaximum()
Returns the maximum value of this Scrollbar.
 o getMinimum()
Returns the minimum value of this Scrollbar.
 o getOrientation()
Returns the orientation for this Scrollbar.
 o getPageIncrement()
Gets the page increment for this scrollbar.
 o getValue()
Returns the current value of this Scrollbar.
 o getVisible()
Returns the visible amount of the Scrollbar.
 o minimumSize()
Returns the minimum size for the scrollbar
 o mouseDown(Event, int, int)
 o mouseDrag(Event, int, int)
 o mouseUp(Event, int, int)
 o paint(Graphics)
 o paramString()
Returns the String parameters for this Scrollbar.
 o preferredSize()
Returns the preferred size for the scrollbar
 o reshape(int, int, int, int)
 o setLineIncrement(int)
Sets the line increment for this scrollbar.
 o setPageIncrement(int)
Sets the page increment for this scrollbar.
 o setValue(int)
Sets the value of this Scrollbar to the specified value.
 o setValues(int, int, int, int)
Sets the values for this Scrollbar.
 o update(Graphics)

Variables

 o HORIZONTAL
  public final static int HORIZONTAL
The horizontal Scrollbar variable.
 o VERTICAL
  public final static int VERTICAL
The vertical Scrollbar variable.

Constructors

 o WinScrollbar
  public WinScrollbar()
Constructs a new vertical Scrollbar.
 o WinScrollbar
  public WinScrollbar(int orientation)
Constructs a new Scrollbar with the specified orientation.
Parameters:
orientation - either Scrollbar.HORIZONTAL or Scrollbar.VERTICAL
Throws: IllegalArgumentException
When an illegal scrollbar orientation is given.
 o WinScrollbar
  public WinScrollbar(int orientation,
                      int value,
                      int visible,
                      int minimum,
                      int maximum)
Constructs a new Scrollbar with the specified orientation, value, page size, and minumum and maximum values.
Parameters:
orientation - either Scrollbar.HORIZONTAL or Scrollbar.VERTICAL
value - the scrollbar's value
visible - the size of the visible portion of the scrollable area. The scrollbar will use this value when paging up or down by a page.
minimum - the minimum value of the scrollbar
maximum - the maximum value of the scrollbar

Methods

 o getOrientation
  public int getOrientation()
Returns the orientation for this Scrollbar.
 o getValue
  public int getValue()
Returns the current value of this Scrollbar.
See Also:
getMinimum, getMaximum
 o setValue
  public void setValue(int value)
Sets the value of this Scrollbar to the specified value.
Parameters:
value - the new value of the Scrollbar. If this value is below the current minimum or above the current maximum, it becomes the new one of those values, respectively.
See Also:
getValue
 o getMinimum
  public int getMinimum()
Returns the minimum value of this Scrollbar.
See Also:
getMaximum, getValue
 o getMaximum
  public int getMaximum()
Returns the maximum value of this Scrollbar.
See Also:
getMinimum, getValue
 o getVisible
  public int getVisible()
Returns the visible amount of the Scrollbar.
 o setLineIncrement
  public void setLineIncrement(int l)
Sets the line increment for this scrollbar. This is the value that will be added (subtracted) when the user hits the line down (up) gadgets.
 o getLineIncrement
  public int getLineIncrement()
Gets the line increment for this scrollbar.
 o setPageIncrement
  public void setPageIncrement(int l)
Sets the page increment for this scrollbar. This is the value that will be added (subtracted) when the user hits the page down (up) gadgets.
 o getPageIncrement
  public int getPageIncrement()
Gets the page increment for this scrollbar.
 o setValues
  public void setValues(int value,
                        int visible,
                        int minimum,
                        int maximum)
Sets the values for this Scrollbar.
Parameters:
value - is the position in the current window.
visible - is the amount visible per page
minimum - is the minimum value of the scrollbar
maximum - is the maximum value of the scrollbar
 o paramString
  protected String paramString()
Returns the String parameters for this Scrollbar.
Overrides:
paramString in class Component
 o minimumSize
  public Dimension minimumSize()
Returns the minimum size for the scrollbar
Overrides:
minimumSize in class Component
 o preferredSize
  public Dimension preferredSize()
Returns the preferred size for the scrollbar
Overrides:
preferredSize in class Component
 o reshape
  public void reshape(int x,
                      int y,
                      int width,
                      int height)
Overrides:
reshape in class Component
 o update
  public void update(Graphics g)
Overrides:
update in class Component
 o paint
  public void paint(Graphics g)
Overrides:
paint in class Canvas
 o mouseDown
  public boolean mouseDown(Event evt,
                           int x,
                           int y)
Overrides:
mouseDown in class Component
 o mouseDrag
  public boolean mouseDrag(Event evt,
                           int x,
                           int y)
Overrides:
mouseDrag in class Component
 o mouseUp
  public boolean mouseUp(Event evt,
                         int x,
                         int y)
Overrides:
mouseUp in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index