PageRenderTime 16ms CodeModel.GetById 1ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 1ms

/src/worldwind/kml/dom/KMLLineString.java

http://wwj-kml.googlecode.com/
Java | 62 lines | 39 code | 16 blank | 7 comment | 0 complexity | 5f3de3b0ff12b29ba0f52db47e8aed6b MD5 | raw file
 1/*
 2 * To change this template, choose Tools | Templates
 3 * and open the template in the editor.
 4 */
 5
 6package worldwind.kml.dom;
 7
 8/**
 9 *
10 */
11public class KMLLineString extends KMLGeometry {
12    
13    protected boolean extrude = false;
14    
15    protected boolean tessellate = false;
16    
17    protected KMLAltitudeMode altitudeMode = KMLAltitudeMode.CLAMP_TO_GROUND;
18    
19    protected String coordinates;
20
21    public boolean isExtrude() {
22        return extrude;
23    }
24
25    public void setExtrude(boolean extrude) {
26        this.extrude = extrude;
27    }
28
29    public boolean isTessellate() {
30        return tessellate;
31    }
32
33    public void setTessellate(boolean tessellate) {
34        this.tessellate = tessellate;
35    }
36
37    public KMLAltitudeMode getAltitudeMode() {
38        return altitudeMode;
39    }
40
41    public void setAltitudeMode(KMLAltitudeMode altitudeMode) {
42        this.altitudeMode = altitudeMode;
43    }
44
45    public String getCoordinates() {
46        return coordinates;
47    }
48
49    public void setCoordinates(String coordinates) {
50        this.coordinates = coordinates;
51    }
52
53    @Override
54    protected String toKML() {
55        String s = new String();
56        s += "<LineString>\n";
57        s += "<coordinates>" + coordinates + "</coordinates>\n";
58        s += "</LineString>\n";
59        return s;
60    }
61
62}