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 @ 43876
History | View | Annotate | Download (2.61 KB)
1 |
package org.gvsig.raster.lib.legend.api; |
---|---|
2 |
|
3 |
import java.awt.Graphics; |
4 |
import java.util.List; |
5 |
|
6 |
import org.gvsig.fmap.dal.DataStore; |
7 |
import org.gvsig.fmap.dal.raster.BandDescriptor; |
8 |
import org.gvsig.fmap.dal.raster.RasterStore; |
9 |
import org.gvsig.fmap.mapcontext.ViewPort; |
10 |
import org.gvsig.fmap.mapcontext.rendering.legend.ILegend; |
11 |
import org.gvsig.raster.lib.buffer.api.Buffer; |
12 |
import org.gvsig.raster.lib.buffer.api.operations.OperationList; |
13 |
import org.gvsig.raster.lib.legend.api.colorinterpretation.ColorInterpretation; |
14 |
import org.gvsig.tools.observer.Observer; |
15 |
import org.gvsig.tools.persistence.Persistent; |
16 |
import org.gvsig.tools.task.SimpleTaskStatus; |
17 |
|
18 |
/**
|
19 |
* @author fdiaz
|
20 |
*
|
21 |
*/
|
22 |
public interface RasterLegend extends Persistent, ILegend, Observer { |
23 |
|
24 |
/**
|
25 |
* @param graphics
|
26 |
* @param buffer
|
27 |
* @param viewPort
|
28 |
* @param taskStatus
|
29 |
*/
|
30 |
public void draw(Graphics graphics, Buffer buffer, ViewPort viewPort, |
31 |
SimpleTaskStatus taskStatus); |
32 |
|
33 |
/**
|
34 |
* @return ColorInterpretation
|
35 |
*/
|
36 |
public ColorInterpretation getColorInterpretation();
|
37 |
|
38 |
/**
|
39 |
* @param colorInterpretation
|
40 |
*/
|
41 |
public void setColorInterpretation(ColorInterpretation colorInterpretation); |
42 |
|
43 |
/**
|
44 |
* @return FilterList
|
45 |
*/
|
46 |
public OperationList getFilters();
|
47 |
|
48 |
/**
|
49 |
* @param filterList
|
50 |
*/
|
51 |
public void setFilters(OperationList filterList); |
52 |
|
53 |
/**
|
54 |
* @param transparency
|
55 |
*/
|
56 |
public void setTransparency(Transparency transparency); |
57 |
|
58 |
/**
|
59 |
* @return
|
60 |
*/
|
61 |
public Transparency getTransparency(); |
62 |
|
63 |
/**
|
64 |
* @param transparentNoData
|
65 |
*/
|
66 |
public void setTransparentNoData(boolean transparentNoData); |
67 |
|
68 |
/**
|
69 |
* @return boolean
|
70 |
*/
|
71 |
public boolean areTransparentNoData(); |
72 |
|
73 |
/**
|
74 |
* Adds a ColorTableOperation
|
75 |
*
|
76 |
* @param colorInterpretation
|
77 |
* @param index
|
78 |
*/
|
79 |
public void addColorTableOperation(ColorInterpretation colorInterpretation, int index); |
80 |
|
81 |
/**
|
82 |
* Adds a addNewLinearStretchEnhancementOperation if needed
|
83 |
*
|
84 |
* @param colorInterpretation
|
85 |
* @param bands
|
86 |
* @param index
|
87 |
*/
|
88 |
public void addLinearStretchEnhancementOperationIfNeeded(ColorInterpretation colorInterpretation, List<BandDescriptor> bands, int index); |
89 |
|
90 |
/**
|
91 |
* @param colorInterpretation
|
92 |
*/
|
93 |
public void addHSLToRGBOperation(ColorInterpretation colorInterpretation); |
94 |
|
95 |
/**
|
96 |
* @param colorInterpretation
|
97 |
*/
|
98 |
public void addCMYKToRGBOperation(ColorInterpretation colorInterpretation); |
99 |
|
100 |
/**
|
101 |
* @param colorInterpretation
|
102 |
*/
|
103 |
public void addYCBCRToRGBOperation(ColorInterpretation colorInterpretation); |
104 |
|
105 |
} |