| Package | com.yworks.graph.drawing |
| Interface | public interface ICSSLabelStyle extends ILabelStyle, IVisualStyle, ICloneable |
| Implementors | CSSLabelStyle |
CSSLabelStyleRenderer
to describe a basic label style which can be styled via CSS sheets.
The following style properties determine the label's border and background
| CSS property | ActionScript property | Usage and supported values |
| background-color | backgroundColor | The color of the label box's background. Only hexadecimal color values are supported. Named colors (such as blue) are not supported. Colors are written in the following format: #FF0000. If this property is omitted, no background is drawn. |
| background-alpha | backgroundAlpha | Alpha of the background. If the background-color property is not specified, this property is ignored. |
| border-color | borderColor | The color of the label box's border. Only hexadecimal color values are supported. Named colors (such as blue) are not supported. Colors are written in the following format: #FF0000. If this property is omitted, no border is drawn. |
styleName
property.
| Property | Defined By | ||
|---|---|---|---|
| backgroundFill : IFill [read-only]
Gets the fill to use for the background box of the label or null
| ICSSLabelStyle | ||
| backgroundStroke : IStroke [read-only]
Gets the pen to use for the background box of the label or null
| ICSSLabelStyle | ||
| clipText : Boolean [read-only]
Whether text should be clipped. | ICSSLabelStyle | ||
| styleName : String [read-only]
The style class which is used by default. | ICSSLabelStyle | ||
![]() | styleRenderer : IStyleRenderer [read-only]
Gets the renderer implementation that has been supplied to
this instance upon creation. | IVisualStyle | |
| styleSheet : StyleSheet [read-only]
The style sheet. | ICSSLabelStyle | ||
| styleSheetUrl : String [read-only]
The URL to load the style sheet from. | ICSSLabelStyle | ||
| backgroundFill | property |
backgroundFill:IFill [read-only]
Gets the fill to use for the background box of the label or null
public function get backgroundFill():IFill| backgroundStroke | property |
backgroundStroke:IStroke [read-only]
Gets the pen to use for the background box of the label or null
public function get backgroundStroke():IStroke| clipText | property |
clipText:Boolean [read-only] Whether text should be clipped.
public function get clipText():Boolean| styleName | property |
styleName:String [read-only] The style class which is used by default.
The styles background-color, background-alpha,
border-color and clip-text will be searched in this class.
The style name has to be set as declared, i.e. with a starting period (".") if it is declared as a class selector.
The default value is "CSSLabelStyle".
public function get styleName():String| styleSheet | property |
styleSheet:StyleSheet [read-only] The style sheet.
public function get styleSheet():StyleSheet| styleSheetUrl | property |
styleSheetUrl:String [read-only] The URL to load the style sheet from.
public function get styleSheetUrl():String