root / org.gvsig.proj / branches / refactor2018 / org.gvsig.proj / org.gvsig.proj.swing / org.gvsig.proj.swing.impl / src / main / java / org / gvsig / proj / swing / impl / tree / CtTreeNode.java @ 866
History | View | Annotate | Download (630 Bytes)
1 | 866 | cmartinez | package org.gvsig.proj.swing.impl.tree; |
---|---|---|---|
2 | |||
3 | import org.gvsig.proj.catalog.TransformationDefinition; |
||
4 | |||
5 | public class CtTreeNode extends LeafNode { |
||
6 | private TransformationDefinition ct;
|
||
7 | boolean enabled;
|
||
8 | |||
9 | public CtTreeNode(TransformationDefinition ct, BranchNode parent) {
|
||
10 | this(ct, parent, true); |
||
11 | } |
||
12 | |||
13 | public CtTreeNode(TransformationDefinition ct, BranchNode parent, boolean enabled) { |
||
14 | super(parent);
|
||
15 | this.ct = ct;
|
||
16 | this.enabled = enabled;
|
||
17 | } |
||
18 | |||
19 | public TransformationDefinition getCT() {
|
||
20 | return ct;
|
||
21 | } |
||
22 | |||
23 | @Override
|
||
24 | public String toString() { |
||
25 | return ct.toString();
|
||
26 | } |
||
27 | |||
28 | public boolean isEnabled() { |
||
29 | return enabled;
|
||
30 | } |
||
31 | } |