blob: 528ee8d70996ce625d8c409e169d983d568e4798 [file] [log] [blame]
{ "type": "class",
"qname": "mx.graphics.Stroke",
"baseClassname": ""
,
"description": "The Stroke class defines the properties for a line. You can define a Stroke object in MXML, but you must attach that Stroke to another object for it to appear in your application. The following example defines two Stroke objects and then uses them in the horizontalAxisRenderer of a LineChart control: <pre>\\n ...\\n &lt;mx:Stroke id=&quot;ticks&quot; color=&quot;0xFF0000&quot; weight=&quot;1&quot;/&gt;\\n &lt;mx:Stroke id=&quot;mticks&quot; color=&quot;0x0000FF&quot; weight=&quot;1&quot;/&gt;\\n \\n &lt;mx:LineChart id=&quot;mychart&quot; dataProvider=&quot;{ndxa}&quot;&gt;\\n &lt;mx:horizontalAxisRenderer&gt;\\n &lt;mx:AxisRenderer placement=&quot;bottom&quot; canDropLabels=&quot;true&quot;&gt;\\n &lt;mx:tickStroke&gt;{ticks}&lt;/mx:tickStroke&gt;\\n &lt;mx:minorTickStroke&gt;{mticks}&lt;/mx:minorTickStroke&gt;\\n &lt;/mx:AxisRenderer&gt;\\n &lt;/mx:horizontalAxisRenderer&gt;\\n &lt;/LineChart&gt;\\n ...\\n </pre> <p>The <code>&lt;mx:Stroke&gt;</code> tag inherits all the tag attributes of its superclass, and adds the following tag attributes:</p> <pre>\\n &lt;mx:Stroke\\n <b>Properties</b>\\n alpha=&quot;1.0&quot;\\n caps=&quot;null|none|round|square&quot;\\n color=&quot;0x000000&quot;\\n joints=&quot;null|bevel|miter|round&quot;\\n miterLimit=&quot;1&quot;\\n pixelHinting=&quot;false|true&quot;\\n scaleMode=&quot;normal|none|horizontal|vertical&quot;\\n weight=&quot;1 (<i>in most cases</i>)&quot;\\n /&gt;\\n </pre>",
"tags": [
{ "tagName": "see",
"values": ["flash.display.Graphics"]},
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "mxml",
"values": []},
{ "tagName": "productversion",
"values": ["Royale 0.9.3"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"members": [
{ "type": "method",
"qname": "mx.graphics.Stroke",
"namespace": "",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Constructor. The default value is 0x000000 (black). The default value is 0. The default value is 1.0 (opaque). This value affects both the position of anchors of a curve and the line stroke size itself. The default value is false. that specifies which scale mode to use. Valid values are <code>LineScaleMode.HORIZONTAL</code>, <code>LineScaleMode.NONE</code>, <code>LineScaleMode.NORMAL</code>, and <code>LineScaleMode.VERTICAL</code>. This parameter is optional, with a default value of <code>LineScaleMode.NORMAL</code>. Valid values are <code>&quot;round&quot;</code>, <code>&quot;square&quot;</code>, and <code>&quot;none&quot;</code>. The default value is <code>null</code>. Valid values are <code>&quot;round&quot;</code>, <code>&quot;miter&quot;</code>, and <code>&quot;bevel&quot;</code>. The default value is <code>null</code>. Valid values range from 1 to 255. The default value is 1.",
"tags": [
{ "tagName": "param",
"values": ["color Specifies the line color.", "weight Specifies the line weight, in pixels.", "alpha Specifies the alpha value in the range 0.0 to 1.0.", "pixelHinting Specifies whether to hint strokes to full pixels.", "scaleMode A value from the LineScaleMode class", "caps Specifies the type of caps at the end of lines.", "joints Specifies the type of joint appearance used at angles.", "miterLimit Indicates the limit at which a miter is cut off."]},
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Royale 0.9.3"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "",
"params": [{ "name": "color", "type": "uint"},
{ "name": "weight", "type": "Number"},
{ "name": "alpha", "type": "Number"},
{ "name": "pixelHinting", "type": "Boolean"},
{ "name": "scaleMode", "type": "String"},
{ "name": "caps", "type": "String"},
{ "name": "joints", "type": "String"},
{ "name": "miterLimit", "type": "Number"}]}
,
{ "type": "method",
"qname": "apply",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"return": "void",
"params": [{ "name": "g", "type": "mx.display.Graphics"},
{ "name": "targetBounds", "type": "org.apache.royale.geom.Rectangle"},
{ "name": "targetOrigin", "type": "org.apache.royale.geom.Point"}]}
,
{ "type": "accessor",
"access": "read-write",
"return": "Number",
"qname": "weight",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {}},
{ "type": "accessor",
"access": "read-write",
"return": "Number",
"qname": "color",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {}}]
}