|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.painter.AbstractPainter<E> com.alee.managers.style.skin.web.WebScrollBarPainter<E> com.alee.managers.style.skin.ninepatch.NPScrollBarPainter<E>
public class NPScrollBarPainter<E extends javax.swing.JScrollBar>
Base 9-patch painter for JScrollBar component.
Field Summary | |
---|---|
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
|
Fields inherited from class com.alee.managers.style.skin.web.WebScrollBarPainter |
---|
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, trackBounds |
Fields inherited from class com.alee.extended.painter.AbstractPainter |
---|
listeners, margin, opaque, preferredSize |
Constructor Summary | |
---|---|
NPScrollBarPainter()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.alee.extended.painter.AbstractPainter |
---|
addPainterListener, getPreferredSize, p, removePainterListener, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, updateAll, updateOpacity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.alee.extended.painter.Painter |
---|
addPainterListener, getPreferredSize, removePainterListener |
Field Detail |
---|
protected 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
Constructor Detail |
---|
public NPScrollBarPainter()
Method Detail |
---|
public void install(E c)
install
in interface Painter<E extends javax.swing.JScrollBar>
install
in class WebScrollBarPainter<E extends javax.swing.JScrollBar>
c
- component to processpublic void uninstall(E c)
uninstall
in interface Painter<E extends javax.swing.JScrollBar>
uninstall
in class WebScrollBarPainter<E extends javax.swing.JScrollBar>
c
- component to processpublic 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 scrollbar
protected 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 scrollbar
protected 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |