Package ca.phon.ipa
Class CompoundPhone
java.lang.Object
ca.phon.ipa.IPAElement
ca.phon.ipa.Phone
ca.phon.ipa.CompoundPhone
- All Implemented Interfaces:
IExtendable
,CombiningDiacritics
,PrefixDiacritics
,SuffixDiacritics
,Visitable<IPAElement>
A compound Phone consists of two phones connected
by a ligature.
-
Field Summary
Fields inherited from class ca.phon.ipa.IPAElement
PHONE_TEXT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FeatureSet
Private method to return the feature set for theIPAElement
.getBase()
Get the base for the compound phoneGet the first phone in this compoundGet the ligature usedGet second phonegetText()
Get the text for this phoneGet the tone diacritics for this phone.void
setFirstPhone
(Phone phone) Set the first phone for this compoundvoid
setLigature
(Character ligature) Set the ligaturevoid
setSecondPhone
(Phone phone) Set second phoneMethods inherited from class ca.phon.ipa.Phone
getBaseFeatures, getBasePhone, getCombining, getCombiningDiacritics, getCombiningFeatures, getLengthDiacritics, getPrefix, getPrefixDiacritics, getPrefixFeatures, getSuffix, getSuffixDiacritics, getSuffixFeatures, setBasePhone, setCombiningDiacritics, setPrefixDiacritics, setSuffixDiacritics
Methods inherited from class ca.phon.ipa.IPAElement
accept, addPropertyChangeListener, addPropertyChangeListener, contentEquals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getExtension, getExtensions, getFeatureSet, getPropertyChangeListeners, getPropertyChangeListeners, getScType, hasListeners, putExtension, removeExtension, removePropertyChangeListener, removePropertyChangeListener, setFeatureSet, setScType, toString
-
Constructor Details
-
CompoundPhone
public CompoundPhone()
-
-
Method Details
-
getFirstPhone
Get the first phone in this compound- Returns:
- the first phone
-
setFirstPhone
Set the first phone for this compound- Parameters:
phone
-
-
getBase
Get the base for the compound phone -
getSecondPhone
Get second phone- Returns:
- the second phone
-
setSecondPhone
Set second phone- Parameters:
phone
-
-
getLigature
Get the ligature used- Returns:
- the ligature glyph
-
setLigature
Set the ligature- Parameters:
ligature
-
-
getToneNumberDiacritics
Description copied from class:Phone
Get the tone diacritics for this phone.- Overrides:
getToneNumberDiacritics
in classPhone
- Returns:
- tone diacritics
-
_getFeatureSet
Description copied from class:IPAElement
Private method to return the feature set for theIPAElement
. This return value for this method can be changed by using theIPAElement.setFeatureSet(FeatureSet)
method.- Overrides:
_getFeatureSet
in classPhone
- Returns:
- the phones feature set
-
getText
Description copied from class:IPAElement
Get the text for this phone
-