Statistics
| Revision:

svn-gvsig-desktop / branches / org.gvsig.desktop-2018a / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.mapcontext / org.gvsig.fmap.mapcontext.api / src / main / java / org / gvsig / raster / lib / legend / api / colortable / colortableclass / ColorTableClass.java @ 43803

History | View | Annotate | Download (1.63 KB)

1
package org.gvsig.raster.lib.legend.api.colortable.colortableclass;
2

    
3
import java.awt.Color;
4

    
5
import org.gvsig.raster.lib.legend.api.colortable.ColorTable;
6
import org.gvsig.tools.observer.WeakReferencingObservable;
7
import org.gvsig.tools.persistence.Persistent;
8

    
9
/**
10
 * Class to represent each class of a {@link ColorTable}
11
 *
12
 * @author <a href="mailto:lmarques@disid.com">Lluis Marques</a>
13
 *
14
 */
15
public interface ColorTableClass extends Persistent, Comparable<ColorTableClass>, WeakReferencingObservable {
16

    
17
    /**
18
     * @return Gets the color of {@link ColorTableClass}
19
     */
20
    public Color getColor();
21

    
22
    /**
23
     * Sets the color of {@link ColorTableClass}
24
     *
25
     * @param color
26
     *            {@link Color} of class
27
     */
28
    public void setColor(Color color);
29

    
30
    /**
31
     * @return Gets the percent of interpolation with the next
32
     *         {@link ColorTableClass}
33
     */
34
    public double getInterpolated();
35

    
36
    /**
37
     * Sets percent of interpolation with the next {@link ColorTableClass}.
38
     *
39
     * @param interpolated
40
     *            Percent value.
41
     */
42
    public void setInterpolated(double interpolated);
43

    
44
    /**
45
     * @return Gets value of {@link ColorTableClass}
46
     */
47
    public double getValue();
48

    
49
    /**
50
     * Sets value of {@link ColorTableClass}
51
     *
52
     * @param value
53
     *            Value of this class.
54
     */
55
    public void setValue(double value);
56

    
57
    /**
58
     * @return Gets name of class
59
     */
60
    public String getName();
61

    
62
    /**
63
     * Sets name of this class
64
     *
65
     * @param nameClass
66
     *            Name of this class
67
     */
68
    public void setName(String nameClass);
69

    
70
}