public final class ScrollBarThemeImpl extends ScrollBarTheme
| Modifier and Type | Class and Description |
|---|---|
private static class |
ScrollBarThemeImpl.ScrollBarRef |
private class |
ScrollBarThemeImpl.ScrollBarWidget |
| Modifier and Type | Field and Description |
|---|---|
private Accessor |
accessor |
private static java.util.logging.Logger |
log |
private RenderThemeImpl.Pool<ScrollBarThemeImpl.ScrollBarWidget> |
pool |
private java.lang.ref.WeakReference<ScrollBar> |
testSBRef |
private boolean |
thicknessInitialized |
BACK_BUTTON_END_PART, BACK_BUTTON_START_PART, BACK_TRACK_PART, FORWARD_BUTTON_END_PART, FORWARD_BUTTON_START_PART, FORWARD_TRACK_PART, HORIZONTAL_SCROLLBAR, NO_PART, SCROLLBAR_BG_PART, THUMB_PART, TRACK_BG_PART, VERTICAL_SCROLLBAR| Constructor and Description |
|---|
ScrollBarThemeImpl(Accessor accessor) |
| Modifier and Type | Method and Description |
|---|---|
private void |
adjustScrollBar(ScrollBar sb,
int w,
int h,
int orientation) |
private void |
adjustScrollBar(ScrollBar sb,
int w,
int h,
int orientation,
int value,
int visibleSize,
int totalSize) |
private static Orientation |
convertOrientation(int orientation) |
protected Ref |
createWidget(long id,
int w,
int h,
int orientation,
int value,
int visibleSize,
int totalSize) |
private static Node |
findNode(ScrollBar scrollBar,
java.lang.String styleclass) |
private static Node |
getDecButton(ScrollBar scrollBar) |
private static Node |
getIncButton(ScrollBar scrollBar) |
protected void |
getScrollBarPartRect(long id,
int part,
int[] rect) |
private static Node |
getThumb(ScrollBar scrollBar) |
private static Node |
getTrack(ScrollBar scrollBar) |
WCSize |
getWidgetSize(Ref widget) |
private void |
initializeThickness() |
void |
paint(WCGraphicsContext g,
Ref sbRef,
int x,
int y,
int pressedPart,
int hoveredPart) |
getThickness, setThicknessprivate static final java.util.logging.Logger log
private java.lang.ref.WeakReference<ScrollBar> testSBRef
private boolean thicknessInitialized
private final Accessor accessor
private final RenderThemeImpl.Pool<ScrollBarThemeImpl.ScrollBarWidget> pool
public ScrollBarThemeImpl(Accessor accessor)
private static Orientation convertOrientation(int orientation)
private void adjustScrollBar(ScrollBar sb, int w, int h, int orientation)
private void adjustScrollBar(ScrollBar sb, int w, int h, int orientation, int value, int visibleSize, int totalSize)
protected Ref createWidget(long id, int w, int h, int orientation, int value, int visibleSize, int totalSize)
createWidget in class ScrollBarThemepublic void paint(WCGraphicsContext g, Ref sbRef, int x, int y, int pressedPart, int hoveredPart)
paint in class ScrollBarThemepublic WCSize getWidgetSize(Ref widget)
getWidgetSize in class ScrollBarThemeprotected void getScrollBarPartRect(long id,
int part,
int[] rect)
getScrollBarPartRect in class ScrollBarThemeprivate void initializeThickness()