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

http://gmaps-utility-library-flash.googlecode.com/ · ActionScript · 48 lines · 37 code · 8 blank · 3 comment · 4 complexity · fff77b6e619877435be7f68ed4ccd992 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 IconStyle extends ColorStyle
  8. {
  9. private var _scale:Number;
  10. private var _heading:Number;
  11. private var _icon:com.google.maps.extras.xmlparsers.kml.Icon;
  12. private var _hotSpot:com.google.maps.extras.xmlparsers.kml.HotSpot;
  13. public function IconStyle(x:XMLList)
  14. {
  15. super(x);
  16. this._scale = ParsingTools.nanCheck(this.x.kml::scale);
  17. this._heading = ParsingTools.nanCheck(this.x.kml::heading);
  18. if (ParsingTools.nullCheck(this.x.kml::Icon) != null) {
  19. this._icon = new com.google.maps.extras.xmlparsers.kml.Icon(this.x.kml::Icon);
  20. }
  21. if (ParsingTools.nullCheck(this.x.kml::hotSpot) != null) {
  22. this._hotSpot = new com.google.maps.extras.xmlparsers.kml.HotSpot(this.x.kml::hotSpot);
  23. }
  24. }
  25. public function get scale():Number
  26. {
  27. return this._scale;
  28. }
  29. public function get heading():Number
  30. {
  31. return this._heading;
  32. }
  33. public function get icon():com.google.maps.extras.xmlparsers.kml.Icon{
  34. return this._icon;
  35. }
  36. public function get hotSpot():com.google.maps.extras.xmlparsers.kml.HotSpot{
  37. return this._hotSpot;
  38. }
  39. }
  40. }