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.
-
ScrollbarGlyph()
- Constructs a new vertical Scrollbar.
-
ScrollbarGlyph(Adjustment)
- Constructs a new vertical Scrollbar.
-
ScrollbarGlyph(int)
- Constructs a new Scrollbar with the specified orientation.
-
ScrollbarGlyph(int, Adjustment)
- Constructs a new Scrollbar with the specified orientation.
-
ScrollbarGlyph(int, int, int, int, int)
- Constructs a new Scrollbar with the specified orientation,
value, page size, and minumum and maximum values.
-
ScrollbarGlyph(int, int, int, int, int, Adjustment)
- Constructs a new Scrollbar with the specified orientation,
value, page size, and minumum and maximum values.
-
allocate(Allocation)
-
-
append(Glyph)
-
-
body()
-
-
count()
-
-
disconnected()
-
-
draw(Painter)
-
-
empty()
-
-
finalize()
- Code to perform when this object is garbage collected.
-
getChild(int)
-
-
getParentGlyph()
-
-
getSgraphicsAdapter()
-
-
grab(Viewer)
-
-
handleEvent(GraphicsEvent)
-
-
needRedraw()
-
-
needRedraw(Area)
-
-
needResize()
-
-
pick(Picker)
-
-
prepend(Glyph)
-
-
processPick(Picker, GraphicsEvent)
-
-
removeCallback()
-
-
replace(int, Glyph)
-
-
requirements()
-
-
setBody(Glyph)
-
-
setCallback(ViewerCallback)
-
-
setParent(Glyph)
-
-
swap(int, int)
-
-
ungrab()
-
-
update(Observable, Object)
-
ScrollbarGlyph
public ScrollbarGlyph()
- Constructs a new vertical Scrollbar.
ScrollbarGlyph
public ScrollbarGlyph(Adjustment adjustment)
- Constructs a new vertical Scrollbar.
- Parameters:
- adjustment - the Adjustment to observe.
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.
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.
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.
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.
finalize
protected void finalize() throws Throwable
- Code to perform when this object is garbage collected.
- Overrides:
- finalize in class Object
update
public void update(Observable observable,
Object arg)
disconnected
public void disconnected()
requirements
public Requirements requirements()
allocate
public void allocate(Allocation allocation)
setParent
public void setParent(Glyph parent)
getParentGlyph
public Glyph getParentGlyph()
setCallback
public void setCallback(ViewerCallback callback)
removeCallback
public void removeCallback()
pick
public void pick(Picker pick)
processPick
public boolean processPick(Picker pick,
GraphicsEvent event)
handleEvent
public boolean handleEvent(GraphicsEvent event)
body
public Glyph body()
setBody
public void setBody(Glyph body)
append
public void append(Glyph glyph)
prepend
public void prepend(Glyph glyph)
replace
public void replace(int position,
Glyph glyph)
swap
public void swap(int position1,
int position2)
getChild
public Glyph getChild(int pos)
empty
public void empty()
count
public int count()
grab
public void grab(Viewer target)
ungrab
public void ungrab()
needRedraw
public void needRedraw()
needRedraw
public void needRedraw(Area area)
needResize
public void needResize()
draw
public void draw(Painter painter)
getSgraphicsAdapter
public SgraphicsAdapter getSgraphicsAdapter()
All Packages Class Hierarchy This Package Previous Next Index