Sha256: bab61e00785c5e1eb38f1747fe553c2f6688e64f6691dbf760f8d0f5080288e8

Contents?: true

Size: 1.26 KB

Versions: 17

Compression:

Stored size: 1.26 KB

Contents

package fx.chart.ui {
  
  import flash.display.*;
  import mx.core.*;
  import fx.chart.*;
  import fx.chart.ctrl.*;
  import fx.chart.model.*;
  import fx.util.*;
  import flash.text.*;
  
  /**
   * チャートUIの抽象基底クラス
   */
  public class AbstractChartUI {
    
    /**
     * コンストラクタ
     */
    public function AbstractChartUI(model:Model, 
        controller:Controller, rc:RenderingContext) {
      this.model = model;
      this.ctrl = controller;
      this.rc = rc;
    }
    
    /**
     * モデル
     */
    protected var model:Model;
    
    /**
     * コントローラー
     */
    protected var ctrl:Controller;
  
    /**
     * 描画コンテキスト
     */
    protected var rc:RenderingContext;
    
    /**
     * テキストを作る。
     */
    protected function createText( str:String, parent:Sprite, 
      format:TextFormat, x:int, y:int, width:int=100 ):TextField {
      var text:TextField = new TextField();
      text.selectable = false;
      text.text = str;
      text.width = width;
      text.setTextFormat(format);
      text.defaultTextFormat = format;
      text.y = y;
      text.x = x;
      parent.addChild(text);
      return text;
    }
  }

}

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
unageanu-jiji-0.1.0 swf/chart/fx/chart/ui/AbstractChartUI.as
unageanu-jiji-1.0.0 swf/chart/fx/chart/ui/AbstractChartUI.as
unageanu-jiji-1.0.1 swf/chart/fx/chart/ui/AbstractChartUI.as
unageanu-jiji-1.0.2 swf/chart/fx/chart/ui/AbstractChartUI.as
unageanu-jiji-1.0.3 swf/chart/fx/chart/ui/AbstractChartUI.as
unageanu-jiji-1.1.0 swf/chart/fx/chart/ui/AbstractChartUI.as
unageanu-jiji-1.1.1 swf/chart/fx/chart/ui/AbstractChartUI.as
unageanu-jiji-1.1.2 swf/chart/fx/chart/ui/AbstractChartUI.as
unageanu-jiji-1.1.3 swf/chart/fx/chart/ui/AbstractChartUI.as
unageanu-jiji-1.1.4 swf/chart/fx/chart/ui/AbstractChartUI.as
unageanu-jiji-1.2.1 swf/chart/fx/chart/ui/AbstractChartUI.as
unageanu-jiji-1.2.3 swf/chart/fx/chart/ui/AbstractChartUI.as
unageanu-jiji-1.2.4 swf/chart/fx/chart/ui/AbstractChartUI.as
jiji-1.2.8 swf/chart/fx/chart/ui/AbstractChartUI.as
jiji-1.2.7 swf/chart/fx/chart/ui/AbstractChartUI.as
jiji-1.2.6 swf/chart/fx/chart/ui/AbstractChartUI.as
jiji-1.2.5 swf/chart/fx/chart/ui/AbstractChartUI.as