Packageorg.aswing.colorchooser
Classpublic class ColorRectIcon
ImplementsIcon



Public Methods
 MethodDefined by
  
ColorRectIcon(width:int, height:int, color:ASColor)
ColorRectIcon
  
ColorRectIcon
  
getDisplay(c:Component):DisplayObject
ColorRectIcon
  
Return the icon's height.
ColorRectIcon
  
Return the icon's width.
ColorRectIcon
  
setColor(color:ASColor):void
ColorRectIcon
  
updateIcon(com:Component, g:Graphics2D, x:int, y:int):void
ColorRectIcon
Constructor detail
ColorRectIcon()constructor
public function ColorRectIcon(width:int, height:int, color:ASColor)Parameters
width:int
 
height:int
 
color:ASColor
Method detail
getColor()method
public function getColor():ASColor

Returns
ASColor
getDisplay()method 
public function getDisplay(c:Component):DisplayObjectParameters
c:Component

Returns
DisplayObject
getIconHeight()method 
public function getIconHeight(c:Component):int

Return the icon's height.

Parameters
c:Component

Returns
int
getIconWidth()method 
public function getIconWidth(c:Component):int

Return the icon's width.

Parameters
c:Component

Returns
int
setColor()method 
public function setColor(color:ASColor):voidParameters
color:ASColor
updateIcon()method 
public function updateIcon(com:Component, g:Graphics2D, x:int, y:int):voidParameters
com:Component
 
g:Graphics2D
 
x:int
 
y:int