Packageorg.flashapi.swing.plaf.spas
Classpublic class SpasPushButtonUI
InheritanceSpasPushButtonUI Inheritance SpasIconColorsUI Inheritance SpasUI Inheritance Object
Implements ButtonUI

Language Version : ActionScript 3.0
Product Version : SPAS 3.0
Runtime Versions : AIR 1.0, Flash Player Player - 9

The SpasPushButtonUI class is the SPAS 3.0 default look and feel for PushButton instances.

See also

org.flashapi.swing.PushButton
org.flashapi.swing.plaf.ButtonUI


Public Methods
 MethodDefined By
  
SpasPushButtonUI
 Inherited
Determines the "raise" effect for an object that implements a lookandfeel.
SpasUI
 Inherited
Removes the "emphasize" effect for an object that implements a lookandfeel.
SpasUI
  
This method is used by the look and feel to set the color of the icon when the UIObject.active property is set to true.
SpasPushButtonUI
 Inherited
The method used by the LookAndFeel instance to draw the back face of an object.
SpasUI
  
This method is used by the look and feel to draw the button face when the Button.dotted property is set to true.
SpasPushButtonUI
 Inherited
Renders the "emphasize" effect for an object that implements a lookandfeel.
SpasUI
  
This method is used by the look and feel to set the color of the icon when the UIObject.active property is set to false.
SpasPushButtonUI
  
This method is used by the look and feel to draw the button face when the UIObject.active property is set to false.
SpasPushButtonUI
  
This method is used by the look and feel to draw the button face when the mouse is not over it.
SpasPushButtonUI
  
This method is used by the look and feel to draw the button face when the mouse is over it.
SpasPushButtonUI
  
This method is used by the look and feel to draw the button face when the mouse is over it and the mouse left button is clicked.
SpasPushButtonUI
  
This method is used by the look and feel to draw the button face when the Button.selected property is set to true.
SpasPushButtonUI
  
Returns the default border color of the look and feel.
SpasPushButtonUI
  
Returns the button bottom offset distance. The bottom offset distance defines the distance between the bottom edge of the button and the group composed by the text and the icon.
SpasPushButtonUI
  
getColor():uint
Returns the default color of the look and feel.
SpasPushButtonUI
  
Returns a reference to the FontFormat used by the look and feel when the the button is disabled.
SpasPushButtonUI
  
Returns a reference to the FontFormat used by the look and feel when the mouse is over the button and the mouse left button is clicked.
SpasPushButtonUI
 Inherited
getFocusFilter():GlowFilter
Returns a reference to the effect filter used by this look and feel to render the emphasized state effect or when the UIObject has the focus.
SpasUI
 Inherited
getGlowFilter():GlowFilter
Returns a reference to the GlowFilter used by this look and feel to render the "glow" effect.
SpasUI
  
Returns an integer that represents the grey tint color applied to the button text when the Button.greyTint property is set to true.
SpasPushButtonUI
  
getIconDelay():Number
Returns a number that represents the gap between the icon and the text displayed on the button face.
SpasPushButtonUI
 Inherited
SpasIconColorsUI
  
getLeftOffset():Number
Returns the button left offset distance. The left offset distance defines the distance between the left edge of the button and the group composed by the text and the icon.
SpasPushButtonUI
 Inherited
SpasIconColorsUI
  
Returns a reference to the FontFormat used by the look and feel when the mouse is over the button.
SpasPushButtonUI
 Inherited
SpasIconColorsUI
 Inherited
SpasIconColorsUI
  
Returns the button right offset distance. The right offset distance defines the distance between the right edge of the button and the group composed by the text and the icon.
SpasPushButtonUI
  
Returns a reference to the FontFormat used by the look and feel when the button selected property is set to true.
SpasPushButtonUI
 Inherited
SpasIconColorsUI
 Inherited
getShadowFilter():DropShadowFilter
Returns a reference to the DropShadowFilter used by this look and feel to render the "shadow" effect.
SpasUI
  
getTopOffset():Number
Returns the button top offset distance. The top offset distance defines the distance between the top edge of the button and the group composed by the text and the icon.
SpasPushButtonUI
  
Returns a reference to the FontFormat used by the look and feel when the mouse is not over the button.
SpasPushButtonUI
 Inherited
onChange():void
The onChange() method is called by objects before they change their lookandfeel ; it performs operations that disable specific actions created by the current lookandfeel.
SpasUI
 Inherited
Disables the "raise" effect for an object that use a lookandfeel.
SpasUI
Public Constants
 ConstantDefined By
 InheritedDEFAULT_BACKGROUND_COLOR : uint = 0xFFFFFF
[static] A constant integer that defines the default background color value.
SpasUI
 InheritedDEFAULT_BORDER_COLOR : uint = 0x777777
[static] A constant string that defines the default color color value.
SpasUI
 InheritedDEFAULT_BUTTON_FONT_COLOR : uint = 0xFFFFFF
[static] A constant string that defines the default font color value for button objects.
SpasUI
 InheritedDEFAULT_COLOR : uint = 0xC0C0C0
[static] A constant integer that defines the default color value for the SPAS 3.0 default look and feel.
SpasUI
 InheritedDEFAULT_DARK_COLOR : uint = 0x333333
[static] A constant integer that defines the default dark color value.
SpasUI
 InheritedDEFAULT_FONT_COLOR : uint = 0x333333
[static] A constant integer that defines the default color value.
SpasUI
 InheritedDEFAULT_FONT_FACE : String = Arial
[static] A constant string that defines the default font face value.
SpasUI
 InheritedDEFAULT_FONT_SIZE : uint = 12
[static] A constant integer that defines the default size value.
SpasUI
 InheritedDEFAULT_LETTER_SPACING : Number = .2
[static] A constant string that defines the default font letter spacing value.
SpasUI
Constructor Detail
SpasPushButtonUI()Constructor
public function SpasPushButtonUI(dto:LafDTO)

Parameters
dto:LafDTO — A reference to the LafDTO object that instantiates this look and feel.
Method Detail
drawActiveIcon()method
public function drawActiveIcon():void

This method is used by the look and feel to set the color of the icon when the UIObject.active property is set to true.

drawDottedLine()method 
public function drawDottedLine():void

This method is used by the look and feel to draw the button face when the Button.dotted property is set to true.

drawInactiveIcon()method 
public function drawInactiveIcon():void

This method is used by the look and feel to set the color of the icon when the UIObject.active property is set to false.

drawInactiveState()method 
public function drawInactiveState():void

This method is used by the look and feel to draw the button face when the UIObject.active property is set to false.

drawOutState()method 
public function drawOutState():void

This method is used by the look and feel to draw the button face when the mouse is not over it.

drawOverState()method 
public function drawOverState():void

This method is used by the look and feel to draw the button face when the mouse is over it.

drawPressedState()method 
public function drawPressedState():void

This method is used by the look and feel to draw the button face when the mouse is over it and the mouse left button is clicked.

drawSelectedState()method 
public function drawSelectedState():void

This method is used by the look and feel to draw the button face when the Button.selected property is set to true.

getBorderColor()method 
public function getBorderColor():uint

Returns the default border color of the look and feel.

Returns
uint — The default border color of this look and feel.
getBottomOffset()method 
public function getBottomOffset():Number

Returns the button bottom offset distance. The bottom offset distance defines the distance between the bottom edge of the button and the group composed by the text and the icon.

Returns
Number — The button bottom offset distance.
getColor()method 
public function getColor():uint

Returns the default color of the look and feel.

Returns
uint — The default color of this look and feel.
getDisabledFontFormat()method 
public function getDisabledFontFormat():FontFormat

Returns a reference to the FontFormat used by the look and feel when the the button is disabled.

Returns
FontFormat — The "disabled" state FontFormat used by the look and feel.
getDownFontFormat()method 
public function getDownFontFormat():FontFormat

Returns a reference to the FontFormat used by the look and feel when the mouse is over the button and the mouse left button is clicked.

Returns
FontFormat — The "down" state FontFormat used by the look and feel.
getGrayTintColor()method 
public function getGrayTintColor():uint

Returns an integer that represents the grey tint color applied to the button text when the Button.greyTint property is set to true.

Returns
uint — The value for the button grey tint color.
getIconDelay()method 
public function getIconDelay():Number

Returns a number that represents the gap between the icon and the text displayed on the button face.

Returns
Number — The gap between the icon and the text displayed on the button face.
getLeftOffset()method 
public function getLeftOffset():Number

Returns the button left offset distance. The left offset distance defines the distance between the left edge of the button and the group composed by the text and the icon.

Returns
Number — The button left offset distance.
getOverFontFormat()method 
public function getOverFontFormat():FontFormat

Returns a reference to the FontFormat used by the look and feel when the mouse is over the button.

Returns
FontFormat — The "over" state FontFormat used by the look and feel.
getRightOffset()method 
public function getRightOffset():Number

Returns the button right offset distance. The right offset distance defines the distance between the right edge of the button and the group composed by the text and the icon.

Returns
Number — The button right offset distance.
getSelectedFontFormat()method 
public function getSelectedFontFormat():FontFormat

Returns a reference to the FontFormat used by the look and feel when the button selected property is set to true.

Returns
FontFormat — The "selected" state FontFormat used by the look and feel.
getTopOffset()method 
public function getTopOffset():Number

Returns the button top offset distance. The top offset distance defines the distance between the top edge of the button and the group composed by the text and the icon.

Returns
Number — The button top offset distance.
getUpFontFormat()method 
public function getUpFontFormat():FontFormat

Returns a reference to the FontFormat used by the look and feel when the mouse is not over the button.

Returns
FontFormat — The "up" state FontFormat used by the look and feel.