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