public class OptionManager extends LogicManager
bio
Constructor and Description |
---|
OptionManager(VisBioFrame bio)
Constructs an options manager.
|
Modifier and Type | Method and Description |
---|---|
BooleanOption |
addBooleanOption(String tab,
String text,
char mnemonic,
String tip,
boolean value)
Adds an option allowing the user to toggle a check box.
|
CustomOption |
addCustomOption(String tab,
Component c)
Adds a custom GUI component to VisBio's options dialog.
|
ListOption |
addListOption(String tab,
String text,
String tip,
String[] choices)
Adds an option allowing the user to select from a dropdown list.
|
NumericOption |
addNumericOption(String tab,
String text,
String unit,
String tip,
double value)
Adds an option allowing the user to enter a numerical value.
|
NumericOption |
addNumericOption(String tab,
String text,
String unit,
String tip,
int value)
Adds an option allowing the user to enter a numerical value.
|
void |
addOption(String tab,
BioOption option)
Adds an option to VisBio's options dialog.
|
StringOption |
addStringOption(String tab,
String text,
String tip,
String value,
String label)
Adds an option allowing the user to enter a string.
|
boolean |
checkMessage(Component parent,
String opt,
boolean allowCancel,
JPanel panel,
String title)
Checks whether to display a message using the given panel, and does so if
necessary.
|
boolean |
checkMessage(Component parent,
String opt,
MessagePane pane)
Checks whether to display a message using the given message pane, and does
so if necessary.
|
boolean |
checkWarning(Component parent,
String opt,
boolean allowCancel,
String text)
Checks whether to display a warning with the given text, and does so if
necessary.
|
void |
doEvent(VisBioEvent evt)
Called to notify the logic manager of a VisBio event.
|
void |
fileOptions()
Brings up the options dialog box.
|
BioOption |
getOption(String text)
Gets the VisBio option with the given text.
|
int |
getTasks()
Gets the number of tasks required to initialize this logic manager.
|
void |
readIni()
Reads in configuration from configuration file.
|
void |
restoreState(Element el)
Restores the current state from the given DOM element ("VisBio").
|
void |
saveState(Element el)
Writes the current state to the given DOM element ("VisBio").
|
void |
writeIni()
Writes out configuration to configuration file.
|
getVisBio
public OptionManager(VisBioFrame bio)
public BooleanOption addBooleanOption(String tab, String text, char mnemonic, String tip, boolean value)
public NumericOption addNumericOption(String tab, String text, String unit, String tip, int value)
public NumericOption addNumericOption(String tab, String text, String unit, String tip, double value)
public StringOption addStringOption(String tab, String text, String tip, String value, String label)
public ListOption addListOption(String tab, String text, String tip, String[] choices)
public CustomOption addCustomOption(String tab, Component c)
public void addOption(String tab, BioOption option)
public void readIni()
public void writeIni()
public boolean checkMessage(Component parent, String opt, boolean allowCancel, JPanel panel, String title)
public boolean checkWarning(Component parent, String opt, boolean allowCancel, String text)
public boolean checkMessage(Component parent, String opt, MessagePane pane)
public void doEvent(VisBioEvent evt)
doEvent
in class LogicManager
public int getTasks()
getTasks
in class LogicManager
public void saveState(Element el) throws SaveException
saveState
in interface Saveable
saveState
in class LogicManager
SaveException
public void restoreState(Element el) throws SaveException
restoreState
in interface Saveable
restoreState
in class LogicManager
SaveException
public void fileOptions()
Copyright © 2015–2022 SciJava. All rights reserved.