InfoCenterView. The pane will show or
hide the view depending on various criteria, e.g. events that have been received or the auto-hide
feature is kicking in.Note
There is a known issue with the InfoCenterPane component on Windows systems where ghost images of previously hidden InfoCenterViews may appear occasionally. This problem does not occur on macOS, suggesting it may be a bug specific to the JavaFX implementation on Windows.
Workaround: To prevent this issue, avoid using InfoCenterPane directly as the root of a Scene. Instead, wrap InfoCenterPane in another layout container, such as a StackPane or another suitable container. This arrangement helps to resolve the rendering anomaly.
InfoCenterPane infoCenterPane = new InfoCenterPane(); StackPane root = new StackPane(infoCenterPane);
| Modifier and Type | Field and Description |
|---|---|
| private BooleanProperty | |
| private ObjectProperty | |
| private final ObjectProperty | |
| private static final boolean | |
| private static final Duration | |
| private static final boolean | |
| private static final boolean | |
| private static final Duration | |
| private final InfoCenterView | |
| private ObjectProperty | |
| private final ReadOnlyBooleanWrapper | |
| private final EventHandler | |
| private BooleanProperty | |
| private BooleanProperty | |
| private ObjectProperty | |
| private final Timeline | |
| private final DoubleProperty | |
| private final WeakEventHandler |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final ObjectProperty | Returns: the auto-hide durationA duration after which the pane will automatically hide the info center (if it isn't currently pinned and the mouse cursor is not on top of the info center). |
| public final BooleanProperty | Returns: true if the info center hides automatically after a certain period of timeA flag that determines if the info center view should automatically disappear again after a certain timeout duration. |
| protected double | computeMaxHeight(double width)
Overrides javafx. Computes the maximum height of this region. |
| protected double | computeMaxWidth(double height)
Overrides javafx. Computes the maximum width for this region. |
| protected double | computeMinHeight(double width)
Overrides javafx. Computes the minimum height of this region. |
| protected double | computeMinWidth(double height)
Overrides javafx. Computes the minimum width of this region. |
| protected double | computePrefHeight(double width)
Overrides javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. |
| protected double | computePrefWidth(double height)
Overrides javafx. Computes the preferred width of this region for the given height. |
| public final ObjectProperty | Returns: the content node propertyThe property that is used to store a reference to the content node. |
| public final Duration | |
| public final Node | |
| public final InfoCenterView | |
| public final InfoCenterViewPos | |
| public final Duration | |
| private void | |
| public final ObjectProperty | Returns: the position of the info center viewThe position of the |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| public final BooleanProperty | Returns: true if the info center view is pinnedA flag that can be used to pin the info center view so that it will not hide under any circumstances. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| private void | |
| public final BooleanProperty | Returns: true if the info center shall be shownThe flag that controls whether the info center shall be shown or not. |
| public final ObjectProperty | Returns: animation duration for the sliding in and out of the info center viewThe duration used for the "slide in" / "slide out" animation when the info center view gets shown or hidden. |
| private void |
| autoHide | back to summary |
|---|---|
| private BooleanProperty autoHide | |
| autoHideDuration | back to summary |
|---|---|
| private ObjectProperty<Duration> autoHideDuration | |
| content | back to summary |
|---|---|
| private final ObjectProperty<Node> content | |
| DEFAULT_AUTO_HIDE | back to summary |
|---|---|
| private static final boolean DEFAULT_AUTO_HIDE | |
| DEFAULT_AUTO_HIDE_DURATION | back to summary |
|---|---|
| private static final Duration DEFAULT_AUTO_HIDE_DURATION | |
| DEFAULT_PINNED | back to summary |
|---|---|
| private static final boolean DEFAULT_PINNED | |
| DEFAULT_SHOW_INFO_CENTER | back to summary |
|---|---|
| private static final boolean DEFAULT_SHOW_INFO_CENTER | |
| DEFAULT_SLIDE_IN_DURATION | back to summary |
|---|---|
| private static final Duration DEFAULT_SLIDE_IN_DURATION | |
| infoCenterView | back to summary |
|---|---|
| private final InfoCenterView infoCenterView | |
| infoCenterViewPos | back to summary |
|---|---|
| private ObjectProperty<InfoCenterViewPos> infoCenterViewPos | |
| insideInfoCenter | back to summary |
|---|---|
| private final ReadOnlyBooleanWrapper insideInfoCenter | |
| mouseClickedHandler | back to summary |
|---|---|
| private final EventHandler<MouseEvent> mouseClickedHandler | |
| pinned | back to summary |
|---|---|
| private BooleanProperty pinned | |
| showInfoCenter | back to summary |
|---|---|
| private BooleanProperty showInfoCenter | |
| slideInDuration | back to summary |
|---|---|
| private ObjectProperty<Duration> slideInDuration | |
| timeline | back to summary |
|---|---|
| private final Timeline timeline | |
| visibility | back to summary |
|---|---|
| private final DoubleProperty visibility | |
| weakMouseClickedHandler | back to summary |
|---|---|
| private final WeakEventHandler<MouseEvent> weakMouseClickedHandler | |
| InfoCenterPane | back to summary |
|---|---|
| public InfoCenterPane() Constructs a new pane with no content. | |
| InfoCenterPane | back to summary |
|---|---|
| public InfoCenterPane(Node content) Constructs a new pane with the given content node. | |
| autoHideDurationProperty | back to summary |
|---|---|
| public final ObjectProperty A duration after which the pane will automatically hide the info center (if it isn't currently pinned and the mouse cursor is not on top of the info center).
| |
| autoHideProperty | back to summary |
|---|---|
| public final BooleanProperty autoHideProperty() A flag that determines if the info center view should automatically disappear again after a certain timeout duration.
| |
| computeMaxHeight | back to summary |
|---|---|
| protected double computeMaxHeight(double width) Overrides javafx. Doc from javafx. Computes the maximum height of this region. Returns Double.MAX_VALUE by default. Region subclasses may override this method to return a different value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computeMaxWidth | back to summary |
|---|---|
| protected double computeMaxWidth(double height) Overrides javafx. Doc from javafx. Computes the maximum width for this region. Returns Double.MAX_VALUE by default. Region subclasses may override this method to return an different value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width) Overrides javafx. Doc from javafx. Computes the minimum height of this region. Returns the sum of the top and bottom insets by default. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computeMinWidth | back to summary |
|---|---|
| protected double computeMinWidth(double height) Overrides javafx. Doc from javafx. Computes the minimum width of this region. Returns the sum of the left and right insets by default. region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width) Overrides javafx. Doc from javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height) Overrides javafx. Doc from javafx. Computes the preferred width of this region for the given height. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| contentProperty | back to summary |
|---|---|
| public final ObjectProperty The property that is used to store a reference to the content node. The content node will fill the entire width and height of the pane.
| |
| getAutoHideDuration | back to summary |
|---|---|
| public final Duration getAutoHideDuration() | |
| getContent | back to summary |
|---|---|
| public final Node getContent() | |
| getInfoCenterView | back to summary |
|---|---|
| public final InfoCenterView getInfoCenterView() | |
| getInfoCenterViewPos | back to summary |
|---|---|
| public final InfoCenterViewPos getInfoCenterViewPos() | |
| getSlideInDuration | back to summary |
|---|---|
| public final Duration getSlideInDuration() | |
| hide | back to summary |
|---|---|
| private void hide() | |
| infoCenterViewPosProperty | back to summary |
|---|---|
| public final ObjectProperty The position of the
| |
| isAutoHide | back to summary |
|---|---|
| public final boolean isAutoHide() | |
| isPinned | back to summary |
|---|---|
| public final boolean isPinned() | |
| isShowInfoCenter | back to summary |
|---|---|
| public final boolean isShowInfoCenter() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |
| pinnedProperty | back to summary |
|---|---|
| public final BooleanProperty pinnedProperty() A flag that can be used to pin the info center view so that it will not hide under any circumstances.
| |
| setAutoHide | back to summary |
|---|---|
| public final void setAutoHide(boolean autoHide) | |
| setAutoHideDuration | back to summary |
|---|---|
| public final void setAutoHideDuration(Duration autoHideDuration) | |
| setContent | back to summary |
|---|---|
| public final void setContent(Node content) | |
| setInfoCenterViewPos | back to summary |
|---|---|
| public final void setInfoCenterViewPos(InfoCenterViewPos infoCenterViewPos) | |
| setPinned | back to summary |
|---|---|
| public final void setPinned(boolean pinned) | |
| setShowInfoCenter | back to summary |
|---|---|
| public final void setShowInfoCenter(boolean showInfoCenter) | |
| setSlideInDuration | back to summary |
|---|---|
| public final void setSlideInDuration(Duration duration) | |
| show | back to summary |
|---|---|
| private void show() | |
| showInfoCenterProperty | back to summary |
|---|---|
| public final BooleanProperty showInfoCenterProperty() The flag that controls whether the info center shall be shown or not.
| |
| slideInDurationProperty | back to summary |
|---|---|
| public final ObjectProperty The duration used for the "slide in" / "slide out" animation when the info center view gets shown or hidden.
| |
| updateChildren | back to summary |
|---|---|
| private void updateChildren() | |