Class ncsa.horizon.awt.IntScrollPanel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.horizon.awt.IntScrollPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----ncsa.horizon.awt.IntScrollPanel

public class IntScrollPanel
extends Panel
This class is a labeled and value-displaying horizontal scrollbar. The value is displayed in a TextField which becomes editable or non-editalbe dynamically.

Variable Index

 o label
 o scroll
 o value

Constructor Index

 o IntScrollPanel(int, String)
Create a scrollbar with label and value fields.

Method Index

 o action(Event, Object)
 o getLabel()
Get the label value.
 o getLineIncrement()
Get the scrollbar's line increment value.
 o getMaximum()
Get the scrollbar's maximum value.
 o getMinimum()
Get the scrollbar's minimum value.
 o getOrientation()
Get the scrollbar's orientation value.
 o getPageIncrement()
Get the scrollbar's page increment value.
 o getValue()
Get the scrollbar's current value.
 o getVisible()
Get the scrollbar's visible value.
 o handleEvent(Event)
Handle all scrollbar events.
 o mouseEnter(Event, int, int)
 o mouseExit(Event, int, int)
 o reshape(int, int, int, int)
Make sure all components get resized.
 o setLabel(String)
Set the label.
 o setLineIncrement(int)
Set the scrollbar's line increment value.
 o setPageIncrement(int)
Set the scrollbar's page increment value.
 o setValue(int)
Set the scrollbar's value.
 o setValues(int, int, int, int)
Set several of the the scrollbar's values.
 o toString()
Get a string representation of the extended scrollbar values.

Variables

 o scroll
  protected Scrollbar scroll
 o label
  protected Label label
 o value
  protected TextField value

Constructors

 o IntScrollPanel
  public IntScrollPanel(int orientation,
                        String l)
Create a scrollbar with label and value fields.
Parameters:
orientation - The orientation of the scrollbar. Either Scrollbar.HORIZONTAL or Scrollbar.VERTICAL .
l - The label for the scrollbar.

Methods

 o action
  public boolean action(Event ev,
                        Object obj)
Overrides:
action in class Component
 o handleEvent
  public boolean handleEvent(Event evt)
Handle all scrollbar events. The associated text field is updated on any scrollbar manipulation. This implementation lets the superclass handle all non-scroll events.
Parameters:
evt - The Scrollbar event to handle.
Returns:
true if event has been handled; false otherwise.
Overrides:
handleEvent in class Component
 o getLineIncrement
  public int getLineIncrement()
Get the scrollbar's line increment value.
Returns:
The increment value.
 o getMaximum
  public int getMaximum()
Get the scrollbar's maximum value.
Returns:
The maximum value.
 o getMinimum
  public int getMinimum()
Get the scrollbar's minimum value.
Returns:
The minimum value.
 o getOrientation
  public int getOrientation()
Get the scrollbar's orientation value.
Returns:
The orientation value.
 o getPageIncrement
  public int getPageIncrement()
Get the scrollbar's page increment value.
Returns:
The increment value.
 o getValue
  public int getValue()
Get the scrollbar's current value.
Returns:
The current value.
 o getVisible
  public int getVisible()
Get the scrollbar's visible value.
Returns:
The visible value.
 o mouseEnter
  public boolean mouseEnter(Event event,
                            int x,
                            int y)
Overrides:
mouseEnter in class Component
 o mouseExit
  public boolean mouseExit(Event event,
                           int x,
                           int y)
Overrides:
mouseExit in class Component
 o setLineIncrement
  public void setLineIncrement(int l)
Set the scrollbar's line increment value.
Parameters:
l - The line increment value.
 o setPageIncrement
  public void setPageIncrement(int l)
Set the scrollbar's page increment value.
Parameters:
l - The page increment value.
 o setValue
  public void setValue(int _value)
Set the scrollbar's value.
Parameters:
l - The value.
 o setValues
  public void setValues(int _value,
                        int visible,
                        int minimum,
                        int maximum)
Set several of the the scrollbar's values.
Parameters:
_value - The value.
visible - The visibility value.
minimum - The minimum value.
maximum - The maximum value.
 o setLabel
  public void setLabel(String l)
Set the label.
Parameters:
l - The label value.
 o getLabel
  public String getLabel()
Get the label value.
Returns:
The label.
 o toString
  public String toString()
Get a string representation of the extended scrollbar values.
Returns:
The values of the label and scrollbar.
Overrides:
toString in class Component
 o reshape
  public void reshape(int x,
                      int y,
                      int width,
                      int height)
Make sure all components get resized.
Overrides:
reshape in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index