Package com.digitizer.ui
Class AccessibilityPreferences
java.lang.Object
com.digitizer.ui.AccessibilityPreferences
Manages accessibility preferences for the Graph Digitizer application.
Stores user preferences for font size, point size, focus indicator style,
and high contrast mode.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns stored per-dataset colors as an array of hex strings, or null if none.String[]Returns stored per-dataset visibility flags as an array of "true"/"false" strings.doubleString[]Returns the stored palette colors as an array of hex strings, or null if none.Returns the stored palette name (may be empty).booleanbooleanWhether the startup help dialog should be shown when the app first opens.booleanvoidsetDatasetColors(String[] colors) Persist per-dataset colors.voidsetDatasetVisibilities(String[] vis) Persist per-dataset visibility flags.voidsetFocusBorderWidth(double focusBorderWidth) voidsetFontSize(AccessibilityPreferences.FontSize fontSize) voidsetHighContrastMode(boolean highContrastMode) voidsetPalette(String name, String[] colors) Sets the palette and persists it.voidsetPointSize(AccessibilityPreferences.PointSize pointSize) voidsetShowStartupHelp(boolean show) Set whether the startup help dialog should be shown on startup.voidsetUseShapeVariation(boolean useShapeVariation)
-
Constructor Details
-
AccessibilityPreferences
public AccessibilityPreferences()
-
-
Method Details
-
getPaletteName
Returns the stored palette name (may be empty). -
getPaletteColors
Returns the stored palette colors as an array of hex strings, or null if none. -
getDatasetColors
Returns stored per-dataset colors as an array of hex strings, or null if none. -
getDatasetVisibilities
Returns stored per-dataset visibility flags as an array of "true"/"false" strings. -
setPalette
Sets the palette and persists it. Use an empty or null palette to clear. -
setDatasetColors
Persist per-dataset colors. Pass null or empty to clear. -
setDatasetVisibilities
Persist per-dataset visibility flags. Pass null/empty to clear. -
getFontSize
-
setFontSize
-
getPointSize
-
setPointSize
-
isUseShapeVariation
public boolean isUseShapeVariation() -
setUseShapeVariation
public void setUseShapeVariation(boolean useShapeVariation) -
isHighContrastMode
public boolean isHighContrastMode() -
setHighContrastMode
public void setHighContrastMode(boolean highContrastMode) -
getFocusBorderWidth
public double getFocusBorderWidth() -
setFocusBorderWidth
public void setFocusBorderWidth(double focusBorderWidth) -
isShowStartupHelp
public boolean isShowStartupHelp()Whether the startup help dialog should be shown when the app first opens. -
setShowStartupHelp
public void setShowStartupHelp(boolean show) Set whether the startup help dialog should be shown on startup.
-