001    /**
002     * Copyright (C) 2007-2009, Jens Lehmann
003     *
004     * This file is part of DL-Learner.
005     * 
006     * DL-Learner is free software; you can redistribute it and/or modify
007     * it under the terms of the GNU General Public License as published by
008     * the Free Software Foundation; either version 3 of the License, or
009     * (at your option) any later version.
010     *
011     * DL-Learner is distributed in the hope that it will be useful,
012     * but WITHOUT ANY WARRANTY; without even the implied warranty of
013     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
014     * GNU General Public License for more details.
015     *
016     * You should have received a copy of the GNU General Public License
017     * along with this program.  If not, see <http://www.gnu.org/licenses/>.
018     *
019     */
020    package org.dllearner.tools.protege;
021    
022    import java.awt.Color;
023    /**
024     * This Class represents an entry of the suggest list.
025     * @author Christian Koetteritzsch
026     *
027     */
028    public class SuggestListItem {
029            
030            private final Color color;
031        private final String value;
032        private final double accuracy;
033        /**
034         * Constructor for the SuggestListItem.
035         * @param c Color Color in which the text is painted.
036         * @param s String text that is shown.
037         * @param acc Accuracy of the concept
038         */
039        public SuggestListItem(
040           Color c, String s, double acc) {
041            this.color = c;
042            this.value = s;
043            this.accuracy = acc;
044            
045        }
046        
047        /**
048         * This method returns the color of the current list item.
049         * @return Color Color of the current list item
050         */
051        public Color getColor() {
052            return color;
053        }
054        
055        /**
056         * This Method returns the text of the current list item.
057         * @return String Text of the current list item
058         */
059        public String getValue() {
060            return value;
061        }
062    
063            /**
064             * This method returns the accuracy of the current list item.
065             * @return accuracy
066             */
067            public double getAccuracy() {
068                    return accuracy;
069            }
070    }
071