Class SyllabificationExtension
java.lang.Object
ca.phon.app.session.editor.view.transcript.extensions.SyllabificationExtension
- All Implemented Interfaces:
TranscriptEditorExtension
An extension that provides syllabification support to the
TranscriptEditor
This extension will add syllabification tiers to the end of IPA tiers.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildSyllabificationBatch(TranscriptBatchBuilder builder, MutableAttributeSet attrs) Builds a syllabification batch for the current session and attributes.Gets an attribute set containing a reference to the syllabification component factory.voidinstall(TranscriptEditor editor) booleanbooleanvoidonScEdit(EditorEvent<ScTypeEdit.ScEditData> event) voidUpdate on tier changevoidonTranscriptLocationChanged(TranscriptElementLocation oldLocation, TranscriptElementLocation newLocation)
-
Field Details
-
SYLLABIFICATION_IS_VISIBLE
- See Also:
-
SYLLABIFICATION_IS_VISIBLE_DEFAULT
public static final boolean SYLLABIFICATION_IS_VISIBLE_DEFAULT- See Also:
-
SYLLABIFICATION_IS_COMPONENT
- See Also:
-
SYLLABIFICATION_IS_COMPONENT_DEFAULT
public static final boolean SYLLABIFICATION_IS_COMPONENT_DEFAULT- See Also:
-
-
Constructor Details
-
SyllabificationExtension
public SyllabificationExtension()Constructor
-
-
Method Details
-
install
- Specified by:
installin interfaceTranscriptEditorExtension
-
buildSyllabificationBatch
Builds a syllabification batch for the current session and attributes.- Parameters:
builder- theTranscriptBatchBuilderto build the syllabification batch intoattrs- the attributes to use for the syllabification tier - must be setup for syllabification
-
onTranscriptLocationChanged
public void onTranscriptLocationChanged(TranscriptElementLocation oldLocation, TranscriptElementLocation newLocation) -
onScEdit
-
onTierDataChanged
Update on tier change -
getSyllabificationDisplayAttributes
Gets an attribute set containing a reference to the syllabification component factory. Adding the contents of this attribute set to the attributes of a syllabification tier will cause it to appear as theSyllabificationDisplaycomponent instead of text- Returns:
- an attribute set containing a reference to the syllabification component factory
-
isSyllabificationVisible
public boolean isSyllabificationVisible() -
isSyllabificationComponent
public boolean isSyllabificationComponent()
-