Node participates in HeaderBar draggable-area hit testing.
In stages with the StageStyle#EXTENDED style, the window can be moved (and on some platforms,
resized near the top edge) by interacting with a draggable area. HeaderBar provides such an
area in the scene graph, and uses HeaderDragType flags on nodes to decide which parts of the
scene graph count as draggable, block an underlying draggable area, or are ignored during draggable
area hit testing.
DRAGGABLE / DRAGGABLE_SUBTREE.
NONE on controls if you need them to explicitly opt out or stop inheritance.
TRANSPARENT / TRANSPARENT_SUBTREE
so they do not obstruct existing draggable areas.
HeaderBar#setDragType(Node, HeaderDragType)
| Modifier and Type | Field and Description |
|---|---|
| public static final HeaderDragType | DRAGGABLE
The node is a draggable part of the |
| public static final HeaderDragType | DRAGGABLE_SUBTREE
The node and its descendants are a draggable part of the |
| public static final HeaderDragType | NONE
The node and its descendants are not a draggable part of the |
| public static final HeaderDragType | TRANSPARENT
The node is transparent in regard to draggable-area hit testing. |
| public static final HeaderDragType | TRANSPARENT_SUBTREE
The node and its descendants are transparent in regard to draggable-area hit testing. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static HeaderDragType | |
| public static HeaderDragType[] |
| DRAGGABLE | back to summary |
|---|---|
| public static final HeaderDragType DRAGGABLE The node is a draggable part of the This drag type is only relevant for nodes that are descendants of the header bar. When set on a node, the node participates in draggable-area hit testing. If the node extends beyond the header bar, the effective draggable area is extended accordingly.
An interactive node (for example, a
This drag type does not apply to descendants of the node on which it is set. However, it does not stop
an inherited | |
| DRAGGABLE_SUBTREE | back to summary |
|---|---|
| public static final HeaderDragType DRAGGABLE_SUBTREE The node and its descendants are a draggable part of the This drag type is only relevant for nodes that are descendants of the header bar. When set on a node, the node and its descendants participate in draggable-area hit testing. If the node or its descendants extend beyond the header bar, the effective draggable area is extended accordingly.
An interactive node (for example, a
This drag type is inherited by descendants of the node until a descendant specifies | |
| NONE | back to summary |
|---|---|
| public static final HeaderDragType NONE The node and its descendants are not a draggable part of the
If the node inherits | |
| TRANSPARENT | back to summary |
|---|---|
| public static final HeaderDragType TRANSPARENT The node is transparent in regard to draggable-area hit testing.
In contrast to This drag type can be used not only on descendants of the header bar, but also on other nodes that may overlap it (for example, a sibling shown on top of the header bar). In that case, the overlapping node behaves as if it were draggable, but only where it overlaps a draggable area of the header bar; it does not create any additional draggable area.
An interactive node (for example, a
This drag type does not apply to descendants of the node on which it is set. However, it does
not stop an inherited | |
| TRANSPARENT_SUBTREE | back to summary |
|---|---|
| public static final HeaderDragType TRANSPARENT_SUBTREE The node and its descendants are transparent in regard to draggable-area hit testing.
In contrast to This drag type can be used not only on descendants of the header bar, but also on other nodes that may overlap it (for example, a sibling shown on top of the header bar). In that case, the overlapping node and its descendants behave as if they were draggable, but only where they overlap a draggable area of the header bar; they do not create any additional draggable area.
An interactive node (for example, a
This drag type is inherited by descendants of the node until a descendant specifies | |
| HeaderDragType | back to summary |
|---|---|
| private HeaderDragType() | |
| valueOf | back to summary |
|---|---|
| public static HeaderDragType valueOf(String name) | |
| values | back to summary |
|---|---|
| public static HeaderDragType[] values() | |