svn-document-layout / trunk / org.gvsig.layout / org.gvsig.layout.app / org.gvsig.layout.app.configurablelegend / src / main / java / org / gvsig / layout / configurablelegend / impl / AbstractEntry.java @ 793
History | View | Annotate | Download (955 Bytes)
1 |
|
---|---|
2 |
package org.gvsig.layout.configurablelegend.impl; |
3 |
|
4 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
5 |
import org.gvsig.layout.configurablelegend.Entry; |
6 |
import org.gvsig.layout.configurablelegend.Text; |
7 |
|
8 |
|
9 |
public class AbstractEntry implements Entry { |
10 |
|
11 |
protected boolean visible; |
12 |
protected Text caption;
|
13 |
protected ISymbol symbol;
|
14 |
|
15 |
public AbstractEntry(ISymbol symbol, Text text) {
|
16 |
this.caption = text;
|
17 |
this.symbol = symbol;
|
18 |
this.visible = true; |
19 |
} |
20 |
|
21 |
public AbstractEntry(ISymbol symbol, String text) { |
22 |
this(symbol, new TextImpl(text)); |
23 |
} |
24 |
|
25 |
@Override
|
26 |
public Text getCaption() {
|
27 |
return caption;
|
28 |
} |
29 |
|
30 |
@Override
|
31 |
public ISymbol getSymbol() {
|
32 |
return symbol;
|
33 |
} |
34 |
|
35 |
@Override
|
36 |
public boolean isVisible() { |
37 |
return visible;
|
38 |
} |
39 |
|
40 |
@Override
|
41 |
public void setVisible(boolean visible) { |
42 |
this.visible = visible;
|
43 |
} |
44 |
|
45 |
|
46 |
|
47 |
|
48 |
} |