Class AbstractBigViewer.Actions

java.lang.Object
sc.fiji.snt.viewer.AbstractBigViewer.Actions
Enclosing class:
AbstractBigViewer

protected class AbstractBigViewer.Actions extends Object
  • Constructor Details

    • Actions

      protected Actions()
  • Method Details

    • overlayToggleAction

      protected static Action overlayToggleAction(String name, boolean initialState, Consumer<Boolean> onToggle)
      Creates an Action that calls onToggle with the toggle button's selected state whenever triggered. Useful for wiring toolbar toggle buttons to viewer overlay state (scale bar, text overlay, etc.).
      Parameters:
      name - action name (used for accessibility)
      initialState - initial selected state (returned when source is not a button)
      onToggle - consumer called with the new boolean state on each action event
      Returns:
      the constructed action
    • getDefaultDir

      protected static File getDefaultDir()
    • setDefaultDir

      protected static void setDefaultDir(File newDir)