public class NPScrollBarPainter<E extends javax.swing.JScrollBar> extends WebScrollBarPainter<E>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
focused |
protected FocusTracker |
focusTracker
Runtime variables.
|
protected NinePatchIcon |
hBackgroundIcon
Used 9-patch icons.
|
protected NinePatchIcon |
hFocusedBackgroundIcon |
protected NinePatchIcon |
hFocusedThumbIcon |
protected NinePatchIcon |
hFocusedTrackIcon |
protected NinePatchIcon |
hPressedThumbIcon |
protected NinePatchIcon |
hThumbIcon |
protected NinePatchIcon |
hTrackIcon |
protected NinePatchIcon |
vBackgroundIcon |
protected NinePatchIcon |
vFocusedBackgroundIcon |
protected NinePatchIcon |
vFocusedThumbIcon |
protected NinePatchIcon |
vFocusedTrackIcon |
protected NinePatchIcon |
vPressedThumbIcon |
protected NinePatchIcon |
vThumbIcon |
protected NinePatchIcon |
vTrackIcon |
animated, dragged, mouseAdapter, paintButtons, paintTrack, pressed, rollover, rolloverAnimator, rolloverState, thumbBackgroundColor, thumbBorderColor, thumbBounds, thumbDisabledBackgroundColor, thumbDisabledBorderColor, thumbMargin, thumbMarginHL, thumbMarginHR, thumbMarginR, thumbPressedBackgroundColor, thumbPressedBorderColor, thumbRolloverBackgroundColor, thumbRolloverBorderColor, thumbRound, trackBackgroundColor, trackBorderColor, trackBoundslisteners, margin, opaque, preferredSize| Constructor and Description |
|---|
NPScrollBarPainter() |
| Modifier and Type | Method and Description |
|---|---|
protected NinePatchIcon |
getCurrentBackgroundIcon(E scrollbar)
Returns background 9-patch icon that should be painted right now.
|
protected NinePatchIcon |
getCurrentThumbIcon(E scrollbar)
Returns thumb 9-patch icon that should be painted right now.
|
protected NinePatchIcon |
getCurrentTrackIcon(E scrollbar)
Returns track 9-patch icon that should be painted right now.
|
NinePatchIcon |
getHBackgroundIcon()
Returns horizontal scroll bar background icon.
|
NinePatchIcon |
getHFocusedBackgroundIcon()
Returns horizontal scroll bar focused background icon.
|
NinePatchIcon |
getHFocusedThumbIcon()
Returns horizontal scroll bar focused thumb icon.
|
NinePatchIcon |
getHFocusedTrackIcon()
Returns horizontal scroll bar focused track background icon.
|
NinePatchIcon |
getHPressedThumbIcon()
Returns horizontal scroll bar pressed thumb icon.
|
NinePatchIcon |
getHThumbIcon()
Returns horizontal scroll bar thumb icon.
|
NinePatchIcon |
getHTrackIcon()
Returns horizontal scroll bar track background icon.
|
NinePatchIcon |
getVBackgroundIcon()
Returns vertical scroll bar background icon.
|
NinePatchIcon |
getVFocusedBackgroundIcon()
Returns vertical scroll bar focused background icon.
|
NinePatchIcon |
getVFocusedThumbIcon()
Returns vertical scroll bar focused thumb icon.
|
NinePatchIcon |
getVFocusedTrackIcon()
Returns vertical scroll bar focused track background icon.
|
NinePatchIcon |
getVPressedThumbIcon()
Returns vertical scroll bar pressed thumb icon.
|
NinePatchIcon |
getVThumbIcon()
Returns vertical scroll bar thumb icon.
|
NinePatchIcon |
getVTrackIcon()
Returns vertical scroll bar track background icon.
|
void |
install(E c)
Called when painter is intalled into some component.
|
protected void |
paintBackground(java.awt.Graphics2D g2d,
E scrollbar,
java.awt.Rectangle b)
Paints scroll bar background.
|
protected void |
paintThumb(java.awt.Graphics2D g2d,
E scrollbar,
java.awt.Rectangle b)
Paints scroll bar thumb.
|
protected void |
paintTrack(java.awt.Graphics2D g2d,
E scrollbar,
java.awt.Rectangle b)
Paints scroll bar track.
|
void |
setHBackgroundIcon(NinePatchIcon icon)
Sets horizontal scroll bar background icon.
|
void |
setHFocusedBackgroundIcon(NinePatchIcon icon)
Sets horizontal scroll bar focused background icon.
|
void |
setHFocusedThumbIcon(NinePatchIcon icon)
Sets horizontal scroll bar focused thumb icon.
|
void |
setHFocusedTrackIcon(NinePatchIcon icon)
Sets horizontal scroll bar focused track background icon.
|
void |
setHPressedThumbIcon(NinePatchIcon icon)
Sets horizontal scroll bar pressed thumb icon.
|
void |
setHThumbIcon(NinePatchIcon icon)
Sets horizontal scroll bar thumb icon.
|
void |
setHTrackIcon(NinePatchIcon icon)
Sets horizontal scroll bar track background icon.
|
void |
setVBackgroundIcon(NinePatchIcon icon)
Sets vertical scroll bar background icon.
|
void |
setVFocusedBackgroundIcon(NinePatchIcon icon)
Sets vertical scroll bar focused background icon.
|
void |
setVFocusedThumbIcon(NinePatchIcon icon)
Sets vertical scroll bar focused thumb icon.
|
void |
setVFocusedTrackIcon(NinePatchIcon icon)
Sets vertical scroll bar focused track background icon.
|
void |
setVPressedThumbIcon(NinePatchIcon icon)
Sets vertical scroll bar pressed thumb icon.
|
void |
setVThumbIcon(NinePatchIcon icon)
Sets vertical scroll bar thumb icon.
|
void |
setVTrackIcon(NinePatchIcon icon)
Sets vertical scroll bar track background icon.
|
void |
uninstall(E c)
Called when painter is intalled into some component.
|
getCurrentThumbBackgroundColor, getCurrentThumbBorderColor, getCurrentThumbMargin, getMargin, getThumbBackgroundColor, getThumbBorderColor, getThumbDisabledBackgroundColor, getThumbDisabledBorderColor, getThumbMargin, getThumbPressedBackgroundColor, getThumbPressedBorderColor, getThumbRolloverBackgroundColor, getThumbRolloverBorderColor, getThumbRound, getTrackBackgroundColor, getTrackBorderColor, isOpaque, isPaintButtons, isPaintTrack, isPressed, isRollover, paint, repaintThumb, setDragged, setPaintButtons, setPaintTrack, setPressed, setRollover, setThumbBackgroundColor, setThumbBorderColor, setThumbBounds, setThumbDisabledBackgroundColor, setThumbDisabledBorderColor, setThumbMargin, setThumbPressedBackgroundColor, setThumbPressedBorderColor, setThumbRolloverBackgroundColor, setThumbRolloverBorderColor, setThumbRound, setTrackBackgroundColor, setTrackBorderColor, setTrackBounds, updateThumbMarginsaddPainterListener, getPreferredSize, p, removePainterListener, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, updateAll, updateOpacityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPainterListener, getPreferredSize, removePainterListenerprotected NinePatchIcon hBackgroundIcon
protected NinePatchIcon hFocusedBackgroundIcon
protected NinePatchIcon hTrackIcon
protected NinePatchIcon hFocusedTrackIcon
protected NinePatchIcon hThumbIcon
protected NinePatchIcon hFocusedThumbIcon
protected NinePatchIcon hPressedThumbIcon
protected NinePatchIcon vBackgroundIcon
protected NinePatchIcon vFocusedBackgroundIcon
protected NinePatchIcon vTrackIcon
protected NinePatchIcon vFocusedTrackIcon
protected NinePatchIcon vThumbIcon
protected NinePatchIcon vFocusedThumbIcon
protected NinePatchIcon vPressedThumbIcon
protected FocusTracker focusTracker
protected boolean focused
public void install(E c)
public void uninstall(E c)
public NinePatchIcon getHBackgroundIcon()
public void setHBackgroundIcon(NinePatchIcon icon)
icon - horizontal scroll bar background iconpublic NinePatchIcon getHFocusedBackgroundIcon()
null hBackgroundIcon is painted instead.public void setHFocusedBackgroundIcon(NinePatchIcon icon)
null hBackgroundIcon is painted instead.icon - horizontal scroll bar focused background iconpublic NinePatchIcon getHTrackIcon()
public void setHTrackIcon(NinePatchIcon icon)
icon - horizontal scroll bar track background iconpublic NinePatchIcon getHFocusedTrackIcon()
null hTrackIcon is painted instead.public void setHFocusedTrackIcon(NinePatchIcon icon)
null hTrackIcon is painted instead.icon - horizontal scroll bar focused track background iconpublic NinePatchIcon getHThumbIcon()
public void setHThumbIcon(NinePatchIcon icon)
icon - horizontal scroll bar thumb iconpublic NinePatchIcon getHFocusedThumbIcon()
null hThumbIcon is painted instead.public void setHFocusedThumbIcon(NinePatchIcon icon)
null hThumbIcon is painted instead.icon - horizontal scroll bar focused thumb iconpublic NinePatchIcon getHPressedThumbIcon()
null hFocusedThumbIcon or hThumbIcon are painted instead.public void setHPressedThumbIcon(NinePatchIcon icon)
null hFocusedThumbIcon or hThumbIcon are painted instead.icon - horizontal scroll bar pressed thumb iconpublic NinePatchIcon getVBackgroundIcon()
public void setVBackgroundIcon(NinePatchIcon icon)
icon - vertical scroll bar background iconpublic NinePatchIcon getVFocusedBackgroundIcon()
null vBackgroundIcon is painted instead.public void setVFocusedBackgroundIcon(NinePatchIcon icon)
null vBackgroundIcon is painted instead.icon - vertical scroll bar focused background iconpublic NinePatchIcon getVTrackIcon()
public void setVTrackIcon(NinePatchIcon icon)
icon - vertical scroll bar track background iconpublic NinePatchIcon getVFocusedTrackIcon()
null vTrackIcon is painted instead.public void setVFocusedTrackIcon(NinePatchIcon icon)
null vTrackIcon is painted instead.icon - vertical scroll bar focused track background iconpublic NinePatchIcon getVThumbIcon()
public void setVThumbIcon(NinePatchIcon icon)
icon - vertical scroll bar thumb iconpublic NinePatchIcon getVFocusedThumbIcon()
null vThumbIcon is painted instead.public void setVFocusedThumbIcon(NinePatchIcon icon)
null vThumbIcon is painted instead.icon - vertical scroll bar focused thumb iconpublic NinePatchIcon getVPressedThumbIcon()
null vFocusedThumbIcon or vThumbIcon are painted instead.public void setVPressedThumbIcon(NinePatchIcon icon)
null vFocusedThumbIcon or vThumbIcon are painted instead.icon - vertical scroll bar pressed thumb iconprotected void paintBackground(java.awt.Graphics2D g2d,
E scrollbar,
java.awt.Rectangle b)
paintBackground in class WebScrollBarPainter<E extends javax.swing.JScrollBar>g2d - graphics contextscrollbar - scroll barb - scroll bar boundsprotected NinePatchIcon getCurrentBackgroundIcon(E scrollbar)
scrollbar - painted scrollbarprotected void paintTrack(java.awt.Graphics2D g2d,
E scrollbar,
java.awt.Rectangle b)
paintTrack in class WebScrollBarPainter<E extends javax.swing.JScrollBar>g2d - graphics contextscrollbar - scroll barb - track boundsprotected NinePatchIcon getCurrentTrackIcon(E scrollbar)
scrollbar - painted scrollbarprotected void paintThumb(java.awt.Graphics2D g2d,
E scrollbar,
java.awt.Rectangle b)
paintThumb in class WebScrollBarPainter<E extends javax.swing.JScrollBar>g2d - graphics contextscrollbar - scroll bar componentb - thumb boundsprotected NinePatchIcon getCurrentThumbIcon(E scrollbar)
scrollbar - painted scrollbar