net.coderazzi.filters.gui
Interface CustomChoiceDecorator

All Known Implementing Classes:
CustomChoiceDecorator.DefaultDecorator

public interface CustomChoiceDecorator

Interface that allows customizing the appearance of CustomChoices in those IFilterEditors without associated ChoiceRenderer.


Nested Class Summary
static class CustomChoiceDecorator.DefaultDecorator
          Default decorator, delegating always to the associated methods on the CustomChoice instances.
 
Method Summary
 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.
 

Method Detail

getBackground

Color getBackground(CustomChoice choice,
                    IFilterEditor editor,
                    boolean isSelected)
Returns the background color.


getForeground

Color getForeground(CustomChoice choice,
                    IFilterEditor editor,
                    boolean isSelected)
Returns the foreground color.


getFont

Font getFont(CustomChoice choice,
             IFilterEditor editor,
             boolean isSelected)
Returns the font.


decorateComponent

void decorateComponent(CustomChoice choice,
                       IFilterEditor editor,
                       boolean isSelected,
                       JComponent c,
                       Graphics g)
Decorates the choice on the given editor.