multivalent.gui
public class VScrollbar extends Leaf implements EventListener
Version: $Revision: 1.11 $ $Date: 2003/06/02 05:20:34 $
See Also: IScrollPane
Field Summary | |
---|---|
static int | BOTTOMARROW Logical parts of scrollbar reported by idLocation. |
static int | BOTTOMTROUGH Logical parts of scrollbar reported by idLocation. |
static int | HORIZONTAL Scrollbar orientation to pass in constructor. |
static int | NIB Logical parts of scrollbar reported by idLocation. |
static int | NOWHERE Logical parts of scrollbar reported by idLocation. |
static byte | SHOW_ALWAYS Policy for showing scrollbar. |
static byte | SHOW_AS_NEEDED Policy for showing scrollbar. |
static byte | SHOW_NEVER Policy for showing scrollbar. |
static int | SIZE Width of scrollbar (height if horizontal). |
static int | TOPARROW Logical parts of scrollbar reported by idLocation. |
static int | TOPTROUGH Logical parts of scrollbar reported by idLocation. |
static int | VERTICAL Scrollbar orientation to pass in constructor. |
Constructor Summary | |
---|---|
VScrollbar(int orientation) | |
VScrollbar(String name, Map<String,Object> attr, INode parent, int orientation) |
Method Summary | |
---|---|
void | event(AWTEvent e) |
boolean | eventNode(AWTEvent e, Point rel) |
boolean | formatNode(int width, int height, Context cx) |
int | getBlockIncrement() |
int | getLineIncrement() |
int | getMax() |
int | getMin() |
byte | getShowPolicy() |
int | getValue() |
int | idLocation(Point rel) Figure out what scrollbar part lies under the passed point, such as TOPARROW. |
boolean | paintNodeContent(Context cx, int start, int end) Subclass for different scrollbar appearances. |
void | setMinMax(int minimum, int maximum) Set min and max values of source. |
void | setShowPolicy(byte policy) |
void | setValue(int value, boolean pickplace)
Value is in source coordinates. |
void | setValue(int value) Same as setValue(value, false) . |
Parameters: pickplace Smart scrolling, after Tk's text widget -pickplace option: If the location is already shown, do nothing; if it's a little way off the screen (top or bottom), scroll just enough to bring it into view; if it's far away, show it centered.
setValue(value, false)
.