| |
|
| javax.swing.plaf.basic.BasicScrollBarUI org.jvnet.substance.SubstanceScrollBarUI
SubstanceScrollBarUI | public class SubstanceScrollBarUI extends BasicScrollBarUI implements Trackable(Code) | | UI for scroll bars in Substance look and feel.
author: Kirill Grouchnikov |
Inner Class :protected class SubstanceTrackListener extends TrackListener | |
Inner Class :protected class SubstanceArrowButtonListener extends ArrowButtonListener | |
Method Summary | |
protected ArrowButtonListener | createArrowButtonListener() | protected JButton | createDecreaseButton(int orientation) | protected JButton | createGeneralDecreaseButton(int orientation, boolean isRegular) Creates a decrease button.
Parameters: orientation - Button orientation. Parameters: isRegular - if true , the regular (upper / left) decreasebutton is created, if false , the additional(lower / right) decrease button is created forSubstanceConstants.ScrollPaneButtonPolicyKind.ADJACENT,SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLEandSubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE_BOTHkinds. | protected JButton | createGeneralIncreaseButton(int orientation, boolean isRegular) Creates a increase button.
Parameters: orientation - Button orientation. Parameters: isRegular - if true , the regular (lower / right) increasebutton is created, if false , the additional(upper / left) increase button is created forSubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE_BOTHkind. | protected JButton | createIncreaseButton(int orientation) | protected TrackListener | createTrackListener() | public static ComponentUI | createUI(JComponent b) | public static String | getMemoryUsage() Returns the memory usage string. | public Dimension | getPreferredSize(JComponent c) | protected ComponentState | getState(JButton scrollButton) Returns the scroll button state.
Parameters: scrollButton - Scroll button. | protected void | installComponents() | protected void | installDefaults() | protected void | installListeners() | public boolean | isInside(MouseEvent me) | protected void | layoutHScrollbar(JScrollBar sb) | protected void | layoutHScrollbarAdjacent(JScrollBar sb) Lays out the horizontal scroll bar when the button policy is
SubstanceConstants.ScrollPaneButtonPolicyKind.ADJACENT . | protected void | layoutHScrollbarMultiple(JScrollBar sb) Lays out the horizontal scroll bar when the button policy is
SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE . | protected void | layoutHScrollbarMultipleBoth(JScrollBar sb) Lays out the horizontal scroll bar when the button policy is
SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE . | protected void | layoutHScrollbarNone(JScrollBar sb) Lays out the horizontal scroll bar when the button policy is
SubstanceConstants.ScrollPaneButtonPolicyKind.NONE . | protected void | layoutVScrollbar(JScrollBar sb) | protected void | layoutVScrollbarAdjacent(JScrollBar sb) Lays out the vertical scroll bar when the button policy is
SubstanceConstants.ScrollPaneButtonPolicyKind.ADJACENT . | protected void | layoutVScrollbarMultiple(JScrollBar sb) Lays out the vertical scroll bar when the button policy is
SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE . | protected void | layoutVScrollbarMultipleBoth(JScrollBar sb) Lays out the vertical scroll bar when the button policy is
SubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE_BOTH . | protected void | layoutVScrollbarNone(JScrollBar sb) Lays out the vertical scroll bar when the button policy is
SubstanceConstants.ScrollPaneButtonPolicyKind.ADJACENT . | public void | paint(Graphics g, JComponent c) | protected void | paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) | protected void | paintTrack(Graphics g, JComponent c, Rectangle trackBounds) | public static synchronized void | reset() Resets image maps (used when setting new theme). | public void | scrollByBlock(int direction) | public void | scrollByUnits(int direction, int units) Scrolls the associated scroll bar. | protected void | uninstallComponents() | protected void | uninstallListeners() |
compositeButtonsModel | protected CompositeButtonModel compositeButtonsModel(Code) | | Surrogate model to sync between rollover effects of scroll buttons and
scroll track / scroll thumb.
since: version 3.2 |
compositeScrollTrackModel | protected CompositeButtonModel compositeScrollTrackModel(Code) | | Surrogate model to sync between rollover effects of scroll buttons and
scroll track / scroll thumb.
since: version 3.2 |
scrollBarWidth | protected int scrollBarWidth(Code) | | Scroll bar width.
|
substanceDebugUiListener | protected MouseListener substanceDebugUiListener(Code) | | Listener for debui UI mode.
|
substanceFadeStateListener | protected FadeStateListener substanceFadeStateListener(Code) | | Listener for fade animations.
|
SubstanceScrollBarUI | protected SubstanceScrollBarUI(JComponent b)(Code) | | Simple constructor.
Parameters: b - Associated component. |
createArrowButtonListener | protected ArrowButtonListener createArrowButtonListener()(Code) | | |
createDecreaseButton | protected JButton createDecreaseButton(int orientation)(Code) | | |
createGeneralIncreaseButton | protected JButton createGeneralIncreaseButton(int orientation, boolean isRegular)(Code) | | Creates a increase button.
Parameters: orientation - Button orientation. Parameters: isRegular - if true , the regular (lower / right) increasebutton is created, if false , the additional(upper / left) increase button is created forSubstanceConstants.ScrollPaneButtonPolicyKind.MULTIPLE_BOTHkind. Increase button. |
createIncreaseButton | protected JButton createIncreaseButton(int orientation)(Code) | | |
createTrackListener | protected TrackListener createTrackListener()(Code) | | |
getMemoryUsage | public static String getMemoryUsage()(Code) | | Returns the memory usage string.
The memory usage string. |
getState | protected ComponentState getState(JButton scrollButton)(Code) | | Returns the scroll button state.
Parameters: scrollButton - Scroll button. Scroll button state. |
installComponents | protected void installComponents()(Code) | | |
installDefaults | protected void installDefaults()(Code) | | |
installListeners | protected void installListeners()(Code) | | |
scrollByBlock | public void scrollByBlock(int direction)(Code) | | |
scrollByUnits | public void scrollByUnits(int direction, int units)(Code) | | Scrolls the associated scroll bar.
Parameters: direction - Direction. Parameters: units - Scroll units. |
uninstallComponents | protected void uninstallComponents()(Code) | | |
uninstallListeners | protected void uninstallListeners()(Code) | | |
|
|
|