Class AccessibilityPreferences

java.lang.Object
com.digitizer.ui.AccessibilityPreferences

public class AccessibilityPreferences extends Object
Manages accessibility preferences for the Graph Digitizer application. Stores user preferences for font size, point size, focus indicator style, and high contrast mode.
  • Constructor Details

    • AccessibilityPreferences

      public AccessibilityPreferences()
  • Method Details

    • getPaletteName

      public String getPaletteName()
      Returns the stored palette name (may be empty).
    • getPaletteColors

      public String[] getPaletteColors()
      Returns the stored palette colors as an array of hex strings, or null if none.
    • getDatasetColors

      public String[] getDatasetColors()
      Returns stored per-dataset colors as an array of hex strings, or null if none.
    • getDatasetVisibilities

      public String[] getDatasetVisibilities()
      Returns stored per-dataset visibility flags as an array of "true"/"false" strings.
    • setPalette

      public void setPalette(String name, String[] colors)
      Sets the palette and persists it. Use an empty or null palette to clear.
    • setDatasetColors

      public void setDatasetColors(String[] colors)
      Persist per-dataset colors. Pass null or empty to clear.
    • setDatasetVisibilities

      public void setDatasetVisibilities(String[] vis)
      Persist per-dataset visibility flags. Pass null/empty to clear.
    • getFontSize

      public AccessibilityPreferences.FontSize getFontSize()
    • setFontSize

      public void setFontSize(AccessibilityPreferences.FontSize fontSize)
    • getPointSize

      public AccessibilityPreferences.PointSize getPointSize()
    • setPointSize

      public void setPointSize(AccessibilityPreferences.PointSize pointSize)
    • 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.