| Modifier and Type | Class and Description |
|---|---|
| private class | SceneContext.
Property implementation for media features that causes CSS to be re-applied when the property value is changed. |
| Modifier and Type | Field and Description |
|---|---|
| private final SceneContext. | |
| private final Map | |
| private final SceneContext. | |
| private final SceneContext. | |
| private final SceneContext. | |
| private final SceneContext. | |
| private final Scene | |
| private final Map | viewportSizeAwareQueries
All media queries are interned, such that only a single instance exists for each distinct media query. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ObjectProperty | colorSchemeProperty()
Implements javafx. Specifies whether the scene should prefer light text on dark backgrounds, or dark text on light backgrounds. |
| public ColorScheme | getColorScheme()
Implements javafx. Provides the value for the |
| public double | getHeight()
Implements com. Provides the value for the |
| public double | getWidth()
Implements com. Provides the value for the |
| public boolean | isFullScreen()
Implements com. Provides the value for the |
| public boolean | isPersistentScrollBars()
Implements javafx. Gets the value of the |
| public boolean | isReducedData()
Implements javafx. Gets the value of the |
| public boolean | isReducedMotion()
Implements javafx. Gets the value of the |
| public boolean | isReducedTransparency()
Implements javafx. Gets the value of the |
| public void | notifyQueryEvaluated(MediaQuery query, boolean currentValue)
Implements com. Called by |
| public void | |
| public void | |
| private void | |
| private void | |
| public ObjectProperty | persistentScrollBarsProperty()
Implements javafx. Specifies whether applications should always show scroll bars. |
| public ObjectProperty | reducedDataProperty()
Implements javafx. Specifies whether the scene should minimize the amount of internet traffic, which users might request because they are on a metered network or a limited data plan. |
| public ObjectProperty | reducedMotionProperty()
Implements javafx. Specifies whether the scene should minimize the amount of non-essential animations, reducing discomfort for users who experience motion sickness or vertigo. |
| public ObjectProperty | reducedTransparencyProperty()
Implements javafx. Specifies whether the scene should minimize the amount of transparent or translucent layer effects, which can help to increase contrast and readability for some users. |
| public void | |
| public void | setPersistentScrollBars(Boolean value)
Implements javafx. Sets the value of the |
| public void | setReducedData(Boolean value)
Implements javafx. Sets the value of the |
| public void | setReducedMotion(Boolean value)
Implements javafx. Sets the value of the |
| public void | setReducedTransparency(Boolean value)
Implements javafx. Sets the value of the |
| colorScheme | back to summary |
|---|---|
| private final SceneContext. | |
| fullScreenAwareQueries | back to summary |
|---|---|
| private final Map<MediaQuery, Boolean> fullScreenAwareQueries | |
| persistentScrollBars | back to summary |
|---|---|
| private final SceneContext. | |
| reducedData | back to summary |
|---|---|
| private final SceneContext. | |
| reducedMotion | back to summary |
|---|---|
| private final SceneContext. | |
| reducedTransparency | back to summary |
|---|---|
| private final SceneContext. | |
| scene | back to summary |
|---|---|
| private final Scene scene | |
| viewportSizeAwareQueries | back to summary |
|---|---|
| private final Map<MediaQuery, Boolean> viewportSizeAwareQueries All media queries are interned, such that only a single instance exists for each distinct media query. This allows us to use an IdentityHashMap instead of a regular HashMap, saving us deep equality comparisons on a hot path. | |
| SceneContext | back to summary |
|---|---|
| public SceneContext(Scene scene) | |
| colorSchemeProperty | back to summary |
|---|---|
| public ObjectProperty Implements javafx. Doc from javafx. Specifies whether the scene should prefer light text on dark backgrounds, or dark text on light backgrounds.
This property corresponds to the
| |
| getColorScheme | back to summary |
|---|---|
| public ColorScheme getColorScheme() Implements javafx. Doc from com. Provides the value for the
| |
| getHeight | back to summary |
|---|---|
| public double getHeight() Implements com. Doc from com. Provides the value for the
| |
| getWidth | back to summary |
|---|---|
| public double getWidth() Implements com. Doc from com. Provides the value for the
| |
| isFullScreen | back to summary |
|---|---|
| public boolean isFullScreen() Implements com. Doc from com. Provides the value for the
| |
| isPersistentScrollBars | back to summary |
|---|---|
| public boolean isPersistentScrollBars() Implements javafx. Doc from javafx. Gets the value of the
| |
| isReducedData | back to summary |
|---|---|
| public boolean isReducedData() Implements javafx. Doc from javafx. Gets the value of the
| |
| isReducedMotion | back to summary |
|---|---|
| public boolean isReducedMotion() Implements javafx. Doc from javafx. Gets the value of the
| |
| isReducedTransparency | back to summary |
|---|---|
| public boolean isReducedTransparency() Implements javafx. Doc from javafx. Gets the value of the
| |
| notifyQueryEvaluated | back to summary |
|---|---|
| public void notifyQueryEvaluated(MediaQuery query, boolean currentValue) Implements com. Called by
| |
| notifyReapplyCSS | back to summary |
|---|---|
| public void notifyReapplyCSS() Called by | |
| notifySizeChanged | back to summary |
|---|---|
| public void notifySizeChanged() Called by | |
| onFullScreenChanged | back to summary |
|---|---|
| private void onFullScreenChanged(Boolean unused) | |
| onShowingChanged | back to summary |
|---|---|
| private void onShowingChanged(Boolean showing) | |
| persistentScrollBarsProperty | back to summary |
|---|---|
| public ObjectProperty Implements javafx. Doc from javafx. Specifies whether applications should always show scroll bars. If set to
This property corresponds to the
| |
| reducedDataProperty | back to summary |
|---|---|
| public ObjectProperty Implements javafx. Doc from javafx. Specifies whether the scene should minimize the amount of internet traffic, which users might request because they are on a metered network or a limited data plan.
This property corresponds to the
| |
| reducedMotionProperty | back to summary |
|---|---|
| public ObjectProperty Implements javafx. Doc from javafx. Specifies whether the scene should minimize the amount of non-essential animations, reducing discomfort for users who experience motion sickness or vertigo.
This property corresponds to the
| |
| reducedTransparencyProperty | back to summary |
|---|---|
| public ObjectProperty Implements javafx. Doc from javafx. Specifies whether the scene should minimize the amount of transparent or translucent layer effects, which can help to increase contrast and readability for some users.
This property corresponds to the
| |
| setColorScheme | back to summary |
|---|---|
| public void setColorScheme(ColorScheme colorScheme) Implements javafx.
| |
| setPersistentScrollBars | back to summary |
|---|---|
| public void setPersistentScrollBars(Boolean value) Implements javafx. Doc from javafx. Sets the value of the
| |
| setReducedData | back to summary |
|---|---|
| public void setReducedData(Boolean value) Implements javafx. Doc from javafx. Sets the value of the
| |
| setReducedMotion | back to summary |
|---|---|
| public void setReducedMotion(Boolean value) Implements javafx. Doc from javafx. Sets the value of the
| |
| setReducedTransparency | back to summary |
|---|---|
| public void setReducedTransparency(Boolean value) Implements javafx. Doc from javafx. Sets the value of the
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getBean()
Implements javafx. Returns the |
| public String | getName()
Implements javafx. Returns the name of this property. |
| protected void | onInvalidated()
Overrides com. Called when the current value has changed. |
| name | back to summary |
|---|---|
| private final String name | |
| MediaProperty | back to summary |
|---|---|
| pack-priv MediaProperty(String name, ObservableValue<T> defaultValue) | |
| getBean | back to summary |
|---|---|
| public Object getBean() Implements javafx. Doc from javafx. Returns the
| |
| getName | back to summary |
|---|---|
| public String getName() Implements javafx. Doc from javafx. Returns the name of this property. If the property does not have a name,
this method returns an empty
| |
| onInvalidated | back to summary |
|---|---|
| protected void onInvalidated() Overrides com. Doc from com. Called when the current value has changed.
| |