Packagecom.yworks.graph.drawing
Interfacepublic interface ICSSLabelStyle extends ILabelStyle, IVisualStyle, ICloneable
Implementors CSSLabelStyle

The interface used by 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-colorbackgroundColorThe 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-alphabackgroundAlphaAlpha of the background. If the background-color property is not specified, this property is ignored.
border-colorborderColorThe 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.
The style class which is used for the label has to be specified in the styleName property.



Public Properties
 PropertyDefined 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
 InheritedstyleRenderer : 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
Public Methods
 MethodDefined By
 Inherited
clone():Object
Creates a clone of this instance.
ICloneable
 Inherited
install(canvas:CanvasComponent, group:ICanvasObjectGroup, modelItem:IModelItem):Array
Prepares the rendering of an IModelItem in a CanvasComponent by adding ICanvasObject's to the provided canvas.
IVisualStyle
Property Detail
backgroundFillproperty
backgroundFill:IFill  [read-only]

Gets the fill to use for the background box of the label or null


Implementation
    public function get backgroundFill():IFill
backgroundStrokeproperty 
backgroundStroke:IStroke  [read-only]

Gets the pen to use for the background box of the label or null


Implementation
    public function get backgroundStroke():IStroke
clipTextproperty 
clipText:Boolean  [read-only]

Whether text should be clipped.


Implementation
    public function get clipText():Boolean
styleNameproperty 
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".


Implementation
    public function get styleName():String
styleSheetproperty 
styleSheet:StyleSheet  [read-only]

The style sheet.


Implementation
    public function get styleSheet():StyleSheet
styleSheetUrlproperty 
styleSheetUrl:String  [read-only]

The URL to load the style sheet from.


Implementation
    public function get styleSheetUrl():String