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)
CustomChoiceDecorator
decorateComponent
in interface CustomChoiceDecorator
public Font getFont(CustomChoice choice, IFilterEditor editor, boolean isSelected)
CustomChoiceDecorator
getFont
in interface CustomChoiceDecorator
public Color getBackground(CustomChoice choice, IFilterEditor editor, boolean isSelected)
CustomChoiceDecorator
getBackground
in interface CustomChoiceDecorator
public Color getForeground(CustomChoice choice, IFilterEditor editor, boolean isSelected)
CustomChoiceDecorator
getForeground
in interface CustomChoiceDecorator