1  /*
     2   Copyright aswing.org, see the LICENCE.txt.
     3  */
     4   
     5  import org.aswing.border.Border;
     6  import org.aswing.border.EmptyBorder;
     7  import org.aswing.border.LineBorder;
     8  import org.aswing.Insets;
     9  import org.aswing.plaf.UIResource;
    10  import org.aswing.UIManager;
    11  
    12  /**
    13   * @author iiley
    14   */
    15  class org.aswing.plaf.basic.border.ProgressBarBorder extends LineBorder implements UIResource{
    16  	
    17  	private static var instance:Border;
    18  	/**
    19  	 * this make shared instance and construct when use.
    20  	 */	
    21  	public static function createInstance():Border{
    22  		if(instance == null){
    23  			instance = new ProgressBarBorder();
    24  		}
    25  		return instance;
    26  	}
    27  	
    28  	public function ProgressBarBorder() {
    29  		super(new EmptyBorder(null, new Insets(1,1,1,1)), UIManager.getColor("ProgressBar.foreground"));
    30  	}
    31  
    32  }
    33