Statistics
| Revision:

svn-gvsig-desktop / tags / 3D_Animation_v1_0alpha_Build_5 / libraries / lib3DMap / src / org / gvsig / gvsig3d / labels3D / AbstractLabel3D.java @ 25534

History | View | Annotate | Download (1.72 KB)

1 21940 jcampos
package org.gvsig.gvsig3d.labels3D;
2 19989 jcampos
3 20893 jcampos
import org.gvsig.osgvp.Vec3;
4
5 19989 jcampos
import com.iver.cit.gvsig.fmap.core.v02.FLabel;
6
7
public class AbstractLabel3D implements ILabel3D {
8
9
        Vec3 position;
10
        FLabel label;
11
        double heigthField;
12
        int heigthFieldId;
13
        String textField;
14
        int textFieldId;
15
        private int units;
16
17
        public AbstractLabel3D(FLabel label, double heigthField, String textField) {
18
                super();
19
                this.label = label;
20
                position = new Vec3(label.getOrig().getX(), label.getOrig().getY(), 0.0);
21
                this.heigthField = heigthField;
22
                this.textField = textField;
23
        }
24
25
        public AbstractLabel3D(FLabel label) {
26
                super();
27
                this.label = label;
28
                position = new Vec3(label.getOrig().getX(), label.getOrig().getY(), 0.0);
29
        }
30
31
        public FLabel getFlabel() {
32
                return this.label;
33
        }
34
35
        public double getHeightField() {
36
                return this.heigthField;
37
        }
38
39
        public Vec3 getPosition() {
40
                return this.position;
41
        }
42
43
        public String getTextField() {
44
                return this.textField;
45
        }
46
47
        public int getTextFieldId() {
48
                return this.textFieldId;
49
        }
50
51
        public void setFlabel(FLabel flabel) {
52
                this.label = flabel;
53
54
        }
55
56
        public void setHeightField(double heigthField) {
57
                this.heigthField = heigthField;
58
        }
59
60
        public void setPosition(Vec3 position) {
61
                this.position = position;
62
        }
63
64
        public void setTextField(String textField) {
65
                this.textField = textField;
66
        }
67
68
        public void setTextFieldId(int textFieldId) {
69
                this.textFieldId = textFieldId;
70
        }
71
72
        public int getHeightFieldId() {
73
                return this.heigthFieldId;
74
        }
75
76
        public void setHeightFieldId(int heigthFieldId) {
77
                this.heigthFieldId = heigthFieldId;
78
        }
79
80
        public int getUnits() {
81
                return this.units;
82
        }
83
84
        public void setUnits(int units) {
85
                this.units = units;
86
        }
87
}