/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. package worldwind.kml.dom;
  6. /**
  7. *
  8. */
  9. public class KMLPoint extends KMLGeometry{
  10. protected boolean extrude;
  11. protected KMLAltitudeMode altitudeMode = KMLAltitudeMode.CLAMP_TO_GROUND;
  12. protected String coordinates;
  13. public boolean isExtrude() {
  14. return extrude;
  15. }
  16. public void setExtrude(boolean extrude) {
  17. this.extrude = extrude;
  18. }
  19. public KMLAltitudeMode getAltitudeMode() {
  20. return altitudeMode;
  21. }
  22. public void setAltitudeMode(KMLAltitudeMode altitudeMode) {
  23. this.altitudeMode = altitudeMode;
  24. }
  25. public String getCoordinates() {
  26. return coordinates;
  27. }
  28. public void setCoordinates(String coordinates) {
  29. this.coordinates = coordinates;
  30. }
  31. @Override
  32. protected String toKML() {
  33. String s = new String();
  34. s += "<Point>\n";
  35. s += "<coordinates>" + coordinates + "</coordinates>\n";
  36. s += "</Point>\n";
  37. return s;
  38. }
  39. }