Package org.audiveris.proxymusic
Class Lyric
java.lang.Object
org.audiveris.proxymusic.Lyric
[JAXB: simplified definition]
The lyric type represents text underlays for lyrics. Two text elements that are not separated by an elision element are part of the same syllable, but may have different text formatting. The MusicXML XSD is more strict than the DTD in enforcing this by disallowing a second syllabic element unless preceded by an elision element. The lyric number indicates multiple lines, though a name can be used as well. Common name examples are verse and chorus. Justification is center by default; placement is below by default. Vertical alignment is to the baseline of the text and horizontal alignment matches justification. The print-object attribute can override a note's print-lyric attribute in cases where only some lyrics on a note are printed, as when lyrics for later verses are printed in a block of text rather than with each note. The time-only attribute precisely specifies which lyrics are to be sung which time through a repeated section.
The lyric type represents text underlays for lyrics. Two text elements that are not separated by an elision element are part of the same syllable, but may have different text formatting. The MusicXML XSD is more strict than the DTD in enforcing this by disallowing a second syllabic element unless preceded by an elision element. The lyric number indicates multiple lines, though a name can be used as well. Common name examples are verse and chorus. Justification is center by default; placement is below by default. Vertical alignment is to the baseline of the text and horizontal alignment matches justification. The print-object attribute can override a note's print-lyric attribute in cases where only some lyrics on a note are printed, as when lyrics for later verses are printed in a block of text rather than with each note. The time-only attribute precisely specifies which lyrics are to be sung which time through a repeated section.
Java class for lyric complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="lyric">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<choice>
<sequence>
<sequence maxOccurs="unbounded" minOccurs="0">
<element name="elision" type="{}elision" minOccurs="0"/>
<element name="syllabic" type="{}syllabic" minOccurs="0"/>
<element name="text" type="{}text-element-data" minOccurs="0"/>
</sequence>
<element name="extend" type="{}extend" minOccurs="0"/>
</sequence>
<element name="laughing" type="{}empty"/>
<element name="humming" type="{}empty"/>
</choice>
<element name="end-line" type="{}empty" minOccurs="0"/>
<element name="end-paragraph" type="{}empty" minOccurs="0"/>
<group ref="{}editorial"/>
</sequence>
<attGroup ref="{}position"/>
<attGroup ref="{}optional-unique-id"/>
<attGroup ref="{}placement"/>
<attGroup ref="{}color"/>
<attGroup ref="{}print-object"/>
<attGroup ref="{}justify"/>
<attribute name="number" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
<attribute name="name" type="{http://www.w3.org/2001/XMLSchema}token" />
<attribute name="time-only" type="{}time-only" />
</restriction>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected BigDecimalprotected BigDecimalprotected Emptyprotected Emptyprotected Extendprotected FormattedTextprotected Emptyprotected Stringprotected LeftCenterRightprotected Emptyprotected Levelprotected Stringprotected Stringprotected AboveBelowprotected YesNoprotected BigDecimalprotected BigDecimalprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Gets the value of the color property.Gets the value of the defaultX property.Gets the value of the defaultY property.Gets the value of the elisionAndSyllabicAndText property.Gets the value of the endLine property.Gets the value of the endParagraph property.Gets the value of the extend property.Gets the value of the footnote property.Gets the value of the humming property.getId()Gets the value of the id property.Gets the value of the justify property.Gets the value of the laughing property.getLevel()Gets the value of the level property.getName()Gets the value of the name property.Gets the value of the number property.Gets the value of the placement property.Gets the value of the printObject property.Gets the value of the relativeX property.Gets the value of the relativeY property.Gets the value of the timeOnly property.voidSets the value of the color property.voidsetDefaultX(BigDecimal value) Sets the value of the defaultX property.voidsetDefaultY(BigDecimal value) Sets the value of the defaultY property.voidsetEndLine(Empty value) Sets the value of the endLine property.voidsetEndParagraph(Empty value) Sets the value of the endParagraph property.voidSets the value of the extend property.voidsetFootnote(FormattedText value) Sets the value of the footnote property.voidsetHumming(Empty value) Sets the value of the humming property.voidSets the value of the id property.voidsetJustify(LeftCenterRight value) Sets the value of the justify property.voidsetLaughing(Empty value) Sets the value of the laughing property.voidSets the value of the level property.voidSets the value of the name property.voidSets the value of the number property.voidsetPlacement(AboveBelow value) Sets the value of the placement property.voidsetPrintObject(YesNo value) Sets the value of the printObject property.voidsetRelativeX(BigDecimal value) Sets the value of the relativeX property.voidsetRelativeY(BigDecimal value) Sets the value of the relativeY property.voidsetTimeOnly(String value) Sets the value of the timeOnly property.
-
Field Details
-
elisionAndSyllabicAndText
-
extend
-
laughing
-
humming
-
endLine
-
endParagraph
-
footnote
-
level
-
number
-
name
-
timeOnly
-
defaultX
-
defaultY
-
relativeX
-
relativeY
-
id
-
placement
-
color
-
printObject
-
justify
-
-
Constructor Details
-
Lyric
public Lyric()
-
-
Method Details
-
getElisionAndSyllabicAndText
Gets the value of the elisionAndSyllabicAndText property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the elisionAndSyllabicAndText property.For example, to add a new item, do as follows:
getElisionAndSyllabicAndText().add(newItem);Objects of the following type(s) are allowed in the list
ElisionSyllabicTextElementData -
getExtend
Gets the value of the extend property.- Returns:
- possible object is
Extend
-
setExtend
Sets the value of the extend property.- Parameters:
value- allowed object isExtend
-
getLaughing
Gets the value of the laughing property.- Returns:
- possible object is
Empty
-
setLaughing
Sets the value of the laughing property.- Parameters:
value- allowed object isEmpty
-
getHumming
Gets the value of the humming property.- Returns:
- possible object is
Empty
-
setHumming
Sets the value of the humming property.- Parameters:
value- allowed object isEmpty
-
getEndLine
Gets the value of the endLine property.- Returns:
- possible object is
Empty
-
setEndLine
Sets the value of the endLine property.- Parameters:
value- allowed object isEmpty
-
getEndParagraph
Gets the value of the endParagraph property.- Returns:
- possible object is
Empty
-
setEndParagraph
Sets the value of the endParagraph property.- Parameters:
value- allowed object isEmpty
-
getFootnote
Gets the value of the footnote property.- Returns:
- possible object is
FormattedText
-
setFootnote
Sets the value of the footnote property.- Parameters:
value- allowed object isFormattedText
-
getLevel
Gets the value of the level property.- Returns:
- possible object is
Level
-
setLevel
Sets the value of the level property.- Parameters:
value- allowed object isLevel
-
getNumber
Gets the value of the number property.- Returns:
- possible object is
String
-
setNumber
Sets the value of the number property.- Parameters:
value- allowed object isString
-
getName
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
Sets the value of the name property.- Parameters:
value- allowed object isString
-
getTimeOnly
Gets the value of the timeOnly property.- Returns:
- possible object is
String
-
setTimeOnly
Sets the value of the timeOnly property.- Parameters:
value- allowed object isString
-
getDefaultX
Gets the value of the defaultX property.- Returns:
- possible object is
BigDecimal
-
setDefaultX
Sets the value of the defaultX property.- Parameters:
value- allowed object isBigDecimal
-
getDefaultY
Gets the value of the defaultY property.- Returns:
- possible object is
BigDecimal
-
setDefaultY
Sets the value of the defaultY property.- Parameters:
value- allowed object isBigDecimal
-
getRelativeX
Gets the value of the relativeX property.- Returns:
- possible object is
BigDecimal
-
setRelativeX
Sets the value of the relativeX property.- Parameters:
value- allowed object isBigDecimal
-
getRelativeY
Gets the value of the relativeY property.- Returns:
- possible object is
BigDecimal
-
setRelativeY
Sets the value of the relativeY property.- Parameters:
value- allowed object isBigDecimal
-
getId
Gets the value of the id property.- Returns:
- possible object is
String
-
setId
Sets the value of the id property.- Parameters:
value- allowed object isString
-
getPlacement
Gets the value of the placement property.- Returns:
- possible object is
AboveBelow
-
setPlacement
Sets the value of the placement property.- Parameters:
value- allowed object isAboveBelow
-
getColor
Gets the value of the color property.- Returns:
- possible object is
String
-
setColor
Sets the value of the color property.- Parameters:
value- allowed object isString
-
getPrintObject
Gets the value of the printObject property.- Returns:
- possible object is
YesNo
-
setPrintObject
Sets the value of the printObject property.- Parameters:
value- allowed object isYesNo
-
getJustify
Gets the value of the justify property.- Returns:
- possible object is
LeftCenterRight
-
setJustify
Sets the value of the justify property.- Parameters:
value- allowed object isLeftCenterRight
-