Package com.moneydance.awt
Class TIKScrollBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI
com.moneydance.awt.TIKScrollBarUI
- All Implemented Interfaces:
java.awt.LayoutManager
,javax.swing.SwingConstants
public class TIKScrollBarUI
extends javax.swing.plaf.basic.BasicScrollBarUI
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicScrollBarUI
javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener, javax.swing.plaf.basic.BasicScrollBarUI.ModelListener, javax.swing.plaf.basic.BasicScrollBarUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicScrollBarUI.ScrollListener, javax.swing.plaf.basic.BasicScrollBarUI.TrackListener
-
Field Summary
Fields inherited from class javax.swing.plaf.basic.BasicScrollBarUI
buttonListener, decrButton, DECREASE_HIGHLIGHT, decrGap, incrButton, INCREASE_HIGHLIGHT, incrGap, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollBarWidth, scrollListener, scrollTimer, thumbColor, thumbDarkShadowColor, thumbHighlightColor, thumbLightShadowColor, thumbRect, trackHighlight, trackHighlightColor, trackListener, trackRect
-
Constructor Summary
Constructors Constructor Description TIKScrollBarUI(javax.swing.JComponent mainViewport)
-
Method Summary
Modifier and Type Method Description static void
addMouseListenerToSubviews(java.awt.Container container, java.awt.event.MouseListener ml)
protected javax.swing.JButton
createDecreaseButton(int orientation)
protected javax.swing.JButton
createIncreaseButton(int orientation)
static javax.swing.plaf.ComponentUI
createUI(javax.swing.JComponent c)
protected java.awt.Dimension
getMinimumThumbSize()
java.awt.Dimension
getPreferredSize(javax.swing.JComponent c)
java.awt.Color
getTrackColor()
protected void
paintThumb(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle bounds)
protected void
paintTrack(java.awt.Graphics graphics, javax.swing.JComponent c, java.awt.Rectangle trackBounds)
void
setTrackColor(java.awt.Color trackColor)
static void
setupMouseListenerToAutoHideScrollBar(javax.swing.JComponent containerView, javax.swing.JScrollPane scrollPane, TIKScrollBarUI scrollBarUI)
void
setVisible(boolean newVisibility)
Methods inherited from class javax.swing.plaf.basic.BasicScrollBarUI
addLayoutComponent, configureScrollBarColors, createArrowButtonListener, createModelListener, createPropertyChangeListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paint, paintDecreaseHighlight, paintIncreaseHighlight, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbBounds, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
-
Constructor Details
-
TIKScrollBarUI
public TIKScrollBarUI(javax.swing.JComponent mainViewport)
-
-
Method Details
-
getMinimumThumbSize
protected java.awt.Dimension getMinimumThumbSize()- Overrides:
getMinimumThumbSize
in classjavax.swing.plaf.basic.BasicScrollBarUI
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c) -
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)- Overrides:
getPreferredSize
in classjavax.swing.plaf.basic.BasicScrollBarUI
-
setVisible
public void setVisible(boolean newVisibility) -
createDecreaseButton
protected javax.swing.JButton createDecreaseButton(int orientation)- Overrides:
createDecreaseButton
in classjavax.swing.plaf.basic.BasicScrollBarUI
-
createIncreaseButton
protected javax.swing.JButton createIncreaseButton(int orientation)- Overrides:
createIncreaseButton
in classjavax.swing.plaf.basic.BasicScrollBarUI
-
paintTrack
protected void paintTrack(java.awt.Graphics graphics, javax.swing.JComponent c, java.awt.Rectangle trackBounds)- Overrides:
paintTrack
in classjavax.swing.plaf.basic.BasicScrollBarUI
-
paintThumb
protected void paintThumb(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle bounds)- Overrides:
paintThumb
in classjavax.swing.plaf.basic.BasicScrollBarUI
-
getTrackColor
public java.awt.Color getTrackColor() -
setTrackColor
public void setTrackColor(java.awt.Color trackColor) -
setupMouseListenerToAutoHideScrollBar
public static void setupMouseListenerToAutoHideScrollBar(javax.swing.JComponent containerView, javax.swing.JScrollPane scrollPane, TIKScrollBarUI scrollBarUI) -
addMouseListenerToSubviews
public static void addMouseListenerToSubviews(java.awt.Container container, java.awt.event.MouseListener ml)
-