public class ScriptInstaller extends Object implements MenuKeyListener
Modifier and Type | Field and Description |
---|---|
static Pattern |
DEMO_SCRIPT |
static Pattern |
NON_DEMO_SCRIPT |
Modifier | Constructor and Description |
---|---|
|
ScriptInstaller(Context context,
Component parent) |
protected |
ScriptInstaller(Context context,
SNTUI ui) |
Modifier and Type | Method and Description |
---|---|
JMenu |
getBatchScriptsMenu()
Returns a UI list of SNT's 'Batch' scripts
|
JMenu |
getScriptsMenu()
Returns a UI list with all the bundled non-demo SNT scripts
|
JMenu |
getScriptsMenu(Pattern excludePattern,
String... directories)
Returns a UI list with the bundled SNT scripts (specified directories only).
|
void |
menuKeyPressed(MenuKeyEvent e) |
void |
menuKeyReleased(MenuKeyEvent e) |
void |
menuKeyTyped(MenuKeyEvent e) |
void |
openScript(String folder,
String name) |
void |
runScript(String folder,
String name) |
public static final Pattern DEMO_SCRIPT
public static final Pattern NON_DEMO_SCRIPT
public JMenu getBatchScriptsMenu()
public JMenu getScriptsMenu()
public JMenu getScriptsMenu(Pattern excludePattern, String... directories)
excludePattern
- the exclusion pattern (e.g., DEMO_SCRIPT
).
Null allowed.directories
- the subset of directories (e.g., Analysis, Batch, etc.)public void openScript(String folder, String name) throws IllegalArgumentException
IllegalArgumentException
public void runScript(String folder, String name) throws IllegalArgumentException
IllegalArgumentException
public void menuKeyTyped(MenuKeyEvent e)
menuKeyTyped
in interface MenuKeyListener
public void menuKeyPressed(MenuKeyEvent e)
menuKeyPressed
in interface MenuKeyListener
public void menuKeyReleased(MenuKeyEvent e)
menuKeyReleased
in interface MenuKeyListener
Copyright © 2015–2021 Fiji. All rights reserved.