/*
 * Copyright © 2016, Gábor Kolozsy. All rights reserved.
 */
package hu.gaborkolozsy.dictionary.model.interfaces.impl;

import hu.gaborkolozsy.dictionary.model.interfaces.Service;
import hu.gaborkolozsy.dictionary.model.Config;
import java.io.IOException;

/**
 * Font service.
 * 
 * @author Kolozsy Gábor (kolozsygabor@gmail.com)
 * 
 * @see hu.gaborkolozsy.dictionary.model.interfaces.Service
 * @see hu.gaborkolozsy.dictionary.model.Config
 * @since 0.1.1
 */
public class FontServiceImpl implements Service<String> {
    
    /** {@code Config} object. */
    private final Config config;
    
    /**
     * Constructor.
     * @param config the {@code Config} object
     * @throws IOException by failed I/O operations
     */
    public FontServiceImpl(Config config) throws IOException {
        this.config = config;
    }
    
    /**
     * Return font type.
     * @return the actual font type
     * @throws IOException by failed I/O operations
     */
    @Override
    public String get() throws IOException {
        return choose(config.getPropertie("Font"));
    }
    
    /**
     * Set font type as an ID.
     * @param font the actual font ID
     */
    @Override
    public void set(String font) throws IOException {
        this.config.storePropertie("Font", font);
    }
    
    /**
     * Return font type.
     * @return the actual font type
     */
    @Override
    public String choose(String text) {
        String fontType = "";
        switch (text) {
            case "1": fontType = "HERCULANUM";    break;
            case "2": fontType = "Dialog";        break;
            case "3": fontType = "Comic Sans MS"; break;
        }
        return fontType;
    }
}

@@ -34,35 +34,14 @@
 ozsy
-. All rights reserved.
 %0A
+
  */%0A
+%0A
 pack
@@ -287,20 +287,33 @@
 or (
+gabor.
 kolozsy
-gabor
+.development
 @gma
@@ -324,20 +324,16 @@
 om)%0A
- * %0A
  * @see 
 hu.g
@@ -332,107 +332,50 @@
 see 
-hu.gaborkolozsy.dictionary.model.interfaces.Service%0A * @see hu.gaborkolozsy.dictionary.model.Config
+Service%0A * @see Config%0A * @see IOException
 %0A * 
@@ -462,16 +462,24 @@
     /** 
+%0A     * 
 %7B@code C
@@ -493,16 +493,22 @@
 object. 
+%0A     
 */%0A    p

Update FontServiceImpl.java