|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.svg.component.SVGHorizontalScrollBar
public class SVGHorizontalScrollBar
The convention for a scroll bar is that the background element has the 'bkg' suffix (e.g., "myScrollBar.bkg") and the thumb element has the suffix 'thumb' (e.g., "myScrollBar.thumb").
Field Summary | |
---|---|
(package private) static java.lang.String |
BACKGROUND_SUFFIX
|
protected java.lang.String |
idPrefix
The scroll bar's id prefix, i.e., the prefix used for all of the scrollbar component ids. |
protected float |
maxTranslate
The max position of the thumb along the x-axis |
protected float |
minTranslate
The min position of the thumb along the x-axis |
protected float |
pos
The current scrollbar position. |
protected org.w3c.dom.svg.SVGSVGElement |
svg
The document's root svg element. |
protected org.w3c.dom.svg.SVGLocatableElement |
thumb
The scroll bar thumb |
(package private) static java.lang.String |
THUMB_SUFFIX
|
protected org.w3c.dom.svg.SVGMatrix |
thumbTxf
The thumb's initial transform. |
Constructor Summary | |
---|---|
SVGHorizontalScrollBar(java.lang.String idPrefix)
|
Method Summary | |
---|---|
void |
hookSkin(org.w3c.dom.Document doc)
Hooks this scroll bar with a new skin. |
void |
setThumbPosition(float pos)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final java.lang.String BACKGROUND_SUFFIX
static final java.lang.String THUMB_SUFFIX
protected org.w3c.dom.svg.SVGLocatableElement thumb
protected org.w3c.dom.svg.SVGMatrix thumbTxf
protected float minTranslate
protected float maxTranslate
protected org.w3c.dom.svg.SVGSVGElement svg
protected java.lang.String idPrefix
protected float pos
Constructor Detail |
---|
public SVGHorizontalScrollBar(java.lang.String idPrefix)
idPrefix
- the scrollBar id prefix.Method Detail |
---|
public void hookSkin(org.w3c.dom.Document doc)
doc
- - the new skin content.public void setThumbPosition(float pos)
pos
- the desired thumb position in the [0, 1] interval. If the value is out of range, it
is clipped to the valid range.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |