public static class CustomChoiceDecorator.DefaultDecorator extends 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,
JComponent c,
Graphics g)
Decorates the choice on the given editor.
|
Color |
getBackground(CustomChoice choice,
IFilterEditor editor,
boolean isSelected)
Returns the background color.
|
Font |
getFont(CustomChoice choice,
IFilterEditor editor,
boolean isSelected)
Returns the font.
|
Color |
getForeground(CustomChoice choice,
IFilterEditor editor,
boolean isSelected)
Returns the foreground color.
|
public void decorateComponent(CustomChoice choice, IFilterEditor editor, boolean isSelected, JComponent c, Graphics g)
CustomChoiceDecoratordecorateComponent in interface CustomChoiceDecoratorpublic Font getFont(CustomChoice choice, IFilterEditor editor, boolean isSelected)
CustomChoiceDecoratorgetFont in interface CustomChoiceDecoratorpublic Color getBackground(CustomChoice choice, IFilterEditor editor, boolean isSelected)
CustomChoiceDecoratorgetBackground in interface CustomChoiceDecoratorpublic Color getForeground(CustomChoice choice, IFilterEditor editor, boolean isSelected)
CustomChoiceDecoratorgetForeground in interface CustomChoiceDecoratorCopyright © 2015 coderazzi. All Rights Reserved.