home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / qs / controls / fisheyeClasses / FisheyeAxis.as next >
Encoding:
Text File  |  2010-06-23  |  2.3 KB  |  89 lines

  1. package qs.controls.fisheyeClasses
  2. {
  3.    public class FisheyeAxis
  4.    {
  5.       private static const measuredValues:Array = ["measuredWidth","measuredHeight"];
  6.       
  7.       private static const minValues:Array = ["minWidth","minHeight"];
  8.       
  9.       private static const measuredMinValues:Array = ["measuredMinWidth","measuredMinHeight"];
  10.       
  11.       private static const explicitOrMeasuredValues:Array = ["eomWidth","eomHeight"];
  12.       
  13.       private static const unscaledValues:Array = ["unscaledWidth","unscaledHeight"];
  14.       
  15.       private static const mouseValues:Array = ["mouseX","mouseY"];
  16.       
  17.       private static const posValues:Array = ["x","y"];
  18.       
  19.       private static const transValues:Array = ["tx","ty"];
  20.       
  21.       private static const alignValues:Array = ["horizontalAlign","verticalAlign"];
  22.       
  23.       private var _directionIndex:int = 0;
  24.       
  25.       public function FisheyeAxis()
  26.       {
  27.          super();
  28.       }
  29.       
  30.       public function get EOM() : String
  31.       {
  32.          return explicitOrMeasuredValues[this._directionIndex];
  33.       }
  34.       
  35.       public function get mouse() : String
  36.       {
  37.          return mouseValues[this._directionIndex];
  38.       }
  39.       
  40.       public function get measured() : String
  41.       {
  42.          return measuredValues[this._directionIndex];
  43.       }
  44.       
  45.       public function get trans() : String
  46.       {
  47.          return transValues[this._directionIndex];
  48.       }
  49.       
  50.       public function get measuredMin() : String
  51.       {
  52.          return measuredMinValues[this._directionIndex];
  53.       }
  54.       
  55.       public function get min() : String
  56.       {
  57.          return minValues[this._directionIndex];
  58.       }
  59.       
  60.       public function get unscaled() : String
  61.       {
  62.          return unscaledValues[this._directionIndex];
  63.       }
  64.       
  65.       public function get pos() : String
  66.       {
  67.          return posValues[this._directionIndex];
  68.       }
  69.       
  70.       public function get align() : String
  71.       {
  72.          return alignValues[this._directionIndex];
  73.       }
  74.       
  75.       public function set direction(param1:String) : void
  76.       {
  77.          if(param1 == "vertical")
  78.          {
  79.             this._directionIndex = 1;
  80.          }
  81.          else
  82.          {
  83.             this._directionIndex = 0;
  84.          }
  85.       }
  86.    }
  87. }
  88.  
  89.