An encapsulation of code generation for the style of a graphical stroke.
| StyleCodeGenerator | An encapsulation of code generation for the style of a graphical stroke. |
| Code generation | |
| generateStyleCode | Generates AS3 code for a line style. |
| generateFillCode | Generates AS3 code for a solid or gradient fill style. |
| generateBoxCode | Generates AS3 code for a gradient box method call. |
| defaultsAfterArg | Find and return the index after the last line style argument that is not a default lineStyle value. |
public static function generateFillCode( style: StrokeStyle, boxName: String ):String
Generates AS3 code for a solid or gradient fill style. Script size is reduced by using default parameters.
| style | graphics style object |
| boxName | name of gradient box for a gradient fill |
AS3 code snippet string
Generates AS3 code for a line style.
public static function generateStyleCode( style: StrokeStyle ):String
Generates AS3 code for a solid or gradient fill style.
public static function generateFillCode( style: StrokeStyle, boxName: String ):String
Generates AS3 code for a gradient box method call.
public static function generateBoxCode( style: StrokeStyle ):String
Find and return the index after the last line style argument that is not a default lineStyle value.
private static function defaultsAfterArg( style: StrokeStyle ):int