1  /*
     2   Copyright aswing.org, see the LICENCE.txt.
     3  */
     4   
     5  /**
     6   * @author iiley
     7   */
     8  class org.aswing.ASTextExtent {
     9  	private var width:Number;
    10  	private var height:Number;
    11  	private var ascent:Number;
    12  	private var descent:Number;
    13  	private var textFieldWidth:Number;
    14  	private var textFieldHeight:Number;
    15  	
    16  	public function ASTextExtent(width:Number, height:Number, ascent:Number, descent:Number,
    17  	 							textFieldWidth:Number, textFieldHeight:Number){
    18  	 	this.width = width;
    19  	 	this.height = height;
    20  	 	this.ascent = ascent;
    21  	 	this.descent = descent;
    22  	 	this.textFieldWidth = textFieldWidth;
    23  	 	this.textFieldHeight = textFieldHeight;
    24  	}
    25  	
    26  	public function getWidth():Number{
    27  		return width;
    28  	}
    29  	public function getHeight():Number{
    30  		return height;
    31  	}
    32  	public function getAscent():Number{
    33  		return ascent;
    34  	}
    35  	public function getDescent():Number{
    36  		return descent;
    37  	}
    38  	public function getTextFieldWidth():Number{
    39  		return textFieldWidth;
    40  	}
    41  	public function getTextFieldHeight():Number{
    42  		return textFieldHeight;
    43  	}
    44  	
    45  	public function toString():String{
    46  		var str:String = "ASTextExtent["
    47  			+ "width:" + width
    48  			+ ", height:" + height
    49  			+ ", ascent:" + ascent
    50  			+ ", descent:" + descent
    51  			+ ", textFieldWidth:" + textFieldWidth
    52  			+ ", textFieldHeight:" + textFieldHeight
    53  			+ "]";
    54  		return str;
    55  	}
    56  }
    57