com.partnersoft.formats.kml
Class KmlPolygonStyle

java.lang.Object
  extended by com.partnersoft.formats.kml.KmlStyle
      extended by com.partnersoft.formats.kml.KmlPolygonStyle
All Implemented Interfaces:
KmlObject

public class KmlPolygonStyle
extends KmlStyle

Copyright 2008 Partner Software, Inc.

Version:
$Id$
Author:
Rich Stepanski

Constructor Summary
KmlPolygonStyle(java.lang.String id, java.lang.String color, boolean fill, boolean outline)
           
 
Method Summary
 boolean isFill()
           
 boolean isOutline()
           
 void setFill(boolean fill)
          If true, polygon is filled.
 void setOutline(boolean outline)
          If true, uses current lineStyle to outline polygon.
 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 com.partnersoft.formats.kml.KmlStyle
getColor, getIconStyle, getId, getLineStyle, getPolyStyle, setColor, setIconStyle, setId, setLineStyle, setPolygonStyle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KmlPolygonStyle

public KmlPolygonStyle(java.lang.String id,
                       java.lang.String color,
                       boolean fill,
                       boolean outline)
Parameters:
id -
color -
fill -
outline -
Method Detail

isFill

public boolean isFill()

setFill

public void setFill(boolean fill)
If true, polygon is filled.

Parameters:
fill -

isOutline

public boolean isOutline()

setOutline

public void setOutline(boolean outline)
If true, uses current lineStyle to outline polygon.

Parameters:
outline -

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
Overrides:
write in class KmlStyle
Parameters:
writer - - Writer to write kml to.
Throws:
java.io.IOException - - Thrown if an error occurs while writing.