|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.ScrollBarUI javax.swing.plaf.basic.BasicScrollBarUI com.alee.laf.scroll.WebScrollBarUI
public class WebScrollBarUI
Custom UI for JScrollBar component.
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 | |
---|---|
protected ScrollBarButtonPainter |
decreaseButtonPainter
|
protected ScrollBarButtonPainter |
increaseButtonPainter
|
protected java.awt.Insets |
margin
UI style settings. |
protected java.beans.PropertyChangeListener |
orientationChangeListener
Scroll bar listeners. |
protected boolean |
paintButtons
|
protected ScrollBarPainter |
painter
Component painters. |
protected boolean |
paintTrack
|
protected int |
scrollBarWidth
|
protected java.lang.String |
styleId
Runtime variables. |
Fields inherited from class javax.swing.plaf.basic.BasicScrollBarUI |
---|
buttonListener, decrButton, DECREASE_HIGHLIGHT, incrButton, INCREASE_HIGHLIGHT, isDragging, maximumThumbSize, minimumThumbSize, modelListener, NO_HIGHLIGHT, propertyChangeListener, scrollbar, scrollListener, scrollTimer, thumbColor, thumbDarkShadowColor, thumbHighlightColor, thumbLightShadowColor, thumbRect, trackColor, trackHighlight, trackHighlightColor, trackListener, trackRect |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
---|---|
WebScrollBarUI()
|
Method Summary | |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the WebScrollBarUI for the specified component. |
Painter |
getDecreaseButtonPainter()
Returns decrease button painter. |
Painter |
getIncreaseButtonPainter()
Returns increase button painter. |
java.awt.Insets |
getMargin()
Returns scroll bar content margin. |
Painter |
getPainter()
Returns scroll bar painter. |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
|
int |
getScrollBarWidth()
Returns scroll bar width. |
java.lang.String |
getStyleId()
Returns component style ID. |
protected void |
installComponents()
Installs additional scroll bar components. |
void |
installUI(javax.swing.JComponent c)
Installs UI in the specified component. |
boolean |
isPaintButtons()
Returns whether scroll bar arrow buttons should be displayed or not. |
boolean |
isPaintTrack()
Returns whether scroll bar track should be displayed or not. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Paints scroll bar decorations. |
void |
setDecreaseButtonPainter(Painter painter)
Sets decrease button painter. |
void |
setIncreaseButtonPainter(Painter painter)
Sets increase button painter. |
void |
setMargin(java.awt.Insets margin)
Sets scroll bar content margin. |
void |
setPaintButtons(boolean paintButtons)
Sets whether scroll bar arrow buttons should be displayed or not. |
void |
setPainter(Painter painter)
Sets scroll bar painter. |
void |
setPaintTrack(boolean paintTrack)
Sets whether scroll bar track should be displayed or not. |
void |
setScrollBarWidth(int scrollBarWidth)
Sets scroll bar width. |
void |
setStyleId(java.lang.String id)
Sets custom component style ID. |
void |
uninstallUI(javax.swing.JComponent c)
Uninstalls UI from the specified component. |
void |
updateBorder()
Updates custom WebLaF border. |
Methods inherited from class javax.swing.plaf.basic.BasicScrollBarUI |
---|
addLayoutComponent, configureScrollBarColors, createArrowButtonListener, createDecreaseButton, createIncreaseButton, createModelListener, createPropertyChangeListener, createScrollListener, createTrackListener, getMaximumSize, getMaximumThumbSize, getMinimumThumbSize, getSupportsAbsolutePositioning, getThumbBounds, getTrackBounds, installDefaults, installKeyboardActions, installListeners, isThumbRollover, layoutContainer, layoutHScrollbar, layoutVScrollbar, minimumLayoutSize, paintDecreaseHighlight, paintIncreaseHighlight, paintThumb, paintTrack, preferredLayoutSize, removeLayoutComponent, scrollByBlock, scrollByUnit, setThumbBounds, setThumbRollover, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.awt.Insets margin
protected int scrollBarWidth
protected boolean paintButtons
protected boolean paintTrack
protected ScrollBarPainter painter
protected ScrollBarButtonPainter decreaseButtonPainter
protected ScrollBarButtonPainter increaseButtonPainter
protected java.beans.PropertyChangeListener orientationChangeListener
protected java.lang.String styleId
Constructor Detail |
---|
public WebScrollBarUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- component that will use UI instance
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.basic.BasicScrollBarUI
c
- component for this UIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.basic.BasicScrollBarUI
c
- component with this UIpublic java.lang.String getStyleId()
getStyleId
in interface Styleable
public void setStyleId(java.lang.String id)
setStyleId
in interface Styleable
id
- custom component style IDpublic void updateBorder()
updateBorder
in interface BorderMethods
public boolean isPaintButtons()
public void setPaintButtons(boolean paintButtons)
paintButtons
- whether scroll bar arrow buttons should be displayed or notpublic boolean isPaintTrack()
public void setPaintTrack(boolean paintTrack)
paintTrack
- whether scroll bar track should be displayed or notpublic java.awt.Insets getMargin()
public void setMargin(java.awt.Insets margin)
margin
- new scroll bar content marginpublic int getScrollBarWidth()
public void setScrollBarWidth(int scrollBarWidth)
scrollBarWidth
- new scroll bar widthpublic Painter getPainter()
public void setPainter(Painter painter)
painter
- new scroll bar painterpublic Painter getDecreaseButtonPainter()
public void setDecreaseButtonPainter(Painter painter)
painter
- new decrease button painterpublic Painter getIncreaseButtonPainter()
public void setIncreaseButtonPainter(Painter painter)
painter
- new increase button painterpublic void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.basic.BasicScrollBarUI
g
- graphics contextc
- scroll bar componentprotected void installComponents()
installComponents
in class javax.swing.plaf.basic.BasicScrollBarUI
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.basic.BasicScrollBarUI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |