C

LabelDefaults

A canonical implementation of the ILabelDefaults interface
ImplementsInheritance Hierarchy

Members

No filters for this type

Constructors

Initializes a new instance of the LabelDefaults class using a trivial parameter.

Parameters

Properties

Gets or sets a property that determines whether to automatically adjust the preferred size of a label.
On a call to setLabelText or setStyle, the preferred size of the label will automatically be adjusted to the preferred size that is suggested by the label's style renderer, if this property is set to true.
final
Gets or sets the label model parameter to use for labels.
Depending on the setting of shareLayoutParameterInstance, the getLayoutParameterInstance method should return a clone of this instance or the very same instance.
final
Gets or sets a value indicating whether the layoutParameter instance should be shared referentially or cloned upon a call to getLayoutParameterInstance.
Gets or sets a value indicating whether the style instance should be shared referentially or cloned upon a call to getStyleInstance.
Gets or sets the style to use for labels.
Depending on the setting of shareStyleInstance, the getStyleInstance method should return a clone of this instance or the very same instance.
final

Methods

Factory method that returns a label model parameter instance for use with newly created labels.
Most implementations will yield either, a clone of or the layoutParameter property, if shareLayoutParameterInstance is enabled, but they might use more complicated logic, too.

Parameters

owner: ILabelOwner
The owner of the label that will be created.

Return Value

ILabelModelParameter
The parameter to use, which for most implementations is either a clone of or the layoutParameter property, if shareLayoutParameterInstance is enabled.
Factory method that returns a style instance for use with newly created labels.
Most implementations will yield either, a clone of or the style property, if shareStyleInstance is enabled, but they might use more complicated logic, too.

Parameters

owner: ILabelOwner
The owner of the label that will be created.

Return Value

ILabelStyle
The style to use, which for most implementations is either a clone of or the style property, if shareStyleInstance is enabled.