DistanceVo.as 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. package com.imt.intimamedia.vo
  2. {
  3. import mx.resources.ResourceManager;
  4. [RemoteClass(alias="com.imt.intimamedia.vo.DistanceVo")]
  5. [Bindable]
  6. public class DistanceVo
  7. {
  8. private var _id : int = 0;
  9. private var _value : Number;
  10. private var _type : String;
  11. private var _xFirstPoint : int = 0;
  12. private var _yFirstPoint : int = 0;
  13. private var _xLastPoint : int = 0;
  14. private var _yLastPoint : int = 0;
  15. public function get id () : int
  16. {
  17. return _id;
  18. }
  19. public function set id ( value : int ) : void
  20. {
  21. _id = value;
  22. }
  23. public function get value () : Number
  24. {
  25. return _value;
  26. }
  27. public function set value ( val : Number ) : void
  28. {
  29. _value = val;
  30. }
  31. public function get type () : String
  32. {
  33. return _type;
  34. }
  35. public function set type ( value : String ) : void
  36. {
  37. _type = value;
  38. }
  39. public function get xFirstPoint () : int
  40. {
  41. return _xFirstPoint;
  42. }
  43. public function set xFirstPoint ( value : int ) : void
  44. {
  45. _xFirstPoint = value;
  46. }
  47. public function get yFirstPoint () : int
  48. {
  49. return _yFirstPoint;
  50. }
  51. public function set yFirstPoint ( value : int ) : void
  52. {
  53. _yFirstPoint = value;
  54. }
  55. public function get xLastPoint () : int
  56. {
  57. return _xLastPoint;
  58. }
  59. public function set xLastPoint ( value : int ) : void
  60. {
  61. _xLastPoint = value;
  62. }
  63. public function get yLastPoint () : int
  64. {
  65. return _yLastPoint;
  66. }
  67. public function set yLastPoint ( value : int ) : void
  68. {
  69. _yLastPoint = value;
  70. }
  71. public function getTypeText() : String
  72. {
  73. var typeText : String = ResourceManager.getInstance().getString('labels', 'distance');
  74. switch (_type)
  75. {
  76. case 'T':
  77. typeText = ResourceManager.getInstance().getString('labels', 'thin');
  78. break;
  79. case 'D':
  80. typeText = ResourceManager.getInstance().getString('labels', 'diameter');
  81. break;
  82. }
  83. return typeText;
  84. }
  85. }
  86. }