View Javadoc

1   /**
2    * Copyright 2009 Timothy Johnston Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
3    * file except in compliance with the License. You may obtain a copy of the License at
4    * 
5    * http://www.apache.org/licenses/LICENSE-2.0
6    * 
7    * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
8    * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
9    * specific language governing permissions and limitations under the License.
10   */
11  
12  package com.timjohnstondev.unitconverter.view;
13  
14  import java.awt.Color;
15  
16  /**
17   * The {@code Configuration} interface provides a way to update some of the user configurable UI components.
18   */
19  public interface Configuration
20  {
21    /**
22     * Changes the font size for this and all contained components while maintaining the font name and style.
23     * 
24     * @param fontSize the new font size
25     */
26    void setFontSize(final float fontSize);
27  
28    /**
29     * Changes the background color for this and all contained components.
30     * 
31     * @param color the new background color
32     */
33    void setBackgroundColor(final Color color);
34  
35    /**
36     * Changes the foreground color for this and all contained components.
37     * 
38     * @param color the new foreground color
39     */
40    void setForegroundColor(final Color color);
41  }