Interface Scene.Preferences
- Enclosing class:
Scene
platform preferences.
All preferences are null-coalesting properties: if set to null (using the setter method,
WritableValue.setValue(Object), or with a binding), the property evalutes to the value of the corresponding
platform-provided preference. Likewise, specifying a non-null value for any given property will override the
platform-provided value.
- Since:
- 25
- See Also:
-
Property Summary
PropertiesTypePropertyDescriptionSpecifies whether the scene should prefer light text on dark backgrounds, or dark text on light backgrounds.Specifies whether applications should always show scroll bars.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.Specifies whether the scene should minimize the amount of non-essential animations, reducing discomfort for users who experience motion sickness or vertigo.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. -
Method Summary
Modifier and TypeMethodDescriptionSpecifies whether the scene should prefer light text on dark backgrounds, or dark text on light backgrounds.Gets the value of thecolorSchemeproperty.booleanGets the value of thepersistentScrollBarsproperty.booleanGets the value of thereducedDataproperty.booleanGets the value of thereducedMotionproperty.booleanGets the value of thereducedTransparencyproperty.Specifies whether applications should always show scroll bars.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.Specifies whether the scene should minimize the amount of non-essential animations, reducing discomfort for users who experience motion sickness or vertigo.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.voidsetColorScheme(ColorScheme colorScheme) Sets the value of thecolorSchemeproperty.voidsetPersistentScrollBars(Boolean value) Sets the value of thepersistentScrollBarsproperty.voidsetReducedData(Boolean value) Sets the value of thereducedDataproperty.voidsetReducedMotion(Boolean value) Sets the value of thereducedMotionproperty.voidsetReducedTransparency(Boolean value) Sets the value of thereducedTransparencyproperty.
-
Property Details
-
persistentScrollBars
ObjectProperty<Boolean> persistentScrollBarsPropertySpecifies whether applications should always show scroll bars. If set tofalse, applications may choose to hide scroll bars that are not actively used, or make them smaller or less noticeable.This property corresponds to the
-fx-prefers-persistent-scrollbarsmedia feature.- Default value:
Platform.Preferences.isPersistentScrollBars()- See Also:
-
reducedMotion
ObjectProperty<Boolean> reducedMotionPropertySpecifies 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
prefers-reduced-motionmedia feature.- Default value:
Platform.Preferences.isReducedMotion()- See Also:
-
reducedTransparency
ObjectProperty<Boolean> reducedTransparencyPropertySpecifies 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
prefers-reduced-transparencymedia feature.- Default value:
Platform.Preferences.isReducedTransparency()- See Also:
-
reducedData
ObjectProperty<Boolean> reducedDataPropertySpecifies 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
prefers-reduced-datamedia feature.- Default value:
Platform.Preferences.isReducedData()- See Also:
-
colorScheme
ObjectProperty<ColorScheme> colorSchemePropertySpecifies whether the scene should prefer light text on dark backgrounds, or dark text on light backgrounds.This property corresponds to the
prefers-color-schememedia feature.- Default value:
Platform.Preferences.getColorScheme()- See Also:
-
-
Method Details
-
persistentScrollBarsProperty
ObjectProperty<Boolean> persistentScrollBarsProperty()Specifies whether applications should always show scroll bars. If set tofalse, applications may choose to hide scroll bars that are not actively used, or make them smaller or less noticeable.This property corresponds to the
-fx-prefers-persistent-scrollbarsmedia feature.- Default value:
Platform.Preferences.isPersistentScrollBars()- Returns:
- the
persistentScrollBarsproperty - See Also:
-
isPersistentScrollBars
boolean isPersistentScrollBars()Gets the value of thepersistentScrollBarsproperty.- Returns:
- the value of the
persistentScrollBarsproperty - See Also:
-
setPersistentScrollBars
Sets the value of thepersistentScrollBarsproperty.- Parameters:
value- the value- See Also:
-
reducedMotionProperty
ObjectProperty<Boolean> reducedMotionProperty()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
prefers-reduced-motionmedia feature.- Default value:
Platform.Preferences.isReducedMotion()- Returns:
- the
reducedMotionproperty - See Also:
-
isReducedMotion
boolean isReducedMotion()Gets the value of thereducedMotionproperty.- Returns:
- the value of the
reducedMotionproperty - See Also:
-
setReducedMotion
Sets the value of thereducedMotionproperty.- Parameters:
value- the value- See Also:
-
reducedTransparencyProperty
ObjectProperty<Boolean> reducedTransparencyProperty()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
prefers-reduced-transparencymedia feature.- Default value:
Platform.Preferences.isReducedTransparency()- Returns:
- the
reducedTransparencyproperty - See Also:
-
isReducedTransparency
boolean isReducedTransparency()Gets the value of thereducedTransparencyproperty.- Returns:
- the value of the
reducedTransparencyproperty - See Also:
-
setReducedTransparency
Sets the value of thereducedTransparencyproperty.- Parameters:
value- the value- See Also:
-
reducedDataProperty
ObjectProperty<Boolean> reducedDataProperty()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
prefers-reduced-datamedia feature.- Default value:
Platform.Preferences.isReducedData()- Returns:
- the
reducedDataproperty - See Also:
-
isReducedData
boolean isReducedData()Gets the value of thereducedDataproperty.- Returns:
- the value of the
reducedDataproperty - See Also:
-
setReducedData
Sets the value of thereducedDataproperty.- Parameters:
value- the value- See Also:
-
colorSchemeProperty
ObjectProperty<ColorScheme> colorSchemeProperty()Specifies whether the scene should prefer light text on dark backgrounds, or dark text on light backgrounds.This property corresponds to the
prefers-color-schememedia feature.- Default value:
Platform.Preferences.getColorScheme()- Returns:
- the
colorSchemeproperty - See Also:
-
getColorScheme
ColorScheme getColorScheme()Gets the value of thecolorSchemeproperty.- Property description:
- Specifies whether the scene should prefer light text on dark backgrounds, or dark text
on light backgrounds.
This property corresponds to the
prefers-color-schememedia feature. - Default value:
Platform.Preferences.getColorScheme()- Returns:
- the value of the
colorSchemeproperty - See Also:
-
setColorScheme
Sets the value of thecolorSchemeproperty.- Property description:
- Specifies whether the scene should prefer light text on dark backgrounds, or dark text
on light backgrounds.
This property corresponds to the
prefers-color-schememedia feature. - Default value:
Platform.Preferences.getColorScheme()- Parameters:
colorScheme- the value for thecolorSchemeproperty- See Also:
-