| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- package com.imt.intimamedia.vo
- {
- import mx.resources.ResourceManager;
-
- [RemoteClass(alias="com.imt.intimamedia.vo.DistanceVo")]
- [Bindable]
- public class DistanceVo
- {
- private var _id : int = 0;
- private var _value : Number;
- private var _type : String;
- private var _xFirstPoint : int = 0;
- private var _yFirstPoint : int = 0;
- private var _xLastPoint : int = 0;
- private var _yLastPoint : int = 0;
-
- public function get id () : int
- {
- return _id;
- }
-
- public function set id ( value : int ) : void
- {
- _id = value;
- }
-
- public function get value () : Number
- {
- return _value;
- }
-
- public function set value ( val : Number ) : void
- {
- _value = val;
- }
-
- public function get type () : String
- {
- return _type;
- }
-
- public function set type ( value : String ) : void
- {
- _type = value;
- }
-
- public function get xFirstPoint () : int
- {
- return _xFirstPoint;
- }
-
- public function set xFirstPoint ( value : int ) : void
- {
- _xFirstPoint = value;
- }
-
- public function get yFirstPoint () : int
- {
- return _yFirstPoint;
- }
-
- public function set yFirstPoint ( value : int ) : void
- {
- _yFirstPoint = value;
- }
-
- public function get xLastPoint () : int
- {
- return _xLastPoint;
- }
-
- public function set xLastPoint ( value : int ) : void
- {
- _xLastPoint = value;
- }
-
- public function get yLastPoint () : int
- {
- return _yLastPoint;
- }
-
- public function set yLastPoint ( value : int ) : void
- {
- _yLastPoint = value;
- }
-
- public function getTypeText() : String
- {
- var typeText : String = ResourceManager.getInstance().getString('labels', 'distance');
-
- switch (_type)
- {
- case 'T':
- typeText = ResourceManager.getInstance().getString('labels', 'thin');
- break;
- case 'D':
- typeText = ResourceManager.getInstance().getString('labels', 'diameter');
- break;
- }
-
- return typeText;
- }
- }
- }
|