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 / TransparencyRange.java @ 43803
History | View | Annotate | Download (1.94 KB)
1 |
package org.gvsig.raster.lib.legend.api; |
---|---|
2 |
|
3 |
import org.gvsig.tools.persistence.Persistent; |
4 |
|
5 |
/**
|
6 |
* @author fdiaz
|
7 |
*
|
8 |
*/
|
9 |
public interface TransparencyRange extends Persistent{ |
10 |
|
11 |
/**
|
12 |
* @return Gets alpha of this {@link TransparencyRange}. Default value is
|
13 |
* 255 (transparent)
|
14 |
*/
|
15 |
public int getAlpha(); |
16 |
|
17 |
/**
|
18 |
* @return Gets blue range values
|
19 |
*/
|
20 |
public int[] getBlue(); |
21 |
|
22 |
/**
|
23 |
* @return Gets green range values
|
24 |
*/
|
25 |
public int[] getGreen(); |
26 |
|
27 |
/**
|
28 |
* @return Gets red range values
|
29 |
*/
|
30 |
public int[] getRed(); |
31 |
|
32 |
/**
|
33 |
* @return Returns if {@link TransparencyRange} use and logic operation
|
34 |
*/
|
35 |
public boolean isAnd(); |
36 |
|
37 |
/**
|
38 |
* Sets alpha value to this {@link TransparencyRange}
|
39 |
*
|
40 |
* @param alpha
|
41 |
* Alpha value (0 to 255).
|
42 |
*/
|
43 |
public void setAlpha(int alpha); |
44 |
|
45 |
/**
|
46 |
* Sets boolean parameter to {@link TransparencyRange} to set if
|
47 |
* {@link TransparencyRange} use AND or OR logic operation.
|
48 |
*
|
49 |
* @param flag
|
50 |
* Flag to set AND or OR operation logic
|
51 |
*/
|
52 |
public void setAnd(boolean flag); |
53 |
|
54 |
/**
|
55 |
* Sets blue range values to this {@link TransparencyRange}
|
56 |
*
|
57 |
* @param blue
|
58 |
* Blue range values
|
59 |
*/
|
60 |
public void setBlue(int[] blue); |
61 |
|
62 |
/**
|
63 |
* Sets blue range values to this {@link TransparencyRange}
|
64 |
*
|
65 |
* @param green
|
66 |
*/
|
67 |
public void setGreen(int[] green); |
68 |
|
69 |
/**
|
70 |
* Sets blue range values to this {@link TransparencyRange}
|
71 |
*
|
72 |
* @param red
|
73 |
*/
|
74 |
public void setRed(int[] red); |
75 |
|
76 |
/**
|
77 |
* Sets blue range values to this {@link TransparencyRange}
|
78 |
*
|
79 |
* @param red
|
80 |
* @param green
|
81 |
* @param blue
|
82 |
*/
|
83 |
public void setRGB(int[] red, int[] green, int[] blue); |
84 |
|
85 |
/**
|
86 |
* Compare range of colors
|
87 |
*
|
88 |
* @param otherRange
|
89 |
* @return
|
90 |
*/
|
91 |
public boolean isSameRange(TransparencyRange otherRange); |
92 |
|
93 |
} |