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 class
Layout for the scrollable panel. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ComponentListener
private Command
private JCommandButton
private MouseWheelListener
private PropertyChangeListener
protected JScrollablePanel
The associated scrollable panel.private Command
private JCommandButton
private int
private JPanel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
void
boolean
private void
revealBottomEdge
(int y, int height) private void
revealLeftEdge
(int x) private void
revealRightEdge
(int x, int width) private void
revealTopEdge
(int y) void
scrollToIfNecessary
(int startPosition, int span) private void
private void
protected void
protected void
protected void
void
Methods inherited from class javax.swing.plaf.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:
installUI
in classComponentUI
-
installListeners
protected void installListeners() -
installComponents
protected void installComponents() -
syncScrollers
private void syncScrollers() -
installDefaults
protected void installDefaults() -
uninstallUI
- Overrides:
uninstallUI
in 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:
scrollToIfNecessary
in 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:
isShowingScrollButtons
in classScrollablePanelUI
-