net.coderazzi.filters.gui
Class CustomChoiceDecorator.DefaultDecorator

java.lang.Object
  extended by net.coderazzi.filters.gui.CustomChoiceDecorator.DefaultDecorator
All Implemented Interfaces:
CustomChoiceDecorator
Enclosing interface:
CustomChoiceDecorator

public static class CustomChoiceDecorator.DefaultDecorator
extends Object
implements CustomChoiceDecorator

Default decorator, delegating always to the associated methods on the CustomChoice instances. The font, by default, will be cursive


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.coderazzi.filters.gui.CustomChoiceDecorator
CustomChoiceDecorator.DefaultDecorator
 
Constructor Summary
CustomChoiceDecorator.DefaultDecorator()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomChoiceDecorator.DefaultDecorator

public CustomChoiceDecorator.DefaultDecorator()
Method Detail

decorateComponent

public void decorateComponent(CustomChoice choice,
                              IFilterEditor editor,
                              boolean isSelected,
                              JComponent c,
                              Graphics g)
Description copied from interface: CustomChoiceDecorator
Decorates the choice on the given editor.

Specified by:
decorateComponent in interface CustomChoiceDecorator

getFont

public Font getFont(CustomChoice choice,
                    IFilterEditor editor,
                    boolean isSelected)
Description copied from interface: CustomChoiceDecorator
Returns the font.

Specified by:
getFont in interface CustomChoiceDecorator

getBackground

public Color getBackground(CustomChoice choice,
                           IFilterEditor editor,
                           boolean isSelected)
Description copied from interface: CustomChoiceDecorator
Returns the background color.

Specified by:
getBackground in interface CustomChoiceDecorator

getForeground

public Color getForeground(CustomChoice choice,
                           IFilterEditor editor,
                           boolean isSelected)
Description copied from interface: CustomChoiceDecorator
Returns the foreground color.

Specified by:
getForeground in interface CustomChoiceDecorator