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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JPanelGet 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 SyllabifierSettingsPanelgetTitle()Return the editor title for the given model.protected Map<String, JComponent> booleanisInitiallyMinimized(String viewName) voidsetupContext(ca.phon.opgraph.OpContext context) Called just before starting debuging.booleanvalidate()Validate document before saving.Methods inherited from class ca.phon.app.opgraph.editor.OpgraphEditorModel
getAvailableViewNames, getCanvas, getIconForView, getLibraryView, getNodeSettings, getScriptNodeEditor, getView, getViewMinimizeLocationMethods 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:OpgraphEditorModelCalled just before starting debuging.- Overrides:
setupContextin classOpgraphEditorModel- Parameters:
context-
-
getViewMap
- Overrides:
getViewMapin classOpgraphEditorModel
-
isInitiallyMinimized
- Overrides:
isInitiallyMinimizedin classOpgraphEditorModel
-
validate
public boolean validate()Description copied from class:OpgraphEditorModelValidate document before saving.- Overrides:
validatein classOpgraphEditorModel- Returns:
trueif document (graph) is valid,falseotherwise
-
getInitialViewBounds
Description copied from class:OpgraphEditorModelGet initial view location as a rectangle.- Overrides:
getInitialViewBoundsin classOpgraphEditorModel- Parameters:
viewName-- Returns:
- initial view rect
-
getDefaultFolder
Description copied from class:OpgraphEditorModelGet the default folder when displaying the open/save dialog.- Overrides:
getDefaultFolderin classOpgraphEditorModel- Returns:
- folder path
-
getTitle
Description copied from class:OpgraphEditorModelReturn the editor title for the given model.- Specified by:
getTitlein classOpgraphEditorModel- Returns:
- title
-
getNoun
Description copied from class:OpgraphEditorModelReturn the noun associated with the type of graph. The first element of theTupleis the singleton version, while the second element is the plural. String should be returned as all lower case.- Specified by:
getNounin classOpgraphEditorModel- Returns:
- Tupleinvalid input: '<'String, String>
-