|
||||||||||
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.WebScrollBarButtonPainter<E>
public class WebScrollBarButtonPainter<E extends javax.swing.AbstractButton>
Base painter for JScrollBar arrow buttons.
Field Summary | |
---|---|
protected static java.lang.String |
ARROW_BUTTON_SHAPE
Shape cache key. |
protected java.awt.Color |
backgroundColor
|
protected java.awt.Color |
borderColor
Style settings. |
protected ScrollBarButtonType |
buttonType
Runtime variables. |
protected java.awt.Color |
disabledBackgroundColor
|
protected java.awt.Color |
disabledBorderColor
|
protected java.awt.Color |
pressedBackgroundColor
|
protected java.awt.Color |
pressedBorderColor
|
protected java.awt.Color |
rolloverBackgroundColor
|
protected java.awt.Color |
rolloverBorderColor
|
protected javax.swing.JScrollBar |
scrollbar
|
Fields inherited from class com.alee.extended.painter.AbstractPainter |
---|
listeners, margin, opaque, preferredSize |
Constructor Summary | |
---|---|
WebScrollBarButtonPainter()
Constructs new scroll bar button painter. |
Method Summary | |
---|---|
protected java.awt.Shape |
createArrowButtonShape(java.awt.Rectangle bounds,
E button)
Returns arrow button shape. |
protected java.awt.Shape |
getArrowButtonShape(java.awt.Rectangle bounds,
E button)
Returns popup border shape. |
java.awt.Color |
getBackgroundColor()
Returns button background color. |
java.awt.Color |
getBorderColor()
Returns button border color. |
protected java.lang.Object[] |
getCachedShapeSettings(E button)
Returns an array of shape settings cached along with the shape. |
java.awt.Color |
getDisabledBackgroundColor()
Returns disabled button background color. |
java.awt.Color |
getDisabledBorderColor()
Returns disabled button border color. |
java.awt.Insets |
getMargin(E button)
Returns margin required for visual data provided by this painter. |
java.awt.Color |
getPressedBackgroundColor()
Returns pressed button background color. |
java.awt.Color |
getPressedBorderColor()
Returns pressed button border color. |
java.awt.Color |
getRolloverBackgroundColor()
Returns rollover button background color. |
java.awt.Color |
getRolloverBorderColor()
Returns rollover button border color. |
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E button)
Paints visual data onto the component graphics. |
void |
setBackgroundColor(java.awt.Color color)
Sets button background color. |
void |
setBorderColor(java.awt.Color color)
Sets button border color. |
void |
setButtonType(ScrollBarButtonType type)
Sets scroll bar button type. |
void |
setDisabledBackgroundColor(java.awt.Color color)
Sets disabled button background color. |
void |
setDisabledBorderColor(java.awt.Color color)
Sets disabled button border color. |
void |
setPressedBackgroundColor(java.awt.Color color)
Sets pressed button background color. |
void |
setPressedBorderColor(java.awt.Color color)
Sets pressed button border color. |
void |
setRolloverBackgroundColor(java.awt.Color color)
Sets rollover button background color. |
void |
setRolloverBorderColor(java.awt.Color color)
Sets rollover button border color. |
void |
setScrollbar(javax.swing.JScrollBar scrollbar)
Sets scroll bar which uses this button. |
Methods inherited from class com.alee.extended.painter.AbstractPainter |
---|
addPainterListener, getPreferredSize, install, isOpaque, p, removePainterListener, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, uninstall, 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, install, isOpaque, removePainterListener, uninstall |
Field Detail |
---|
protected static final java.lang.String ARROW_BUTTON_SHAPE
protected java.awt.Color borderColor
protected java.awt.Color backgroundColor
protected java.awt.Color disabledBorderColor
protected java.awt.Color disabledBackgroundColor
protected java.awt.Color rolloverBorderColor
protected java.awt.Color rolloverBackgroundColor
protected java.awt.Color pressedBorderColor
protected java.awt.Color pressedBackgroundColor
protected ScrollBarButtonType buttonType
protected javax.swing.JScrollBar scrollbar
Constructor Detail |
---|
public WebScrollBarButtonPainter()
Method Detail |
---|
public java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color color)
color
- new button border colorpublic java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color color)
color
- new button background colorpublic java.awt.Color getDisabledBorderColor()
public void setDisabledBorderColor(java.awt.Color color)
color
- new disabled button border colorpublic java.awt.Color getDisabledBackgroundColor()
public void setDisabledBackgroundColor(java.awt.Color color)
color
- new disabled button background colorpublic java.awt.Color getRolloverBorderColor()
public void setRolloverBorderColor(java.awt.Color color)
color
- new rollover button border colorpublic java.awt.Color getRolloverBackgroundColor()
public void setRolloverBackgroundColor(java.awt.Color color)
color
- new rollover button background colorpublic java.awt.Color getPressedBorderColor()
public void setPressedBorderColor(java.awt.Color color)
color
- new pressed button border colorpublic java.awt.Color getPressedBackgroundColor()
public void setPressedBackgroundColor(java.awt.Color color)
color
- new pressed button background colorpublic void setButtonType(ScrollBarButtonType type)
setButtonType
in interface ScrollBarButtonPainter<E extends javax.swing.AbstractButton>
type
- scroll bar button typepublic void setScrollbar(javax.swing.JScrollBar scrollbar)
setScrollbar
in interface ScrollBarButtonPainter<E extends javax.swing.AbstractButton>
scrollbar
- scroll bar which uses this buttonpublic java.awt.Insets getMargin(E button)
getMargin
in interface Painter<E extends javax.swing.AbstractButton>
getMargin
in class AbstractPainter<E extends javax.swing.AbstractButton>
button
- component to process
public void paint(java.awt.Graphics2D g2d, java.awt.Rectangle bounds, E button)
paint
in interface Painter<E extends javax.swing.AbstractButton>
g2d
- component graphicsbounds
- bounds for painter visual databutton
- component to processprotected java.awt.Shape getArrowButtonShape(java.awt.Rectangle bounds, E button)
bounds
- button boundsbutton
- button component
protected java.lang.Object[] getCachedShapeSettings(E button)
button
- button component
protected java.awt.Shape createArrowButtonShape(java.awt.Rectangle bounds, E button)
bounds
- button boundsbutton
- button component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |