1  /*
     2   Copyright aswing.org, see the LICENCE.txt.
     3  */
     4   
     5  import org.aswing.Component;
     6  import org.aswing.graphices.Graphics;
     7  import org.aswing.graphices.SolidBrush;
     8  import org.aswing.plaf.basic.icon.FrameIcon;
     9  
    10  /**
    11   * @author iiley
    12   */
    13  class org.aswing.plaf.basic.icon.FrameMaximizeIcon extends FrameIcon {
    14  
    15  	/**
    16  	 * @param width the width of the icon square.
    17  	 */
    18  	public function FrameMaximizeIcon(){
    19  		super(DEFAULT_ICON_WIDTH);
    20  	}	
    21  
    22  	public function paintIcon(com : Component, g : Graphics, x : Number, y : Number) : Void {
    23  		var w:Number = width/1.5;
    24  		var borderBrush:SolidBrush = new SolidBrush(getColor());
    25  		g.beginFill(borderBrush);
    26  		g.rectangle(x+w/4, y+w/4, w, w);
    27  		g.rectangle(x+w/4+1, y+w/4+2, w-2, w-3);
    28  		g.endFill();	
    29  	}
    30  
    31  }
    32