|
||||||||||
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.WebLabelPainter<E> com.alee.managers.style.skin.web.WebComboBoxElementPainter<E>
public class WebComboBoxElementPainter<E extends WebComboBoxElement>
Custom painter for ComboBox elements.
AbstractPainter
,
Painter
Field Summary | |
---|---|
protected java.awt.Color |
bottomSelectedBackgroundColor
|
protected java.awt.Color |
topSelectedBackgroundColor
Style settings. |
Fields inherited from class com.alee.managers.style.skin.web.WebLabelPainter |
---|
backgroundPainter, drawShade, paintIconR, paintTextR, shadeColor, transparency |
Fields inherited from class com.alee.extended.painter.AbstractPainter |
---|
listeners, margin, opaque, preferredSize |
Constructor Summary | |
---|---|
WebComboBoxElementPainter()
Constructs new combobox element painter. |
Method Summary | |
---|---|
java.awt.Color |
getBottomSelectedBackgroundColor()
|
java.awt.Color |
getTopSelectedBackgroundColor()
Returns top selected background color. |
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E element)
Paints visual data onto the component graphics. |
protected void |
paintBoxBackground(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E element)
Paints combobox box element background. |
protected void |
paintDeselectedBackground(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E element)
Paints deselected combobox popup list element background. |
protected void |
paintSelectedBackground(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E element)
Paints selected combobox popup list element background. |
void |
setBottomSelectedBackgroundColor(java.awt.Color color)
|
void |
setTopSelectedBackgroundColor(java.awt.Color color)
Sets top selected background color. |
Methods inherited from class com.alee.managers.style.skin.web.WebLabelPainter |
---|
getBackgroundPainter, getMargin, getPreferredSize, getShadeColor, getTransparency, isDrawShade, isOpaque, layout, layoutCL, paintDisabledText, paintEnabledText, paintShadowText, setBackgroundPainter, setDrawShade, setShadeColor, setTransparency |
Methods inherited from class com.alee.extended.painter.AbstractPainter |
---|
addPainterListener, install, 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, install, removePainterListener, uninstall |
Field Detail |
---|
protected java.awt.Color topSelectedBackgroundColor
protected java.awt.Color bottomSelectedBackgroundColor
Constructor Detail |
---|
public WebComboBoxElementPainter()
Method Detail |
---|
public java.awt.Color getTopSelectedBackgroundColor()
public void setTopSelectedBackgroundColor(java.awt.Color color)
color
- top selected background colorpublic java.awt.Color getBottomSelectedBackgroundColor()
public void setBottomSelectedBackgroundColor(java.awt.Color color)
public void paint(java.awt.Graphics2D g2d, java.awt.Rectangle bounds, E element)
paint
in interface Painter<E extends WebComboBoxElement>
paint
in class WebLabelPainter<E extends WebComboBoxElement>
g2d
- component graphicsbounds
- bounds for painter visual dataelement
- component to processprotected void paintBoxBackground(java.awt.Graphics2D g2d, java.awt.Rectangle bounds, E element)
g2d
- graphics contextbounds
- element boundselement
- combobox elementprotected void paintSelectedBackground(java.awt.Graphics2D g2d, java.awt.Rectangle bounds, E element)
g2d
- graphics contextbounds
- element boundselement
- combobox elementprotected void paintDeselectedBackground(java.awt.Graphics2D g2d, java.awt.Rectangle bounds, E element)
g2d
- graphics contextbounds
- element boundselement
- combobox element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |