Nodes
The base class Node and the nodes that draw shapes, text, images, media, progress bars, charts and 3D models, with their tooltips and their drag settings.
Learn: Nodes and the tree, Position and size, Images and media.
BaseModelNode, ChartNode and RadarChartNode need a skin, a subclass that draws the node: see Give your controls a look.
Main types
Section titled “Main types”| Type | Kind | Summary |
|---|---|---|
Node | class | Base class of every element of a UI, a box in design pixels with children, fluent properties, input, hover, scroll, drag and effects. |
BaseModelNode | class | Base class of the nodes that draw a 3D model in their bounds. |
ChartNode | class | Base class of a chart that shows named series of values over the labels of an X axis. |
CircleNode | class | Draws a filled disc in its bounds, with a color that fades on hover. |
DevNode | class | The dev panel of a UI in dev mode, with the inspector, the reload button, the grid and the frame rate. |
ModelNode | class | Draws a 3D model at a zoom and a rotation that your code sets. |
ModelViewerNode | class | Draws a 3D model that the user turns by dragging and zooms with the wheel, within ranges. |
ProgressNode | class | Shows a progress from 0 to 1 by sizing its fill part over an optional track part. |
RadarChartNode | class | Base class of a radar chart, which shows one value per axis around a center. |
RectNode | class | Draws a filled rectangle on its bounds, with an optional border, and colors that fade on hover. |
ResourceNode | class | Draws an image resource in its bounds, tinted by a color, with an optional image that fades in on hover. |
ResourcePlayerNode | class | Plays a video or an animated image in its bounds, with its sound, and controls the playback. |
TextNode | class | Draws a Text in its bounds, and takes the size of the text when no size is declared. |
Related types
Section titled “Related types”The interfaces, enums and helper classes of this family that the main types use.
| Type | Kind | Summary |
|---|---|---|
CustomHoverElement | class | Places a tooltip element of your own at the mouse, on the node or at a fixed point. |
DraggableProperty | class | How a node is dragged: the area it stays in, whether it moves or leaves a copy, and the targets it snaps to. |
HoverSupplier | interface | Function that gives the single line of a text tooltip. |
IHoverElement | interface | A tooltip element that draws itself while its node is hovered. |
INode | interface | The hooks that JOID calls on a node, all empty by default, that a node of your own overrides. |
NodeHoverElement | class | Tooltip made of a node, loaded and drawn while its owner is hovered. |
NodeLayer | interface | Function that draws over a node, after its children, in the coordinates of the node. |
PositionedHoverElement | class | Tooltip element placed at the mouse, on the node or at a fixed point, and kept inside the window. |
Supporting types
Section titled “Supporting types”Nested types and listeners that the main types use.
| Type | Kind | Summary |
|---|---|---|
ChartNode.ChartAxis | class | The base of the X and Y axes of a chart, created by ChartAxis.x(...) and ChartAxis.y(...), with the name of the axis. |
ChartNode.ChartAxis.XChartAxis | class | The X axis of a chart, which holds its labels and its series. |
ChartNode.ChartAxis.YChartAxis | class | The Y axis of a chart, which formats its values. |
ChartNode.ChartData | class | One series of a chart: a value for each label of the X axis. |
DraggableProperty.DraggableAreaType | enum | The area a dragged node stays in. |
DraggableProperty.DraggableSnapType | enum | How a dropped node picks its snap target. |
DraggableProperty.DraggableType | enum | Whether a drag moves the node or a copy of it. |
PositionedHoverElement.HoverElementPosition | enum | Where a tooltip element is placed. |
ProgressNode.ProgressDirection | enum | The side that the fill of a progress bar grows from. |
RadarChartNode.RadarChartData | class | One entry of a radar chart: a label and its value. |
ResourceNode.StretchType | enum | How an image or a video fills bounds whose ratio differs from its own. |
