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.FrameNormalIcon extends FrameIcon {
    14  		
    15  	/**
    16  	 * @param width the width of the icon square.
    17  	 */
    18  	public function FrameNormalIcon(){
    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/2;
    24  		var borderBrush:SolidBrush = new SolidBrush(getColor());
    25  		g.beginFill(borderBrush);
    26  		g.rectangle(x+w/2+1, y+w/4+0.5, w, w);
    27  		g.rectangle(x+w/2+0.5+1, y+w/4+1.5+0.5, w-1, w-2);
    28  		g.endFill();
    29  		g.beginFill(borderBrush);
    30  		g.rectangle(x+w/4, y+w/2+1.5, w, w);
    31  		g.rectangle(x+w/4+0.5, y+w/2+1.5+1.5, w-1, w-2);
    32  		g.endFill();	
    33  	}
    34  }
    35