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 / RasterLegend.java @ 43803

History | View | Annotate | Download (2.74 KB)

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

    
3
import java.awt.Graphics;
4

    
5
import org.gvsig.fmap.dal.DataStore;
6
import org.gvsig.fmap.dal.raster.api.RasterStore;
7
import org.gvsig.fmap.mapcontext.ViewPort;
8
import org.gvsig.fmap.mapcontext.rendering.legend.ILegend;
9
import org.gvsig.raster.lib.buffer.api.Buffer;
10
import org.gvsig.raster.lib.buffer.api.operations.OperationList;
11
import org.gvsig.raster.lib.legend.api.colorinterpretation.ColorInterpretation;
12
import org.gvsig.tools.observer.Observer;
13
import org.gvsig.tools.persistence.Persistent;
14
import org.gvsig.tools.task.SimpleTaskStatus;
15

    
16
/**
17
 * @author fdiaz
18
 *
19
 */
20
public interface RasterLegend extends Persistent, ILegend, Observer {
21

    
22
    /**
23
     * @param graphics
24
     * @param buffer
25
     * @param viewPort
26
     * @param taskStatus
27
     */
28
    public void draw(Graphics graphics, Buffer buffer, ViewPort viewPort,
29
        SimpleTaskStatus taskStatus);
30

    
31
    /**
32
     * @return ColorInterpretation
33
     */
34
    public ColorInterpretation getColorInterpretation();
35

    
36
    /**
37
     * @param colorInterpretation
38
     */
39
    public void setColorInterpretation(ColorInterpretation colorInterpretation);
40

    
41
    /**
42
     * @return FilterList
43
     */
44
    public OperationList getFilters();
45

    
46
    /**
47
     * @param filterList
48
     */
49
    public void setFilters(OperationList filterList);
50

    
51
    /**
52
     * @param transparency
53
     */
54
    public void setTransparency(Transparency transparency);
55

    
56
    /**
57
     * @return
58
     */
59
    public Transparency getTransparency();
60

    
61
    /**
62
     * @param transparentNoData
63
     */
64
    public void setTransparentNoData(boolean transparentNoData);
65

    
66
    /**
67
     * @return boolean
68
     */
69
    public boolean areTransparentNoData();
70

    
71
    /**
72
     * Adds a ColorTableOperation
73
     *
74
     * @param colorInterpretation
75
     * @param index
76
     */
77
    public void addColorTableOperation(ColorInterpretation colorInterpretation, int index);
78

    
79
    /**
80
     * Adds a addNewLinearStretchEnhancementOperation if needed
81
     *
82
     * @param colorInterpretation
83
     * @param store
84
     * @param index
85
     */
86
    public void addLinearStretchEnhancementOperationIfNeeded(ColorInterpretation colorInterpretation, RasterStore store, int index);
87

    
88
    /**
89
     * Removes any operation of the filters whose name matches the parameter "name"
90
     *
91
     * @param rasterLegend
92
     * @param name
93
     */
94
    public void removeOperationIfExists(String name);
95

    
96
    /**
97
     * @param colorInterpretation
98
     */
99
    public void addHSLToRGBOperation(ColorInterpretation colorInterpretation);
100

    
101
    /**
102
     * @param colorInterpretation
103
     */
104
    public void addCMYKToRGBOperation(ColorInterpretation colorInterpretation);
105

    
106
    /**
107
     * @param colorInterpretation
108
     */
109
    public void addYCBCRToRGBOperation(ColorInterpretation colorInterpretation);
110

    
111
}