Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
CSSBorderUtils

Package | org.apache.flex.utils
Class | public class CSSBorderUtils
Inheritance | CSSBorderUtils Object

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The CSSBorderUtils class is shared code for getting the styles regarding borders and drawing one.

Public Methods

| Method | Defined By
--- | --- | ---
|  | draw(g:Graphics, width:Number, height:Number, host:DisplayObject, state:String = null, drawBackground:Boolean = false, clear:Boolean = true):void [static] Get the related styles and draw a border | CSSBorderUtils

Method Detail

draw | () | method

`public static function draw(g:Graphics, width:Number, height:Number, host:DisplayObject, state:String = null, drawBackground:Boolean = false, clear:Boolean = true):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Get the related styles and draw a border

Parameters

| `g:Graphics` — The flash.display.Graphics to draw into.
| `width:Number` — The width.
| `height:Number` — The height.
| `host:DisplayObject` — The object to pull styles from.
| `state:String` (default = `null`)`` — The pseudo-state, if any.
| `drawBackground:Boolean` (default = `false`)`` — True if area inside border should be filled with backgroundColor.
| `clear:Boolean` (default = `true`)`` — True if graphics.clear() should be called.

Mon Sep 5 2016, 07:19 AM -07:00