| Package | com.yworks.graph.drawing |
| Class | public class SimpleLabelStyle |
| Inheritance | SimpleLabelStyle Object |
| Implements | ISimpleLabelStyle |
ISimpleLabelStyle
interface.
| Property | Defined By | ||
|---|---|---|---|
| autoFlip : Boolean
Determines whether the label's style should automatically flip the painting contents if the
layout is upside down. | SimpleLabelStyle | ||
| backgroundFill : IFill
Gets or sets the stroke to use for the background box of the label or null
| SimpleLabelStyle | ||
| backgroundStroke : IStroke
Gets or sets the pen to use for the background box of the label or null
| SimpleLabelStyle | ||
| clipText : Boolean
Gets a value that determines whether text should be clipped. | SimpleLabelStyle | ||
| styleRenderer : IStyleRenderer [read-only]
Gets the renderer implementation that has been supplied to
this instance upon creation. | SimpleLabelStyle | ||
| textFormat : UITextFormat
Gets the text format used to format the text on a label drawn with this style. | SimpleLabelStyle | ||
| Method | Defined By | ||
|---|---|---|---|
SimpleLabelStyle(renderer:ILabelStyleRenderer = null, textFormat:UITextFormat = null)
Creates a new instance with the given renderer and the given text format. | SimpleLabelStyle | ||
clone():Object
Creates a clone of this instance. | SimpleLabelStyle | ||
Prepares the rendering of an IModelItem in a CanvasComponent by
adding ICanvasObject's to the provided canvas. | SimpleLabelStyle | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new instance of SimpleLabelStyle
| SimpleLabelStyle | ||
| autoFlip | property |
autoFlip:Boolean
Determines whether the label's style should automatically flip the painting contents if the
layout is upside down.
public function get autoFlip():Boolean public function set autoFlip(value:Boolean):void| backgroundFill | property |
backgroundFill:IFill
Gets or sets the stroke to use for the background box of the label or null
public function get backgroundFill():IFill public function set backgroundFill(value:IFill):void| backgroundStroke | property |
backgroundStroke:IStroke
Gets or sets the pen to use for the background box of the label or null
public function get backgroundStroke():IStroke public function set backgroundStroke(value:IStroke):void| clipText | property |
clipText:BooleanGets a value that determines whether text should be clipped.
public function get clipText():Boolean public function set clipText(value:Boolean):void| styleRenderer | property |
styleRenderer:IStyleRenderer [read-only] Gets the renderer implementation that has been supplied to this instance upon creation.
public function get styleRenderer():IStyleRenderer| textFormat | property |
textFormat:UITextFormatGets the text format used to format the text on a label drawn with this style.
public function get textFormat():UITextFormat public function set textFormat(value:UITextFormat):void| SimpleLabelStyle | () | Constructor |
public function SimpleLabelStyle(renderer:ILabelStyleRenderer = null, textFormat:UITextFormat = null)Creates a new instance with the given renderer and the given text format.
Parametersrenderer:ILabelStyleRenderer (default = null) — The renderer to use with this instance. If none is provided,
a new SimpleLabelStyleRenderer will be used.
| |
textFormat:UITextFormat (default = null) — The text format to use with this label. If none is provided,
the FontManager will be queried for its default format.
|
| clone | () | method |
public function clone():ObjectCreates a clone of this instance.
ReturnsObject — A clone of this instance.
|
| createClone | () | method |
protected function createClone():SimpleLabelStyleCreates a new instance of SimpleLabelStyle
ReturnsSimpleLabelStyle — A new instance of SimpleLabelStyle
|
| install | () | method |
public function 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.
Implementations may add zero or more ICanvasObject instances to
the given CanvasComponent. The group parameter
can be used as a hint for implementations. They can add their newly created
canvas objects to the given group. However they are not obliged to do that.
Parameters
canvas:CanvasComponent — The canvas to install the canvas objects in.
| |
group:ICanvasObjectGroup — A hint that tells the implementation where to add the canvas objects.
| |
modelItem:IModelItem — The item to install a visual representation for.
|
Array — An array of zero or more canvas objects that have been installed
in the canvas by this method or null if nothing was installed.
|