Class SyllabificationExtension

java.lang.Object
ca.phon.app.session.editor.view.transcript.extensions.SyllabificationExtension
All Implemented Interfaces:
TranscriptEditorExtension

public class SyllabificationExtension extends Object implements TranscriptEditorExtension
An extension that provides syllabification support to the TranscriptEditor This extension will add syllabification tiers to the end of IPA tiers.
  • Field Details

    • SYLLABIFICATION_IS_VISIBLE

      public static final String SYLLABIFICATION_IS_VISIBLE
      See Also:
    • SYLLABIFICATION_IS_VISIBLE_DEFAULT

      public static final boolean SYLLABIFICATION_IS_VISIBLE_DEFAULT
      See Also:
    • SYLLABIFICATION_IS_COMPONENT

      public static final String 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

      public void install(TranscriptEditor editor)
      Specified by:
      install in interface TranscriptEditorExtension
    • buildSyllabificationBatch

      public void buildSyllabificationBatch(TranscriptBatchBuilder builder, MutableAttributeSet attrs)
      Builds a syllabification batch for the current session and attributes.
      Parameters:
      builder - the TranscriptBatchBuilder to build the syllabification batch into
      attrs - the attributes to use for the syllabification tier - must be setup for syllabification
    • onTranscriptLocationChanged

      public void onTranscriptLocationChanged(TranscriptElementLocation oldLocation, TranscriptElementLocation newLocation)
    • onScEdit

      public void onScEdit(EditorEvent<ScTypeEdit.ScEditData> event)
    • onTierDataChanged

      public void onTierDataChanged(EditorEvent<EditorEventType.TierChangeData> event)
      Update on tier change
    • getSyllabificationDisplayAttributes

      public SimpleAttributeSet 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 the SyllabificationDisplay component instead of text
      Returns:
      an attribute set containing a reference to the syllabification component factory
    • isSyllabificationVisible

      public boolean isSyllabificationVisible()
    • isSyllabificationComponent

      public boolean isSyllabificationComponent()