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; } } }