E

GroupNodeStyleTabSizePolicy

The possible policies for calculating the size of the tab of a GroupNodeStyle instance.

Members

No filters for this type

Constants

The effective tab width depends on GroupNodeStyle properties, the size of the node, and the preferred width of tab or tab background labels.

If there is a tab label (i.e., a label that uses GroupNodeLabelModel's tab parameter), the effective width of the tab will grow to contain the preferred width of the label. The value of tabWidth is treated as minimum width for the tab in this case.

If there is a tab background label (i.e., a label that uses GroupNodeLabelModel's tab background parameter ) but no tab label, the effective width of the tab will shrink such that the tab background area is wide enough to contain the preferred width of the label. The value of tabWidth is treated as maximum width for the tab in this case.

The size of the node and GroupNodeStyle properties that affect tab size might prevent the tab width from growing or shrinking enough for the tab or tab background to completely contain the corresponding labels.
static

See Also

Developer's Guide
API
GroupNodeLabelModel
The effective tab size depends on GroupNodeStyle properties and the size of the node.
The tab width is determined by tabWidth.
static

See Also

API
tabWidth, tabHeight, tabSlope, cornerRadius

Static Methods

Converts the given argument to an enum constant of this enum type.
Most notably, this method can convert an enum constant's name into the enum constant itself.
static

Parameters

value: GroupNodeStyleTabSizePolicy
The value to convert to an enum constant.

Return Value

GroupNodeStyleTabSizePolicy
The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
static

Parameters

value: GroupNodeStyleTabSizePolicy
The numeric value of an enum constant.

Return Value

string
The name of the enum constant.

Throws

Exception ({ name: 'Error' })
If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.