PageRenderTime 23ms CodeModel.GetById 16ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/src/worldwind/kml/dom/KMLPoint.java

http://wwj-kml.googlecode.com/
Java | 53 lines | 32 code | 14 blank | 7 comment | 0 complexity | bd1cd74c2271a1dbc09e357752ac49c8 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 KMLPoint extends KMLGeometry{
12    
13    protected boolean extrude;
14    
15    protected KMLAltitudeMode altitudeMode = KMLAltitudeMode.CLAMP_TO_GROUND;
16    
17    protected String coordinates;
18
19    public boolean isExtrude() {
20        return extrude;
21    }
22
23    public void setExtrude(boolean extrude) {
24        this.extrude = extrude;
25    }
26
27    public KMLAltitudeMode getAltitudeMode() {
28        return altitudeMode;
29    }
30
31    public void setAltitudeMode(KMLAltitudeMode altitudeMode) {
32        this.altitudeMode = altitudeMode;
33    }
34
35    public String getCoordinates() {
36        return coordinates;
37    }
38
39    public void setCoordinates(String coordinates) {
40        this.coordinates = coordinates;
41    }
42
43    @Override
44    protected String toKML() {
45        String s = new String();
46        s += "<Point>\n";
47        s += "<coordinates>" + coordinates + "</coordinates>\n";
48        s += "</Point>\n";
49        return s;
50    }
51    
52
53}