home *** CD-ROM | disk | FTP | other *** search
- package qs.controls.fisheyeClasses
- {
- public class FisheyeAxis
- {
- private static const measuredValues:Array = ["measuredWidth","measuredHeight"];
-
- private static const minValues:Array = ["minWidth","minHeight"];
-
- private static const measuredMinValues:Array = ["measuredMinWidth","measuredMinHeight"];
-
- private static const explicitOrMeasuredValues:Array = ["eomWidth","eomHeight"];
-
- private static const unscaledValues:Array = ["unscaledWidth","unscaledHeight"];
-
- private static const mouseValues:Array = ["mouseX","mouseY"];
-
- private static const posValues:Array = ["x","y"];
-
- private static const transValues:Array = ["tx","ty"];
-
- private static const alignValues:Array = ["horizontalAlign","verticalAlign"];
-
- private var _directionIndex:int = 0;
-
- public function FisheyeAxis()
- {
- super();
- }
-
- public function get EOM() : String
- {
- return explicitOrMeasuredValues[this._directionIndex];
- }
-
- public function get mouse() : String
- {
- return mouseValues[this._directionIndex];
- }
-
- public function get measured() : String
- {
- return measuredValues[this._directionIndex];
- }
-
- public function get trans() : String
- {
- return transValues[this._directionIndex];
- }
-
- public function get measuredMin() : String
- {
- return measuredMinValues[this._directionIndex];
- }
-
- public function get min() : String
- {
- return minValues[this._directionIndex];
- }
-
- public function get unscaled() : String
- {
- return unscaledValues[this._directionIndex];
- }
-
- public function get pos() : String
- {
- return posValues[this._directionIndex];
- }
-
- public function get align() : String
- {
- return alignValues[this._directionIndex];
- }
-
- public function set direction(param1:String) : void
- {
- if(param1 == "vertical")
- {
- this._directionIndex = 1;
- }
- else
- {
- this._directionIndex = 0;
- }
- }
- }
- }
-
-