| Paquete | mx.graphics |
| Clase | public class Stroke |
| Herencia | Stroke SolidColorStroke EventDispatcher Object |
Desfasado desde 4.0: Utilice SolidColorStroke
| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
...
<mx:Stroke id="ticks" color="0xFF0000" weight="1"/>
<mx:Stroke id="mticks" color="0x0000FF" weight="1"/>
<mx:LineChart id="mychart" dataProvider="{ndxa}">
<mx:horizontalAxisRenderer>
<mx:AxisRenderer placement="bottom" canDropLabels="true">
<mx:tickStroke>{ticks}</mx:tickStroke>
<mx:minorTickStroke>{mticks}</mx:minorTickStroke>
</mx:AxisRenderer>
</mx:horizontalAxisRenderer>
</LineChart>
...
Sintaxis MXML
Ocultar sintaxis MXMLThe <mx:Stroke> tag inherits all the tag attributes
of its superclass, and adds the following tag attributes:
<mx:Stroke
Properties
alpha="1.0"
caps="null|none|round|square"
color="0x000000"
joints="null|bevel|miter|round"
miterLimit="1"
pixelHinting="false|true"
scaleMode="normal|none|horizontal|vertical"
weight="1 (in most cases)"
/>
Más ejemplos
Elementos de API relacionados
Propiedades públicas
Métodos públicos
| Método | Definido por | ||
|---|---|---|---|
Stroke(color:uint = 0x000000, weight:Number = 0, alpha:Number = 1.0, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = null, joints:String = null, miterLimit:Number = 1)
Constructor. | Stroke | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | EventDispatcher | |
![]() |
Applies the properties to the specified Graphics object. | SolidColorStroke | |
![]() |
Generates a GraphicsStroke object representing
this stroke. | SolidColorStroke | |
![]() |
Distribuye un evento en el flujo del evento. | EventDispatcher | |
![]() |
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | EventDispatcher | |
![]() |
Indica si un objeto tiene definida una propiedad especificada. | Object | |
![]() |
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | |
![]() |
Indica si existe la propiedad especificada y si es enumerable. | Object | |
![]() |
Elimina un detector del objeto EventDispatcher. | EventDispatcher | |
![]() |
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | |
![]() |
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | |
![]() |
Devuelve la representación de cadena del objeto especificado. | Object | |
![]() |
Devuelve el valor simple del objeto especificado. | Object | |
![]() |
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | EventDispatcher | |
Eventos
Información sobre constructores
Stroke | () | Información sobre |
public function Stroke(color:uint = 0x000000, weight:Number = 0, alpha:Number = 1.0, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = null, joints:String = null, miterLimit:Number = 1)| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Constructor.
Parámetroscolor:uint (default = 0x000000) — Specifies the line color.
The default value is 0x000000 (black).
| |
weight:Number (default = 0) — Specifies the line weight, in pixels.
The default value is 0.
| |
alpha:Number (default = 1.0) — Specifies the alpha value in the range 0.0 to 1.0.
The default value is 1.0 (opaque).
| |
pixelHinting:Boolean (default = false) — Specifies whether to hint strokes to full pixels.
This value affects both the position of anchors of a curve
and the line stroke size itself.
The default value is false.
| |
scaleMode:String (default = "normal") — A value from the LineScaleMode class
that specifies which scale mode to use.
Valid values are LineScaleMode.HORIZONTAL,
LineScaleMode.NONE, LineScaleMode.NORMAL,
and LineScaleMode.VERTICAL.
This parameter is optional,
with a default value of LineScaleMode.NORMAL.
| |
caps:String (default = null) — Specifies the type of caps at the end of lines.
Valid values are "round", "square",
and "none".
The default value is null.
| |
joints:String (default = null) — Specifies the type of joint appearance used at angles.
Valid values are "round", "miter",
and "bevel".
The default value is null.
| |
miterLimit:Number (default = 1) — Indicates the limit at which a miter is cut off.
Valid values range from 1 to 255.
The default value is 1.
|
Tue Jun 12 2018, 02:12 PM Z
Mostrar sintaxis MXML