Statistics
| Revision:

root / branches / v2_0_0_prep / extensions / extEditing / src / org / gvsig / editing / fmap / rendering / LegendControl.java @ 30011

History | View | Annotate | Download (1.06 KB)

1
package org.gvsig.editing.fmap.rendering;
2

    
3
import java.util.BitSet;
4

    
5
import org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend;
6

    
7
public class LegendControl extends VectorialUniqueValueLegend{
8

    
9
        private BitSet isBlocked=new BitSet();
10
        private BitSet isActivated=new BitSet();
11
        private BitSet isDisabled=new BitSet();
12
        private BitSet isFilled=new BitSet();
13
        private int present=0;
14

    
15
        public LegendControl() {
16
        }
17
        public boolean isBlocked(int i) {
18
                return isBlocked.get(i);
19
        }
20
        public boolean isActivated(int i) {
21
                return isActivated.get(i);
22
        }
23
        public boolean isDisabled(int i) {
24
                return isDisabled.get(i);
25
        }
26
        public boolean isFilled(int i) {
27
                return isFilled.get(i);
28
        }
29
        public void setBlocked(int i,boolean b) {
30
                isBlocked.set(i,b);
31
        }
32
        public void setActivated(int i,boolean b) {
33
                isActivated.set(i,b);
34
        }
35
        public void setDisabled(int i,boolean b) {
36
                isDisabled.set(i,b);
37
        }
38
        public void setFilled(int i,boolean b) {
39
                isFilled.set(i,b);
40
        }
41
        public void setPresent(int i) {
42
                present=i;
43
        }
44
        public int getPresent() {
45
                return present;
46
        }
47
}