com.partnersoft.formats.kml
Class KmlStyle

java.lang.Object
  extended by com.partnersoft.formats.kml.KmlStyle
All Implemented Interfaces:
KmlObject
Direct Known Subclasses:
KmlIconStyle, KmlLineStyle, KmlPolygonStyle

public class KmlStyle
extends java.lang.Object
implements KmlObject

Container and base class for all Kml Style classes.

Copyright 2008 Partner Software, Inc.

Version:
$Id$
Author:
Rich Stepanski

Constructor Summary
KmlStyle(java.lang.String id)
           
KmlStyle(java.lang.String id, java.lang.String color)
           
 
Method Summary
 java.lang.String getColor()
           
 KmlStyle getIconStyle()
           
 java.lang.String getId()
           
 KmlStyle getLineStyle()
           
 KmlStyle getPolyStyle()
           
 void setColor(java.lang.String color)
          Hexadecimal String representing aaRRGGBB.
 void setIconStyle(KmlStyle iconStyle)
          An IconStyle for this Style container.
 void setId(java.lang.String id)
          The name used to refer to this style by other KmlObjects.
 void setLineStyle(KmlStyle lineStyle)
          LineStyle for this Style container
 void setPolygonStyle(KmlStyle polyStyle)
          PolyStyle for this Style container.
 void write(XmlBuilder writer)
          Object writes itself to the passed writer in the correct format for the object based on it's fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KmlStyle

public KmlStyle(java.lang.String id,
                java.lang.String color)

KmlStyle

public KmlStyle(java.lang.String id)
Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)
The name used to refer to this style by other KmlObjects. Note: When called from other objects, name must be preceeded by #

Parameters:
id -

getColor

public java.lang.String getColor()

setColor

public void setColor(java.lang.String color)
Hexadecimal String representing aaRRGGBB.

Parameters:
color -

getIconStyle

public KmlStyle getIconStyle()

setIconStyle

public void setIconStyle(KmlStyle iconStyle)
An IconStyle for this Style container.

Parameters:
iconStyle -

getLineStyle

public KmlStyle getLineStyle()

setLineStyle

public void setLineStyle(KmlStyle lineStyle)
LineStyle for this Style container

Parameters:
lineStyle -

getPolyStyle

public KmlStyle getPolyStyle()

setPolygonStyle

public void setPolygonStyle(KmlStyle polyStyle)
PolyStyle for this Style container.

Parameters:
polyStyle -

write

public void write(XmlBuilder writer)
           throws java.io.IOException
Description copied from interface: KmlObject
Object writes itself to the passed writer in the correct format for the object based on it's fields.

Specified by:
write in interface KmlObject
Parameters:
writer - - Writer to write kml to.
Throws:
java.io.IOException - - Thrown if an error occurs while writing.