// Path: contrast-finder-api/src/main/java/org/opens/colorfinder/result/ColorResult.java
// public interface ColorResult {
// 
//     /**
//      * 
//      * @param foreground
//      * @param backgroud
//      * @param threashold 
//      */
//     void setSubmittedColors(Color foreground, Color backgroud, Float threashold);
//     
//     /**
//      * 
//      * @return 
//      */
//     ColorCombinaison getSubmittedCombinaisonColor();
//     
//     /**
//      * 
//      * @return 
//      */
//     boolean isCombinaisonValid();
//     
//     /**
//      * 
//      * @return 
//      */
//     Collection<ColorCombinaison> getSuggestedColors();
//     
//     /**
//      * 
//      * @return 
//      */
//     int getNumberOfSuggestedColors();
//     
//     /**
//      * 
//      * @param combinaison 
//      */
//     void addSuggestedColor(ColorCombinaison combinaison);
//     
//     /**
//      * 
//      * @return 
//      */
//     Float getThreashold();
//     
//     /**
//      * 
//      * @return the number of tested colors
//      */
//     int getNumberOfTestedColors();
// 
//     /**
//      * set the number of tested colors
//      */
//     void setNumberOfTestedColors(int testedColors);
// 
// }


import java.awt.Color;
import org.opens.colorfinder.result.ColorResult;
/*
 * Contrast Finder
 * Copyright (C) 2008-2013  Open-S Company
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Contact us by mail: open-s AT open-s DOT com
 */ 
package org.opens.colorfinder;


/**
 *
 * @author alingua
 */
public interface ColorFinder {

    /**
     * 
     * @param foregroundColor
     * @param backgroundColor
     * @param isBackgroundTested
     * @param coefficientLevel
     * @return 
     */
    void findColors (
            Color foregroundColor, 
            Color backgroundColor, 
            boolean isBackgroundTested, 
            Float coefficientLevel);

    /**
     * 
     * @return 
     */
// Path: contrast-finder-api/src/main/java/org/opens/colorfinder/result/ColorResult.java
// public interface ColorResult {
// 
//     /**
//      * 
//      * @param foreground
//      * @param backgroud
//      * @param threashold 
//      */
//     void setSubmittedColors(Color foreground, Color backgroud, Float threashold);
//     
//     /**
//      * 
//      * @return 
//      */
//     ColorCombinaison getSubmittedCombinaisonColor();
//     
//     /**
//      * 
//      * @return 
//      */
//     boolean isCombinaisonValid();
//     
//     /**
//      * 
//      * @return 
//      */
//     Collection<ColorCombinaison> getSuggestedColors();
//     
//     /**
//      * 
//      * @return 
//      */
//     int getNumberOfSuggestedColors();
//     
//     /**
//      * 
//      * @param combinaison 
//      */
//     void addSuggestedColor(ColorCombinaison combinaison);
//     
//     /**
//      * 
//      * @return 
//      */
//     Float getThreashold();
//     
//     /**
//      * 
//      * @return the number of tested colors
//      */
//     int getNumberOfTestedColors();
// 
//     /**
//      * set the number of tested colors
//      */
//     void setNumberOfTestedColors(int testedColors);
// 
// }


// Path: contrast-finder-api/src/main/java/org/opens/colorfinder/ColorFinder.java
import java.awt.Color;
import org.opens.colorfinder.result.ColorResult;

/*
 * Contrast Finder
 * Copyright (C) 2008-2013  Open-S Company
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Contact us by mail: open-s AT open-s DOT com
 */ 
package org.opens.colorfinder;


/**
 *
 * @author alingua
 */
public interface ColorFinder {

    /**
     * 
     * @param foregroundColor
     * @param backgroundColor
     * @param isBackgroundTested
     * @param coefficientLevel
     * @return 
     */
    void findColors (
            Color foregroundColor, 
            Color backgroundColor, 
            boolean isBackgroundTested, 
            Float coefficientLevel);

    /**
     * 
     * @return 
     */
    ColorResult getColorResult();