A window adds its pane where it is built and keeps it for its lifetime, as a child of a parent the window already has -- never as a replacement for the scene root, see Where overlays are rendered.
Implementation Note
The pane is unmanaged. In the main window and in dialogs it sizes itself to the scene rather
than to its parent, so that one rule covers a pane that fills the window and a dialog pane that is the
scene root alike; javafx. descends into unmanaged children, so the pane still
lays out its own. A popup's pane takes no size, see Extent#NONE.
| Modifier and Type | Class and Description |
|---|---|
| private static enum | WalkthroughPane.
How much of its window the pane takes up. |
| Modifier and Type | Field and Description |
|---|---|
| private static final double | IN_FRONT_OF_SIBLINGS
A lower view order renders a child in front of its siblings, whatever its position in the list. |
| private static final Object | SCENE_PROPERTY_KEY
Keyed into the scene's property map, so |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public static Optional |
| IN_FRONT_OF_SIBLINGS | back to summary |
|---|---|
| private static final double IN_FRONT_OF_SIBLINGS A lower view order renders a child in front of its siblings, whatever its position in the list.
A | |
| SCENE_PROPERTY_KEY | back to summary |
|---|---|
| private static final Object SCENE_PROPERTY_KEY Keyed into the scene's property map, so | |
| WalkthroughPane | back to summary |
|---|---|
| public WalkthroughPane() | |
| WalkthroughPane | back to summary |
|---|---|
| private WalkthroughPane(WalkthroughPane. | |
| fitToScene | back to summary |
|---|---|
| private void fitToScene() | |
| of | back to summary |
|---|---|
| public static Optional Returns the pane of the given window. The main window and every JabRef dialog are given theirs where they are built. A popup -- a context menu a walkthrough steps into -- is not JabRef's to build, so it is given one here, the first time a walkthrough draws on it. Empty for any other window built outside JabRef. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final WalkthroughPane. | NONE
None of its own. |
| public static final WalkthroughPane. | SCENE
The whole scene: the main window and dialogs are sized independently of the pane. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static WalkthroughPane. | |
| public static WalkthroughPane. |
| NONE | back to summary |
|---|---|
| public static final WalkthroughPane. None of its own. A popup window is sized from the bounds of its content, and a context menu's drop shadow offsets that content from the scene's origin, so a pane sized to the popup's scene would enlarge the very window it measures itself against -- until the bounds computation overflows the stack and the menu stops rendering. On popups the walkthrough only draws effects that position themselves, such as the ping. | |
| SCENE | back to summary |
|---|---|
| public static final WalkthroughPane. The whole scene: the main window and dialogs are sized independently of the pane. | |
| Extent | back to summary |
|---|---|
| private Extent() | |
| valueOf | back to summary |
|---|---|
| public static WalkthroughPane. | |
| values | back to summary |
|---|---|
| public static WalkthroughPane. | |