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 SummaryPropertiesTypePropertyDescriptionSpecifies 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 SummaryModifier 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- 
persistentScrollBarsObjectProperty<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:
 
- 
reducedMotionObjectProperty<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:
 
- 
reducedTransparencyObjectProperty<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:
 
- 
reducedDataObjectProperty<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:
 
- 
colorSchemeObjectProperty<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- 
persistentScrollBarsPropertyObjectProperty<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:
 
- 
isPersistentScrollBarsboolean isPersistentScrollBars()Gets the value of thepersistentScrollBarsproperty.- Returns:
- the value of the persistentScrollBarsproperty
- See Also:
 
- 
setPersistentScrollBarsSets the value of thepersistentScrollBarsproperty.- Parameters:
- value- the value
- See Also:
 
- 
reducedMotionPropertyObjectProperty<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:
 
- 
isReducedMotionboolean isReducedMotion()Gets the value of thereducedMotionproperty.- Returns:
- the value of the reducedMotionproperty
- See Also:
 
- 
setReducedMotionSets the value of thereducedMotionproperty.- Parameters:
- value- the value
- See Also:
 
- 
reducedTransparencyPropertyObjectProperty<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:
 
- 
isReducedTransparencyboolean isReducedTransparency()Gets the value of thereducedTransparencyproperty.- Returns:
- the value of the reducedTransparencyproperty
- See Also:
 
- 
setReducedTransparencySets the value of thereducedTransparencyproperty.- Parameters:
- value- the value
- See Also:
 
- 
reducedDataPropertyObjectProperty<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:
 
- 
isReducedDataboolean isReducedData()Gets the value of thereducedDataproperty.- Returns:
- the value of the reducedDataproperty
- See Also:
 
- 
setReducedDataSets the value of thereducedDataproperty.- Parameters:
- value- the value
- See Also:
 
- 
colorSchemePropertyObjectProperty<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:
 
- 
getColorSchemeColorScheme 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:
 
- 
setColorSchemeSets 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 the- colorSchemeproperty
- See Also:
 
 
-