Class BasicScrollablePanelUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.PanelUI
org.pushingpixels.radiance.component.internal.ui.common.ScrollablePanelUI
org.pushingpixels.radiance.component.internal.ui.common.BasicScrollablePanelUI
- Direct Known Subclasses:
RadianceScrollablePanelUI
Basic UI for scrollable panel
JScrollablePanel.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classLayout for the scrollable panel. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ComponentListenerprivate Commandprivate JCommandButtonprivate MouseWheelListenerprivate PropertyChangeListenerprotected JScrollablePanelThe associated scrollable panel.private Commandprivate JCommandButtonprivate intprivate JPanel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidvoidbooleanprivate voidrevealBottomEdge(int y, int height) private voidrevealLeftEdge(int x) private voidrevealRightEdge(int x, int width) private voidrevealTopEdge(int y) voidscrollToIfNecessary(int startPosition, int span) private voidprivate voidprotected voidprotected voidprotected voidvoidMethods inherited from class ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
-
Field Details
-
scrollablePanel
The associated scrollable panel. -
viewport
-
leadingScrollCommand
-
trailingScrollCommand
-
leadingScroller
-
trailingScroller
-
viewOffset
private int viewOffset -
mouseWheelListener
-
propertyChangeListener
-
componentListener
-
-
Constructor Details
-
BasicScrollablePanelUI
public BasicScrollablePanelUI()
-
-
Method Details
-
installUI
- Overrides:
installUIin classComponentUI
-
installListeners
protected void installListeners() -
installComponents
protected void installComponents() -
syncScrollers
private void syncScrollers() -
installDefaults
protected void installDefaults() -
uninstallUI
- Overrides:
uninstallUIin classComponentUI
-
uninstallDefaults
protected void uninstallDefaults() -
uninstallComponents
protected void uninstallComponents() -
uninstallListeners
protected void uninstallListeners() -
syncScrolling
private void syncScrolling() -
scrollToIfNecessary
public void scrollToIfNecessary(int startPosition, int span) - Specified by:
scrollToIfNecessaryin classScrollablePanelUI
-
revealLeftEdge
private void revealLeftEdge(int x) -
revealRightEdge
private void revealRightEdge(int x, int width) -
revealTopEdge
private void revealTopEdge(int y) -
revealBottomEdge
private void revealBottomEdge(int y, int height) -
isShowingScrollButtons
public boolean isShowingScrollButtons()- Specified by:
isShowingScrollButtonsin classScrollablePanelUI
-