Show:

File: ia\events\Event.js

  1. /**
  2. * An <code>ia.Event</code> object.
  3. *
  4. * @author J Clare
  5. * @class ia.Event
  6. * @constructor
  7. * @param eventType The event type.
  8. * @param obj The object associated with the event.
  9. */
  10. ia.Event = function(eventType, obj)
  11. {
  12. this.type = eventType;
  13. this.object = obj;
  14. }
  15.  
  16. /**
  17. * The type of event.
  18. *
  19. * @property eventType
  20. * @type String
  21. */
  22. ia.Event.prototype.type;
  23.  
  24. /**
  25. * The object associated with the event.
  26. *
  27. * @property obj
  28. * @type Object
  29. */
  30. ia.Event.prototype.object;
  31.  
  32. /**
  33. * Indicates that the map is ready to be rendered.
  34. *
  35. * @static
  36. * @final
  37. * @property MAP_READY
  38. * @type String
  39. * @default "mapReady"
  40. */
  41. ia.Event.MAP_READY = "mapReady";
  42.  
  43. /**
  44. * Indicates that the map has resized.
  45. *
  46. * @static
  47. * @final
  48. * @property MAP_RESIZE
  49. * @type String
  50. * @default "mapResize"
  51. */
  52. ia.Event.MAP_RESIZE = "mapResize";
  53.  
  54. /**
  55. * Indicates that the layer is ready to be rendered.
  56. *
  57. * @static
  58. * @final
  59. * @property LAYER_READY
  60. * @type String
  61. * @default "layerReady"
  62. */
  63. ia.Event.LAYER_READY = "layerReady";
  64.  
  65. /**
  66. * Indicates that the layer changed.
  67. *
  68. * @static
  69. * @final
  70. * @property LAYER_VISIBLE_CHANGED
  71. * @type String
  72. * @default "layerVisibleChanged"
  73. */
  74. ia.Event.LAYER_VISIBLE_CHANGED = "layerVisibleChanged";
  75.  
  76. /**
  77. * Dispatched by a theme when it has changed.
  78. *
  79. * @static
  80. * @final
  81. * @property THEME_CHANGED
  82. * @type String
  83. * @default "themeChanged"
  84. */
  85. ia.Event.THEME_CHANGED = "themeChanged";
  86.  
  87. /**
  88. * Dispatched by a data group when its thematic changes.
  89. *
  90. * @static
  91. * @final
  92. * @property THEMATIC_CHANGED
  93. * @type String
  94. * @default "thematicChanged"
  95. */
  96. ia.Event.THEMATIC_CHANGED = "thematicChanged";
  97.  
  98. /**
  99. * Indicates that the user clicked the mouse button over a canvas but not over an item.
  100. *
  101. * @static
  102. * @final
  103. * @property CLEAR_SELECTION
  104. * @type String
  105. * @default "clearSelection"
  106. */
  107. ia.Event.CLEAR_SELECTION = "clearSelection";