APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.javafx.webkit.theme

public final Class ScrollBarThemeImpl

extends ScrollBarTheme
Class Inheritance
Imports
java.lang.ref.WeakReference, com.sun.javafx.logging.PlatformLogger, .PlatformLogger.Level, javafx.beans.Observable, javafx.geometry.Bounds, .Orientation, javafx.scene.Node, javafx.scene.control.Control, .ScrollBar, com.sun.webkit.graphics.Ref, .ScrollBarTheme, .WCGraphicsContext, .WCSize, com.sun.javafx.webkit.Accessor, com.sun.javafx.webkit.theme.RenderThemeImpl.Pool, .RenderThemeImpl.ViewListener

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final Accessor
private static final PlatformLogger
private final RenderThemeImpl.Pool<ScrollBarWidget>
private WeakReference<ScrollBar>
Inherited from com.sun.webkit.graphics.ScrollBarTheme:
BACK_BUTTON_END_PARTBACK_BUTTON_START_PARTBACK_TRACK_PARTFORWARD_BUTTON_END_PARTFORWARD_BUTTON_START_PARTFORWARD_TRACK_PARTHORIZONTAL_SCROLLBARNO_PARTSCROLLBAR_BG_PARTTHUMB_PARTTRACK_BG_PARTVERTICAL_SCROLLBAR

Constructor Summary

AccessConstructor and Description
public
ScrollBarThemeImpl(final Accessor accessor)

Method Summary

Modifier and TypeMethod 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)

Implements abstract com.sun.webkit.graphics.ScrollBarTheme.createWidget.

private static Node
findNode(ScrollBar scrollBar, String styleclass)

private static Node
private static Node
protected void
getScrollBarPartRect(long id, int part, int[] rect)

Implements abstract com.sun.webkit.graphics.ScrollBarTheme.getScrollBarPartRect.

pack-priv ScrollBar
private static Node
getTrack(ScrollBar scrollBar)

public WCSize
public void
paint(WCGraphicsContext g, Ref sbRef, int x, int y, int pressedPart, int hoveredPart)

Implements abstract com.sun.webkit.graphics.ScrollBarTheme.paint.

Inherited from com.sun.webkit.graphics.ScrollBarTheme:
getThicknesssetThickness

Field Detail

accessorback to summary
private final Accessor accessor
logback to summary
private static final PlatformLogger log
poolback to summary
private final RenderThemeImpl.Pool<ScrollBarWidget> pool
testSBRefback to summary
private WeakReference<ScrollBar> testSBRef

Constructor Detail

ScrollBarThemeImplback to summary
public ScrollBarThemeImpl(final Accessor accessor)

Method Detail

adjustScrollBarback to summary
private void adjustScrollBar(ScrollBar sb, int w, int h, int orientation)
adjustScrollBarback to summary
private void adjustScrollBar(ScrollBar sb, int w, int h, int orientation, int value, int visibleSize, int totalSize)
convertOrientationback to summary
private static Orientation convertOrientation(int orientation)
createWidgetback to summary
protected Ref createWidget(long id, int w, int h, int orientation, int value, int visibleSize, int totalSize)

Implements abstract com.sun.webkit.graphics.ScrollBarTheme.createWidget.

Annotations
@Override
findNodeback to summary
private static Node findNode(ScrollBar scrollBar, String styleclass)
getDecButtonback to summary
private static Node getDecButton(ScrollBar scrollBar)
getIncButtonback to summary
private static Node getIncButton(ScrollBar scrollBar)
getScrollBarPartRectback to summary
protected void getScrollBarPartRect(long id, int part, int[] rect)

Implements abstract com.sun.webkit.graphics.ScrollBarTheme.getScrollBarPartRect.

Annotations
@Override
getTestSBRefback to summary
pack-priv ScrollBar getTestSBRef()
getTrackback to summary
private static Node getTrack(ScrollBar scrollBar)
getWidgetSizeback to summary
public WCSize getWidgetSize(Ref widget)

Implements abstract com.sun.webkit.graphics.ScrollBarTheme.getWidgetSize.

Annotations
@Override
paintback to summary
public void paint(WCGraphicsContext g, Ref sbRef, int x, int y, int pressedPart, int hoveredPart)

Implements abstract com.sun.webkit.graphics.ScrollBarTheme.paint.

Annotations
@Override
com.sun.javafx.webkit.theme back to summary

private final Class ScrollBarThemeImpl.ScrollBarRef

extends Ref
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final WeakReference<ScrollBarWidget>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private Control
Inherited from com.sun.webkit.graphics.Ref:
derefgetIDhasRefsref

Field Detail

sbRefback to summary
private final WeakReference<ScrollBarWidget> sbRef

Constructor Detail

ScrollBarRefback to summary
private ScrollBarRef(ScrollBarWidget sb)

Method Detail

asControlback to summary
private Control asControl()