svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.editing.app / org.gvsig.editing.app.mainplugin / src / main / java / org / gvsig / editing / fmap / rendering / LegendControl.java @ 40557
History | View | Annotate | Download (2.03 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
package org.gvsig.editing.fmap.rendering; |
25 |
|
26 |
import java.util.BitSet; |
27 |
|
28 |
import org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.VectorialUniqueValueLegend; |
29 |
|
30 |
public class LegendControl extends VectorialUniqueValueLegend{ |
31 |
|
32 |
private BitSet isBlocked=new BitSet(); |
33 |
private BitSet isActivated=new BitSet(); |
34 |
private BitSet isDisabled=new BitSet(); |
35 |
private BitSet isFilled=new BitSet(); |
36 |
private int present=0; |
37 |
|
38 |
public LegendControl(int shapeType) { |
39 |
super(shapeType);
|
40 |
} |
41 |
public boolean isBlocked(int i) { |
42 |
return isBlocked.get(i);
|
43 |
} |
44 |
public boolean isActivated(int i) { |
45 |
return isActivated.get(i);
|
46 |
} |
47 |
public boolean isDisabled(int i) { |
48 |
return isDisabled.get(i);
|
49 |
} |
50 |
public boolean isFilled(int i) { |
51 |
return isFilled.get(i);
|
52 |
} |
53 |
public void setBlocked(int i,boolean b) { |
54 |
isBlocked.set(i,b); |
55 |
} |
56 |
public void setActivated(int i,boolean b) { |
57 |
isActivated.set(i,b); |
58 |
} |
59 |
public void setDisabled(int i,boolean b) { |
60 |
isDisabled.set(i,b); |
61 |
} |
62 |
public void setFilled(int i,boolean b) { |
63 |
isFilled.set(i,b); |
64 |
} |
65 |
public void setPresent(int i) { |
66 |
present=i; |
67 |
} |
68 |
public int getPresent() { |
69 |
return present;
|
70 |
} |
71 |
} |