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

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

public class Style
extends java.lang.Object

Build the Style section of a KML document.

    
 


Constructor Summary
Style(org.w3c.dom.Document doc)
          Style constructor
Style(org.w3c.dom.Document doc, java.lang.String id)
          Style constructor
 
Method Summary
 org.w3c.dom.Element getElement()
           
 java.lang.String getId()
           
 void setLineStyle(double width)
          Add LineStyle to the Style section
 void setLineStyle(float width, java.lang.String color)
          Add LineStyle to the Style section Color is of hexidecimal form oobbggrr where: oo is 00-ff opacity value bb is 00-ff blue gg is 00-ff green rr is 00-ff red so 7fff0000 is Blue with 50% opacity
 void setPolyStyle(java.lang.String color, boolean outline)
          Add PolyStyle to the Style section
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Style

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

Parameters:
doc -

Style

public Style(org.w3c.dom.Document doc,
             java.lang.String id)
Style constructor

Parameters:
doc -
id -
Method Detail

getElement

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

getId

public java.lang.String getId()
Returns:
id

setLineStyle

public void setLineStyle(float width,
                         java.lang.String color)
Add LineStyle to the Style section Color is of hexidecimal form oobbggrr where: oo is 00-ff opacity value bb is 00-ff blue gg is 00-ff green rr is 00-ff red so 7fff0000 is Blue with 50% opacity

Parameters:
width - line width (e.g. 3.0)
color - line color (e.g. 7d00ffff)

setLineStyle

public void setLineStyle(double width)
Add LineStyle to the Style section

Parameters:
width - line width (e.g. 3.0)

setPolyStyle

public void setPolyStyle(java.lang.String color,
                         boolean outline)
Add PolyStyle to the Style section

Parameters:
color - KML color
outline - true if outline option to be added