C

WebGLGroupNodeStyle

A node style for group nodes, that consists of a header and content portion.
ImplementsInheritance Hierarchy

Remarks

This is the WebGL2 version of GroupNodeStyle. Nodes that have the SVG version of this style set will be automatically converted to WebGLGroupNodeStyle

Note that unlike other INodeStyle implementations, this class is immutable. All properties are read-only and immutable, and the class cannot be subclassed, either.

See Also

Developer's Guide

API

WebGLImageNodeStyle, WebGLShapeNodeStyle

Members

No filters for this type

Constructors

Creates a new group node style that is rendered with WebGL2.

It consists of a tab part that visually acts as a header and a content part.

This style can be applied to nodes that are rendered by the WebGLGraphModelManager. The preferred way of calling the constructor is using option arguments, as there are many defaults and optional arguments.

Parameters

tabFill?: Color
The main fill color of the node. Defaults to rgb(170, 170, 170).
contentAreaFill?: Color
The fill color of the content area where child nodes are placed, defaults to WHITE
tabBackgroundFill?: Color
The background fill color of the tab part, only applicable for tab positions that include a background such as TOP_TRAILING. Defaults to TRANSPARENT.
stroke?: WebGLStroke
The stroke used for the outline. Defaults to no stroke./>
cornerRadius?: number
The outer corner radius. Defaults to 4.0.
tabSlope?: number
For split tab positions, defines the slope between fore- and background portions of the tab area. Defaults to 0.5.
tabWidth?: number
Width of the tab portion. Only has an effect on split tab positions. Defaults to 50.
tabHeight?: number
Height of the tab portion. Defaults to 18.
tabPadding?: number
Determines distance between the content part and the outer portion of the style. Defaults to 4
showFolderContentArea?: boolean
Whether to show the content area part. Defaults to false.
tabPosition?: GroupNodeStyleTabPosition
The position of the tab, such as LEFT_LEADING. Defaults to TOP.
iconPosition?: GroupNodeStyleIconPosition
The position of the icon. This is independent of tabPosition. Defaults to TRAILING.
groupIcon?: GroupNodeStyleIconType
The icon to be displayed. When displayed in an IFoldingView, this icon is shown for expanded nodes. Defaults to NONE.
folderIcon?: GroupNodeStyleIconType
The icon to be displayed when the node is collapsed in an IFoldingView. Defaults to NONE.
iconBackgroundShape?: GroupNodeStyleIconBackgroundShape
The background shape to use for the icon. Defaults to ROUND_RECTANGLE_SOLID.
iconBackgroundFill?: Color
The fill color of the icon background shape. Defaults to white.
iconForegroundFill?: Color
Fill color of icon itself. Defaults to rgb(170, 170, 170).
iconSize?: number
The size of the icon, if any. Defaults to 14.
iconOffset?: number
The offset of the icon to the outline of the style. Defaults to 0.
effect?: WebGLEffect
The effect around the node. Defaults to NONE.
hitTransparentContentArea?: boolean
Whether to make the content hit transparent. Defaults to false.
tabSizePolicy?: GroupNodeStyleTabSizePolicy
Determines how to calculate the size of the tab. Defaults to FIXED
renderTransparentContentArea?: boolean
Whether to allow transparent Filles for the content area.

Properties

The fill color used for the content area.
The "content area" is the area defined by the node's layout minus tabHeight from the tabPosition side and minus tabPadding from all sides. It is only visible if showFolderContentArea is set to true.
readonlyfinal
The padding of the content area for positioning of child nodes.
readonlyfinal
To which extent the corners of the style should be rounded.
Also affects rounding of the content area and tab slopes.
readonlyfinal
The effect applied to this style.
readonlyfinal
The icon to be shown when the group node is collapsed in an IFoldingView.
readonlyfinal

See Also

API
groupIcon
The icon to be displayed.
When used with an IFoldingView, this icon is displayed for expanded group nodes.
readonlyfinal

See Also

API
folderIcon
Gets or sets a value indicating whether the content area is hit transparent.

In this context, "hit transparent" means the area in question is not considered to be a part of the node for the purpose of hit testing, marquee selection testing, and lasso selection testing.

The "content area" is the area defined by the node's layout minus tabHeight from the tabPosition side and minus tabPadding from all sides.

The default value is false.

readonlyfinal
The fill color used for the background of the icon.
Note that in contrast to svg based style, this will can only be a simple Color.
readonlyfinal
The icon background shape.
readonlyfinal
The fill color used for the foreground of the icon.
readonlyfinal
The offset of the icon relative to the outline.
readonlyfinal
The position of the icon.
readonlyfinal
The icon size.
The icon always enlarges toward the interior of the node, irrespective of GroupNodeStyleIconPosition
readonlyfinal
Gets the renderer implementation that can be queried for implementations that provide details about the visual appearance and visual behavior for a given node and this style instance.
The idiom for retrieving, e.g. an IVisualCreator implementation for a given style is:
const creator = style.renderer.getVisualCreator(node, style)
const visual = creator.createVisual(context)
readonlyfinal
Gets a value indicating whether to allow transparent Filles for the content area.

This will "cut out" a hole in the group node visualization for the content area, instead of overlaying the content area over the rest of the visualization. Thus, transparency for contentAreaFill will show what is behind the node (e.g. background visualizations, parent group nodes, etc.).

The "content area" is the area defined by the node's layout minus tabHeight from the tabPosition side and minus tabPadding from all sides.

The default value is false.

readonlyfinal
Whether the content area is shown.
readonlyfinal

See Also

API
contentAreaFill, tabPadding
The WebGLStroke used for drawing the outline of the shape.
readonlyfinal
The fill color used for the tab background.

The tab background is only visible for tab positions TOP_LEADING, TOP_TRAILING, BOTTOM_LEADING, BOTTOM_TRAILING, LEFT_LEADING, LEFT_TRAILING, RIGHT_LEADING, and RIGHT_TRAILING, if tabWidth is less than the length of the side that shows the tab and tabHeight is greater than 0.0.

Use a completely transparent color to show no background.

readonlyfinal
The fill color used for the tab foreground.
Note that in contrast to svg based style, this will can only be a simple Color.
readonlyfinal
The height of the tab part.
readonlyfinal
The padding of the content area on all sides.
Only applicable if showFolderContentArea is set to true.
readonlyfinal
The position of the tab.
tabWidth, tabSlope, and tabBackgroundFill only take an effect for any tabPosition that is leading or trailing and thus displays a 'split' tab.
readonlyfinal
Gets or sets the policy that determines how to calculate the size of the tab.

The size of the tab depends on the properties of the style and the size of the node. Additionally, the size of the tab may depend on the preferred width of tab or tab background labels.

The default value is FIXED. The size of the tab is determined by tabWidth and does not depend on tab or tab background labels in this case.

readonlyfinal

See Also

API
tabWidth, tabHeight, tabSlope, cornerRadius, GroupNodeLabelModel
The slope between tab foreground and background, where 0 is a vertical slope, 0.5 is a 45° slope and positive numbers get progressively shallower.
The actual slope is limited by the available size of the tab, given by the size of the node and the width of the tab.
readonlyfinal
The width of the tab part.
Only takes an effect if tabPosition is set to any leading or trailing position.
readonlyfinal

Methods

Create a clone of this object.
final

Return Value

Object
A clone of this object.