public class WebSliderUI extends javax.swing.plaf.basic.BasicSliderUI implements BorderMethods
javax.swing.plaf.basic.BasicSliderUI.ActionScroller, javax.swing.plaf.basic.BasicSliderUI.ChangeHandler, javax.swing.plaf.basic.BasicSliderUI.ComponentHandler, javax.swing.plaf.basic.BasicSliderUI.FocusHandler, javax.swing.plaf.basic.BasicSliderUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicSliderUI.ScrollListener, javax.swing.plaf.basic.BasicSliderUI.TrackListener| Modifier and Type | Field and Description |
|---|---|
protected boolean |
angledThumb |
protected boolean |
animated |
protected javax.swing.event.ChangeListener |
changeListener |
protected boolean |
drawProgress |
protected boolean |
drawThumb |
protected java.awt.Insets |
margin |
static int |
MAX_DARKNESS |
protected java.awt.event.MouseAdapter |
mouseAdapter |
protected java.awt.event.MouseWheelListener |
mouseWheelListener |
protected Painter |
painter |
protected int |
progressRound |
protected int |
progressShadeWidth |
protected java.beans.PropertyChangeListener |
propertyChangeListener
Slider listeners.
|
protected boolean |
rollover
Runtime variables.
|
protected boolean |
rolloverDarkBorderOnly |
protected int |
rolloverDarkness |
protected com.alee.utils.swing.WebTimer |
rolloverTimer |
protected boolean |
sharpThumbAngle |
protected int |
thumbAngleLength |
protected java.awt.Color |
thumbBgBottom |
protected java.awt.Color |
thumbBgTop |
protected int |
thumbHeight |
protected int |
thumbRound |
protected int |
thumbShadeWidth |
protected int |
thumbWidth |
protected java.awt.Color |
trackBgBottom |
protected java.awt.Color |
trackBgTop |
protected int |
trackHeight |
protected int |
trackRound |
protected int |
trackShadeWidth |
componentListener, contentRect, focusInsets, focusListener, focusRect, insetCache, labelRect, leftToRightCache, MAX_SCROLL, MIN_SCROLL, NEGATIVE_SCROLL, POSITIVE_SCROLL, scrollListener, scrollTimer, slider, thumbRect, tickRect, trackBuffer, trackListener, trackRect| Constructor and Description |
|---|
WebSliderUI(javax.swing.JSlider b) |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c) |
protected java.awt.Color |
getBorderColor() |
java.awt.Insets |
getMargin() |
Painter |
getPainter() |
protected float |
getProgress() |
int |
getProgressRound() |
int |
getProgressShadeWidth() |
protected java.awt.Shape |
getProgressShape() |
int |
getThumbAngleLength() |
java.awt.Color |
getThumbBgBottom() |
java.awt.Color |
getThumbBgTop() |
int |
getThumbHeight() |
int |
getThumbRound() |
int |
getThumbShadeWidth() |
protected java.awt.Shape |
getThumbShape() |
protected java.awt.Dimension |
getThumbSize() |
int |
getThumbWidth() |
java.awt.Color |
getTrackBgBottom() |
java.awt.Color |
getTrackBgTop() |
int |
getTrackHeight() |
int |
getTrackRound() |
int |
getTrackShadeWidth() |
protected java.awt.Shape |
getTrackShape() |
void |
installUI(javax.swing.JComponent c) |
boolean |
isAngledThumb() |
boolean |
isAnimated() |
boolean |
isDrawProgress() |
boolean |
isDrawThumb() |
boolean |
isRolloverDarkBorderOnly() |
boolean |
isSharpThumbAngle() |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
void |
paintFocus(java.awt.Graphics g) |
void |
paintThumb(java.awt.Graphics g) |
void |
paintTrack(java.awt.Graphics g) |
void |
setAngledThumb(boolean angledThumb) |
void |
setAnimated(boolean animated) |
void |
setDrawProgress(boolean drawProgress) |
void |
setDrawThumb(boolean drawThumb) |
void |
setMargin(java.awt.Insets margin) |
void |
setPainter(Painter painter) |
void |
setProgressRound(int progressRound) |
void |
setProgressShadeWidth(int progressShadeWidth) |
void |
setRolloverDarkBorderOnly(boolean rolloverDarkBorderOnly) |
void |
setSharpThumbAngle(boolean sharpThumbAngle) |
void |
setThumbAngleLength(int thumbAngleLength) |
void |
setThumbBgBottom(java.awt.Color thumbBgBottom) |
void |
setThumbBgTop(java.awt.Color thumbBgTop) |
void |
setThumbHeight(int thumbHeight) |
void |
setThumbRound(int thumbRound) |
void |
setThumbShadeWidth(int thumbShadeWidth) |
void |
setThumbWidth(int thumbWidth) |
void |
setTrackBgBottom(java.awt.Color trackBgBottom) |
void |
setTrackBgTop(java.awt.Color trackBgTop) |
void |
setTrackHeight(int trackHeight) |
void |
setTrackRound(int trackRound) |
void |
setTrackShadeWidth(int trackShadeWidth) |
void |
uninstallUI(javax.swing.JComponent c) |
void |
updateBorder()
Updates custom WebLaF border.
|
calculateContentRect, calculateFocusRect, calculateGeometry, calculateLabelRect, calculateThumbLocation, calculateThumbSize, calculateTickRect, calculateTrackBuffer, calculateTrackRect, createChangeListener, createComponentListener, createFocusListener, createPropertyChangeListener, createScrollListener, createTrackListener, drawInverted, getBaseline, getBaselineResizeBehavior, getFocusColor, getHeightOfHighValueLabel, getHeightOfLowValueLabel, getHeightOfTallestLabel, getHighestValue, getHighestValueLabel, getHighlightColor, getLowestValue, getLowestValueLabel, getMaximumSize, getMinimumHorizontalSize, getMinimumSize, getMinimumVerticalSize, getPreferredHorizontalSize, getPreferredSize, getPreferredVerticalSize, getShadowColor, getTickLength, getWidthOfHighValueLabel, getWidthOfLowValueLabel, getWidthOfWidestLabel, installDefaults, installKeyboardActions, installListeners, isDragging, labelsHaveSameBaselines, paintHorizontalLabel, paintLabels, paintMajorTickForHorizSlider, paintMajorTickForVertSlider, paintMinorTickForHorizSlider, paintMinorTickForVertSlider, paintTicks, paintVerticalLabel, recalculateIfInsetsChanged, recalculateIfOrientationChanged, scrollByBlock, scrollByUnit, scrollDueToClickInTrack, setThumbLocation, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, valueForXPosition, valueForYPosition, xPositionForValue, yPositionForValue, yPositionForValuepublic static final int MAX_DARKNESS
protected java.awt.Color trackBgTop
protected java.awt.Color trackBgBottom
protected int trackHeight
protected int trackRound
protected int trackShadeWidth
protected boolean drawProgress
protected int progressRound
protected int progressShadeWidth
protected boolean drawThumb
protected java.awt.Color thumbBgTop
protected java.awt.Color thumbBgBottom
protected int thumbWidth
protected int thumbHeight
protected int thumbRound
protected int thumbShadeWidth
protected boolean angledThumb
protected boolean sharpThumbAngle
protected int thumbAngleLength
protected boolean animated
protected boolean rolloverDarkBorderOnly
protected java.awt.Insets margin
protected Painter painter
protected java.beans.PropertyChangeListener propertyChangeListener
protected java.awt.event.MouseWheelListener mouseWheelListener
protected javax.swing.event.ChangeListener changeListener
protected java.awt.event.MouseAdapter mouseAdapter
protected boolean rollover
protected int rolloverDarkness
protected com.alee.utils.swing.WebTimer rolloverTimer
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicSliderUIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicSliderUIpublic void updateBorder()
BorderMethodsupdateBorder in interface BorderMethodspublic boolean isAnimated()
public void setAnimated(boolean animated)
public boolean isRolloverDarkBorderOnly()
public void setRolloverDarkBorderOnly(boolean rolloverDarkBorderOnly)
public java.awt.Color getTrackBgTop()
public void setTrackBgTop(java.awt.Color trackBgTop)
public java.awt.Color getTrackBgBottom()
public void setTrackBgBottom(java.awt.Color trackBgBottom)
public int getTrackHeight()
public void setTrackHeight(int trackHeight)
public int getTrackRound()
public void setTrackRound(int trackRound)
public int getTrackShadeWidth()
public void setTrackShadeWidth(int trackShadeWidth)
public boolean isDrawProgress()
public void setDrawProgress(boolean drawProgress)
public int getProgressRound()
public void setProgressRound(int progressRound)
public int getProgressShadeWidth()
public void setProgressShadeWidth(int progressShadeWidth)
public boolean isDrawThumb()
public void setDrawThumb(boolean drawThumb)
public java.awt.Color getThumbBgTop()
public void setThumbBgTop(java.awt.Color thumbBgTop)
public java.awt.Color getThumbBgBottom()
public void setThumbBgBottom(java.awt.Color thumbBgBottom)
public int getThumbWidth()
public void setThumbWidth(int thumbWidth)
public int getThumbHeight()
public void setThumbHeight(int thumbHeight)
public int getThumbRound()
public void setThumbRound(int thumbRound)
public int getThumbShadeWidth()
public void setThumbShadeWidth(int thumbShadeWidth)
public boolean isAngledThumb()
public void setAngledThumb(boolean angledThumb)
public boolean isSharpThumbAngle()
public void setSharpThumbAngle(boolean sharpThumbAngle)
public int getThumbAngleLength()
public void setThumbAngleLength(int thumbAngleLength)
public java.awt.Insets getMargin()
public void setMargin(java.awt.Insets margin)
public Painter getPainter()
public void setPainter(Painter painter)
protected java.awt.Dimension getThumbSize()
getThumbSize in class javax.swing.plaf.basic.BasicSliderUIpublic void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicSliderUIpublic void paintFocus(java.awt.Graphics g)
paintFocus in class javax.swing.plaf.basic.BasicSliderUIpublic void paintThumb(java.awt.Graphics g)
paintThumb in class javax.swing.plaf.basic.BasicSliderUIprotected java.awt.Color getBorderColor()
protected float getProgress()
protected java.awt.Shape getThumbShape()
public void paintTrack(java.awt.Graphics g)
paintTrack in class javax.swing.plaf.basic.BasicSliderUIprotected java.awt.Shape getTrackShape()
protected java.awt.Shape getProgressShape()