public class ComboBoxBackgroundDelegate extends Object
Constructor | Description |
---|---|
ComboBoxBackgroundDelegate() |
Simple constructor.
|
Modifier and Type | Method | Description |
---|---|---|
static BufferedImage |
getFullAlphaBackground(JComboBox combo,
ButtonModel model,
SubstanceFillPainter fillPainter,
SubstanceBorderPainter borderPainter,
int width,
int height) |
Retrieves the background for the specified button.
|
void |
updateBackground(Graphics g,
JComboBox combo,
ButtonModel comboModel) |
Updates background of the specified button.
|
public ComboBoxBackgroundDelegate()
public static BufferedImage getFullAlphaBackground(JComboBox combo, ButtonModel model, SubstanceFillPainter fillPainter, SubstanceBorderPainter borderPainter, int width, int height)
combo
- combo box.model
- Button model.fillPainter
- Button fill painter.borderPainter
- Button border painter.width
- Button width.height
- Button height.public void updateBackground(Graphics g, JComboBox combo, ButtonModel comboModel)
g
- Graphic context.combo
- Combo Box to update.