public static class CustomChoiceDecorator.DefaultDecorator extends java.lang.Object implements CustomChoiceDecorator
CustomChoice instances. The font, by default, will be cursiveCustomChoiceDecorator.DefaultDecorator| Constructor and Description |
|---|
DefaultDecorator() |
| Modifier and Type | Method and Description |
|---|---|
void |
decorateComponent(CustomChoice choice,
IFilterEditor editor,
boolean isSelected,
javax.swing.JComponent c,
java.awt.Graphics g)
Decorates the choice on the given editor.
|
java.awt.Color |
getBackground(CustomChoice choice,
IFilterEditor editor,
boolean isSelected)
Returns the background color.
|
java.awt.Font |
getFont(CustomChoice choice,
IFilterEditor editor,
boolean isSelected)
Returns the font.
|
java.awt.Color |
getForeground(CustomChoice choice,
IFilterEditor editor,
boolean isSelected)
Returns the foreground color.
|
public void decorateComponent(CustomChoice choice, IFilterEditor editor, boolean isSelected, javax.swing.JComponent c, java.awt.Graphics g)
CustomChoiceDecoratordecorateComponent in interface CustomChoiceDecoratorpublic java.awt.Font getFont(CustomChoice choice, IFilterEditor editor, boolean isSelected)
CustomChoiceDecoratorgetFont in interface CustomChoiceDecoratorpublic java.awt.Color getBackground(CustomChoice choice, IFilterEditor editor, boolean isSelected)
CustomChoiceDecoratorgetBackground in interface CustomChoiceDecoratorpublic java.awt.Color getForeground(CustomChoice choice, IFilterEditor editor, boolean isSelected)
CustomChoiceDecoratorgetForeground in interface CustomChoiceDecoratorCopyright © 2019 coderazzi. All Rights Reserved.