@Alias(value={"mini","minigui"}) public class MiniGUI extends AbstractApplication
Modifier and Type | Class and Description |
---|---|
(package private) class |
MiniGUI.SettingsComboboxModel
Class to interface between the saved settings list and a JComboBox.
|
AbstractApplication.Parameterizer
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ACTION_QUIT
Quit action, for mnemonics.
|
private java.lang.String |
APP_PREFIX
Prefix for application package.
|
protected javax.swing.JComboBox<java.lang.String> |
appCombo
Combo box for choosing the application to run.
|
private javax.swing.JTextField |
commandLine
Command line output field.
|
(package private) javax.swing.JFrame |
frame
The frame
|
private static Logging |
LOG
ELKI logger for the GUI.
|
private java.lang.Class<? extends AbstractApplication> |
maincls
Application to configure / run.
|
static java.lang.String |
NEWLINE
Newline used in output.
|
protected LogPanel |
outputArea
Logging output area.
|
(package private) javax.swing.JPanel |
panel
The main panel.
|
protected DynamicParameters |
parameters
Parameter storage.
|
protected ParameterTable |
parameterTable
The parameter table.
|
protected javax.swing.JButton |
runButton
The "run" button.
|
static java.lang.String |
SAVED_SETTINGS_FILENAME
Filename for saved settings.
|
protected javax.swing.JComboBox<java.lang.String> |
savedCombo
Combo box for saved settings.
|
protected MiniGUI.SettingsComboboxModel |
savedSettingsModel
Model to link the combobox with.
|
protected SavedSettingsFile |
store
Settings storage.
|
REFERENCE, VERSION
Constructor and Description |
---|
MiniGUI()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doSetParameters(java.util.List<java.lang.String> params)
Do the actual setParameters invocation.
|
private java.lang.String |
format(java.lang.Object... params)
Format objects to a command line.
|
private void |
formatTo(java.lang.StringBuilder buf,
java.util.List<?> params)
Format a list of strings to a buffer.
|
private void |
formatTo(java.lang.StringBuilder buf,
java.lang.String s)
Format a single string for the command line.
|
protected void |
loadLatest()
Auto-load the last task from the history file.
|
static void |
main(java.lang.String[] args)
Main method that just spawns the UI.
|
protected void |
reportErrors(SerializedParameterization config)
Report errors in a single error log record.
|
void |
run()
Runs the application.
|
private void |
setupAppChooser()
Setup the application chooser.
|
private void |
setupCommandLine()
Setup command line field
|
private void |
setupLoadSaveButtons()
Create the load and save buttons.
|
private void |
setupLoggingArea()
Setup logging area
|
private void |
setupParameterTable()
Setup the parameter table
|
protected void |
startTask()
Do a full run of the KDDTask with the specified parameters.
|
protected void |
updateParameterTable()
Serialize the parameter table and run setParameters().
|
printErrorMessage, runCLIApplication, usage
public static final java.lang.String SAVED_SETTINGS_FILENAME
public static final java.lang.String NEWLINE
private static final Logging LOG
protected static final java.lang.String ACTION_QUIT
javax.swing.JFrame frame
javax.swing.JPanel panel
protected LogPanel outputArea
protected ParameterTable parameterTable
protected DynamicParameters parameters
protected SavedSettingsFile store
protected javax.swing.JComboBox<java.lang.String> appCombo
protected javax.swing.JComboBox<java.lang.String> savedCombo
protected MiniGUI.SettingsComboboxModel savedSettingsModel
protected javax.swing.JButton runButton
private java.lang.Class<? extends AbstractApplication> maincls
private javax.swing.JTextField commandLine
private java.lang.String APP_PREFIX
private void setupAppChooser()
private void setupParameterTable()
private void setupLoadSaveButtons()
private void setupCommandLine()
private void setupLoggingArea()
protected void updateParameterTable()
protected void doSetParameters(java.util.List<java.lang.String> params)
params
- Parametersprivate java.lang.String format(java.lang.Object... params)
params
- Parameters to format (Strings, or list of strings)private void formatTo(java.lang.StringBuilder buf, java.util.List<?> params)
buf
- Output bufferparams
- List of stringsprivate void formatTo(java.lang.StringBuilder buf, java.lang.String s)
buf
- Output buffers
- Stringprotected void loadLatest()
protected void startTask()
protected void reportErrors(SerializedParameterization config)
config
- Parameterizationpublic void run()
AbstractApplication
run
in class AbstractApplication
public static void main(java.lang.String[] args)
args
- command line parametersCopyright © 2019 ELKI Development Team. License information.