A canonical implementation of the ILabelDefaults interface
Implements
- I
Members
No filters for this type
Constructors
Initializes a new instance of the LabelDefaults class using a trivial parameter.
Initializes a new instance of the LabelDefaults class using a trivial parameter.
Parameters
Properties
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
Implements
ILabelDefaults.autoAdjustPreferredSizeGets or sets the label model parameter to use for labels.
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
Implements
ILabelDefaults.layoutParameterfinal
final
Implements
ILabelDefaults.shareStyleInstanceGets or sets the style to use for labels.
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
Implements
ILabelDefaults.styleMethods
Factory method that returns a label model parameter instance for use with newly created labels.
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.
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.