public class TextWorldActions
extends java.lang.Object
Constructor and Description |
---|
TextWorldActions() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDictionaryDirectory()
Return the current directory for the dictionary file.
|
static javax.swing.Action |
getExtractDictionaryAction(TextWorld world)
Action for loading a dictionary, by finding every distinct word and
punctuation mark in a text file.
|
static javax.swing.Action |
getShowPreferencesDialogAction(TextWorld world)
Action for displaying a default preference dialog.
|
static javax.swing.Action |
getTextAction(TextWorld world)
Action for loading text in to a display or reader world.
|
static void |
setDictionaryDirectory(java.lang.String dir)
Sets the current directory for the dictionary file (memory for file
chooser).
|
static javax.swing.Action |
showDictionaryEditor(TextWorld world)
Action for showing the vector dictionary editor, either the
token-to-vector dictionary used in readerworld or the vector-to-token
dictionary used in display world.
|
public static javax.swing.Action getExtractDictionaryAction(TextWorld world)
world
- the world whose dictionary should be loadedpublic static javax.swing.Action showDictionaryEditor(TextWorld world)
world
- the world whose dictionary should be displayedpublic static javax.swing.Action getTextAction(TextWorld world)
world
- the world in to which text should be loadedpublic static javax.swing.Action getShowPreferencesDialogAction(TextWorld world)
world
- the world for which a dialog should be shownpublic static void setDictionaryDirectory(java.lang.String dir)
dir
- directory to setpublic static java.lang.String getDictionaryDirectory()