PageRenderTime 24ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/src/com/google/maps/extras/xmlparsers/kml/PolyStyle.as

http://gmaps-utility-library-flash.googlecode.com/
ActionScript | 42 lines | 31 code | 8 blank | 3 comment | 10 complexity | 4a3d6e64b863c7e6375671b85627c826 MD5 | raw file
  1. /* Added by Cecil M. Reid (cmR)
  2. * cecilmreid@gmail.com
  3. */
  4. package com.google.maps.extras.xmlparsers.kml
  5. {
  6. import com.google.maps.extras.xmlparsers.ParsingTools;
  7. public class PolyStyle extends ColorStyle
  8. {
  9. private var _fill:Boolean;
  10. private var _outline:Boolean;
  11. public function PolyStyle(x:XMLList)
  12. {
  13. super(x);
  14. var fill:Number = ParsingTools.nanCheck(this.x.kml::fill);
  15. if (fill == 1) {
  16. this._fill = true;
  17. } else if (fill == 0) {
  18. this._fill = false;
  19. }
  20. var outline:Number = ParsingTools.nanCheck(this.x.kml::outline);
  21. if (outline == 1) {
  22. this._outline = true;
  23. } else if (outline == 0) {
  24. this._outline = false;
  25. }
  26. }
  27. public function get fill():Boolean{
  28. return this._fill;
  29. }
  30. public function get outline():Boolean{
  31. return this._outline;
  32. }
  33. }
  34. }