net.sf.doolin.gui.style
Class BackgroundStyle

java.lang.Object
  extended by net.sf.doolin.gui.style.BackgroundStyle
All Implemented Interfaces:
Style

public class BackgroundStyle
extends Object
implements Style

Style that changes the background colour of the component.

Author:
Damien Coraboeuf

Constructor Summary
BackgroundStyle()
          White colour
BackgroundStyle(Color color)
          Constructor with a given colour
 
Method Summary
 void apply(Component component)
          Applies this style to this component
 Color getColor()
          Gets the colour to apply as background
 void setColor(Color color)
          Sets the colour to apply as background
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackgroundStyle

public BackgroundStyle()
White colour


BackgroundStyle

public BackgroundStyle(Color color)
Constructor with a given colour

Parameters:
color - Colour to apply as background
Method Detail

apply

public void apply(Component component)
Description copied from interface: Style
Applies this style to this component

Specified by:
apply in interface Style
Parameters:
component - Component to apply the style to

getColor

public Color getColor()
Gets the colour to apply as background

Returns:
Colour

setColor

public void setColor(Color color)
Sets the colour to apply as background

Parameters:
color - Colour


Copyright © 2011. All Rights Reserved.