1
4
5 import org.aswing.ASColor;
6 import org.aswing.Component;
7 import org.aswing.graphices.Graphics;
8 import org.aswing.Icon;
9 import org.aswing.plaf.UIResource;
10 import org.aswing.UIManager;
11
12
15 class org.aswing.plaf.basic.icon.FrameIcon implements Icon, UIResource {
16
17 private static var DEFAULT_ICON_WIDTH:Number = 13;
18
19 private var width:Number;
20 private var height:Number;
21
22 private var color:ASColor;
23
24
27 public function FrameIcon(width:Number){
28 this.width = width;
29 height = width;
30 color = UIManager.getColor("Frame.activeCaptionText");
31 }
32
33 public function getColor():ASColor{
34 return color;
35 }
36
37 public function getIconWidth() : Number {
38 return width;
39 }
40
41 public function getIconHeight() : Number {
42 return height;
43 }
44
45 public function paintIcon(com : Component, g : Graphics, x : Number, y : Number) : Void {
46 }
47
48 public function uninstallIcon(com : Component) : Void {
49 }
50 }
51