Class sgraphics.widget.ScrollbarGlyph
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sgraphics.widget.ScrollbarGlyph

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Scrollbar
                   |
                   +----sgraphics.widget.ScrollbarGlyph

public class ScrollbarGlyph
extends Scrollbar
implements Viewer, Widget, Glyph, Observer
A class that allows an awt scrollbar to be used as a glyph. If an Adjustment is used, the user is responsible for remove the ScrollbarGlyph from the adjustment with Ovservable.deleteObserver(Adjustment). Otherwise, finalize will remove it.

Constructor Index

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

Method Index

 o allocate(Allocation)
 o append(Glyph)
 o body()
 o count()
 o disconnected()
 o draw(Painter)
 o empty()
 o finalize()
Code to perform when this object is garbage collected.
 o getChild(int)
 o getParentGlyph()
 o getSgraphicsAdapter()
 o grab(Viewer)
 o handleEvent(GraphicsEvent)
 o needRedraw()
 o needRedraw(Area)
 o needResize()
 o pick(Picker)
 o prepend(Glyph)
 o processPick(Picker, GraphicsEvent)
 o removeCallback()
 o replace(int, Glyph)
 o requirements()
 o setBody(Glyph)
 o setCallback(ViewerCallback)
 o setParent(Glyph)
 o swap(int, int)
 o ungrab()
 o update(Observable, Object)

Constructors

 o ScrollbarGlyph
  public ScrollbarGlyph()
Constructs a new vertical Scrollbar.
 o ScrollbarGlyph
  public ScrollbarGlyph(Adjustment adjustment)
Constructs a new vertical Scrollbar.
Parameters:
adjustment - the Adjustment to observe.
 o ScrollbarGlyph
  public ScrollbarGlyph(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 ScrollbarGlyph
  public ScrollbarGlyph(int orientation,
                        Adjustment adjustment)
Constructs a new Scrollbar with the specified orientation.
Parameters:
orientation - either Scrollbar.HORIZONTAL or Scrollbar.VERTICAL.
adjustment - the Adjustment to observe.
Throws: IllegalArgumentException
when an illegal scrollbar orientation is given.
 o ScrollbarGlyph
  public ScrollbarGlyph(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
Throws: IllegalArgumentException
when an illegal scrollbar orientation is given.
 o ScrollbarGlyph
  public ScrollbarGlyph(int orientation,
                        int value,
                        int visible,
                        int minimum,
                        int maximum,
                        Adjustment adjustment)
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
adjustment - the Adjustment to observe.
Throws: IllegalArgumentException
when an illegal scrollbar orientation is given.

Methods

 o finalize
  protected void finalize() throws Throwable
Code to perform when this object is garbage collected.
Overrides:
finalize in class Object
 o update
  public void update(Observable observable,
                     Object arg)
 o disconnected
  public void disconnected()
 o requirements
  public Requirements requirements()
 o allocate
  public void allocate(Allocation allocation)
 o setParent
  public void setParent(Glyph parent)
 o getParentGlyph
  public Glyph getParentGlyph()
 o setCallback
  public void setCallback(ViewerCallback callback)
 o removeCallback
  public void removeCallback()
 o pick
  public void pick(Picker pick)
 o processPick
  public boolean processPick(Picker pick,
                             GraphicsEvent event)
 o handleEvent
  public boolean handleEvent(GraphicsEvent event)
 o body
  public Glyph body()
 o setBody
  public void setBody(Glyph body)
 o append
  public void append(Glyph glyph)
 o prepend
  public void prepend(Glyph glyph)
 o replace
  public void replace(int position,
                      Glyph glyph)
 o swap
  public void swap(int position1,
                   int position2)
 o getChild
  public Glyph getChild(int pos)
 o empty
  public void empty()
 o count
  public int count()
 o grab
  public void grab(Viewer target)
 o ungrab
  public void ungrab()
 o needRedraw
  public void needRedraw()
 o needRedraw
  public void needRedraw(Area area)
 o needResize
  public void needResize()
 o draw
  public void draw(Painter painter)
 o getSgraphicsAdapter
  public SgraphicsAdapter getSgraphicsAdapter()

All Packages  Class Hierarchy  This Package  Previous  Next  Index