Package ca.phon.app.opgraph.syllabifier
Class OpGraphSyllabifierEditorModel
java.lang.Object
ca.phon.opgraph.app.GraphEditorModel
ca.phon.app.opgraph.editor.OpgraphEditorModel
ca.phon.app.opgraph.syllabifier.OpGraphSyllabifierEditorModel
Editor model for syllabifiers implemented with opgraph.
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.phon.app.opgraph.editor.OpgraphEditorModel
OpgraphEditorModel.ViewLocation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected JPanel
Get the default folder when displaying the open/save dialog.getInitialViewBounds
(String viewName) Get initial view location as a rectangle.getNoun()
Return the noun associated with the type of graph.protected SyllabifierSettingsPanel
getTitle()
Return the editor title for the given model.protected Map<String,
JComponent> boolean
isInitiallyMinimized
(String viewName) void
setupContext
(ca.phon.opgraph.OpContext context) Called just before starting debuging.boolean
validate()
Validate document before saving.Methods inherited from class ca.phon.app.opgraph.editor.OpgraphEditorModel
getAvailableViewNames, getCanvas, getIconForView, getLibraryView, getNodeSettings, getScriptNodeEditor, getView, getViewMinimizeLocation
Methods inherited from class ca.phon.opgraph.app.GraphEditorModel
getBreadcrumb, getConsolePanel, getDebugInfoPanel, getDocument, getGraphOutline, getMenuProviders, getNodeFieldsPanel, getNodeLibrary
-
Constructor Details
-
OpGraphSyllabifierEditorModel
public OpGraphSyllabifierEditorModel() -
OpGraphSyllabifierEditorModel
public OpGraphSyllabifierEditorModel(ca.phon.opgraph.OpGraph opgraph)
-
-
Method Details
-
getDebugSettings
-
getSyllabifierSettings
-
setupContext
public void setupContext(ca.phon.opgraph.OpContext context) Description copied from class:OpgraphEditorModel
Called just before starting debuging.- Overrides:
setupContext
in classOpgraphEditorModel
-
getViewMap
- Overrides:
getViewMap
in classOpgraphEditorModel
-
isInitiallyMinimized
- Overrides:
isInitiallyMinimized
in classOpgraphEditorModel
-
validate
public boolean validate()Description copied from class:OpgraphEditorModel
Validate document before saving.- Overrides:
validate
in classOpgraphEditorModel
- Returns:
true
if document (graph) is valid,false
otherwise
-
getInitialViewBounds
Description copied from class:OpgraphEditorModel
Get initial view location as a rectangle.- Overrides:
getInitialViewBounds
in classOpgraphEditorModel
- Returns:
- initial view rect
-
getDefaultFolder
Description copied from class:OpgraphEditorModel
Get the default folder when displaying the open/save dialog.- Overrides:
getDefaultFolder
in classOpgraphEditorModel
- Returns:
- folder path
-
getTitle
Description copied from class:OpgraphEditorModel
Return the editor title for the given model.- Specified by:
getTitle
in classOpgraphEditorModel
- Returns:
- title
-
getNoun
Description copied from class:OpgraphEditorModel
Return the noun associated with the type of graph. The first element of theTuple
is the singleton version, while the second element is the plural. String should be returned as all lower case.- Specified by:
getNoun
in classOpgraphEditorModel
- Returns:
- Tupleinvalid input: '<'String, String>
-