org.eclipse.ohf.stem.ui.ge.kml
Class Polygon

java.lang.Object
  extended by org.eclipse.ohf.stem.ui.ge.kml.Polygon

public class Polygon
extends java.lang.Object

Build the Polygon section of a KML document.


Constructor Summary
Polygon(org.w3c.dom.Document doc)
          Polygon constructor
 
Method Summary
 org.w3c.dom.Element getElement()
           
 org.w3c.dom.Element setCoordinates(Coordinates[] corners)
          Add coordinates to the Polygon section.
 org.w3c.dom.Element setCoordinates(java.lang.String coords)
          Add coordinates to the Polygon section.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Polygon

public Polygon(org.w3c.dom.Document doc)
Polygon constructor

Parameters:
doc -
Method Detail

getElement

public org.w3c.dom.Element getElement()
Returns:
Polygon Element

setCoordinates

public org.w3c.dom.Element setCoordinates(Coordinates[] corners)
Add coordinates to the Polygon section. This is a shortcut for creating a LinearRing inside of an outerBoundaryIs.

Parameters:
corners - coordinates of the corners for the outerRing
Returns:
xml element

setCoordinates

public org.w3c.dom.Element setCoordinates(java.lang.String coords)
Add coordinates to the Polygon section. This is a shortcut for creating a LinearRing inside of an outerBoundaryIs.

Parameters:
coords - coordinates of the corners for the outerRing
Returns:
xml element