Package org.audiveris.proxymusic
Class Barline
java.lang.Object
org.audiveris.proxymusic.Barline
If a barline is other than a normal single barline, it should be represented by a barline type that describes it. This includes information about repeats and multiple endings, as well as line style. Barline data is on the same level as the other musical data in a score - a child of a measure in a partwise score, or a part in a timewise score. This allows for barlines within measures, as in dotted barlines that subdivide measures in complex meters. The two fermata elements allow for fermatas on both sides of the barline (the lower one inverted).
Barlines have a location attribute to make it easier to process barlines independently of the other musical data in a score. It is often easier to set up measures separately from entering notes. The location attribute must match where the barline element occurs within the rest of the musical data in the score. If location is left, it should be the first element in the measure, aside from the print, bookmark, and link elements. If location is right, it should be the last element, again with the possible exception of the print, bookmark, and link elements. If no location is specified, the right barline is the default. The segno, coda, and divisions attributes work the same way as in the sound element. They are used for playback when barline elements contain segno or coda child elements.
Java class for barline complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="barline">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="bar-style" type="{}bar-style-color" minOccurs="0"/>
<group ref="{}editorial"/>
<element name="wavy-line" type="{}wavy-line" minOccurs="0"/>
<element name="segno" type="{}segno" minOccurs="0"/>
<element name="coda" type="{}coda" minOccurs="0"/>
<element name="fermata" type="{}fermata" maxOccurs="2" minOccurs="0"/>
<element name="ending" type="{}ending" minOccurs="0"/>
<element name="repeat" type="{}repeat" minOccurs="0"/>
</sequence>
<attGroup ref="{}optional-unique-id"/>
<attribute name="location" type="{}right-left-middle" default="right" />
<attribute name="segno" type="{http://www.w3.org/2001/XMLSchema}token" />
<attribute name="coda" type="{http://www.w3.org/2001/XMLSchema}token" />
<attribute name="divisions" type="{}divisions" />
</restriction>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BarStyleColorprotected Codaprotected Stringprotected BigDecimalprotected Endingprotected FormattedTextprotected Stringprotected Levelprotected RightLeftMiddleprotected Repeatprotected Segnoprotected Stringprotected WavyLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the barStyle property.getCoda()Gets the value of the coda property.Gets the value of the codaAttribute property.Gets the value of the divisions property.Gets the value of the ending property.Gets the value of the fermata property.Gets the value of the footnote property.getId()Gets the value of the id property.getLevel()Gets the value of the level property.Gets the value of the location property.Gets the value of the repeat property.getSegno()Gets the value of the segno property.Gets the value of the segnoAttribute property.Gets the value of the wavyLine property.voidsetBarStyle(BarStyleColor value) Sets the value of the barStyle property.voidSets the value of the coda property.voidsetCodaAttribute(String value) Sets the value of the codaAttribute property.voidsetDivisions(BigDecimal value) Sets the value of the divisions property.voidSets the value of the ending property.voidsetFootnote(FormattedText value) Sets the value of the footnote property.voidSets the value of the id property.voidSets the value of the level property.voidsetLocation(RightLeftMiddle value) Sets the value of the location property.voidSets the value of the repeat property.voidSets the value of the segno property.voidsetSegnoAttribute(String value) Sets the value of the segnoAttribute property.voidsetWavyLine(WavyLine value) Sets the value of the wavyLine property.
-
Field Details
-
barStyle
-
footnote
-
level
-
wavyLine
-
segno
-
coda
-
fermata
-
ending
-
repeat
-
location
-
segnoAttribute
-
codaAttribute
-
divisions
-
id
-
-
Constructor Details
-
Barline
public Barline()
-
-
Method Details
-
getBarStyle
Gets the value of the barStyle property.- Returns:
- possible object is
BarStyleColor
-
setBarStyle
Sets the value of the barStyle property.- Parameters:
value- allowed object isBarStyleColor
-
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
-
getWavyLine
Gets the value of the wavyLine property.- Returns:
- possible object is
WavyLine
-
setWavyLine
Sets the value of the wavyLine property.- Parameters:
value- allowed object isWavyLine
-
getSegno
Gets the value of the segno property.- Returns:
- possible object is
Segno
-
setSegno
Sets the value of the segno property.- Parameters:
value- allowed object isSegno
-
getCoda
Gets the value of the coda property.- Returns:
- possible object is
Coda
-
setCoda
Sets the value of the coda property.- Parameters:
value- allowed object isCoda
-
getFermata
Gets the value of the fermata 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 fermata property.For example, to add a new item, do as follows:
getFermata().add(newItem);Objects of the following type(s) are allowed in the list
Fermata -
getEnding
Gets the value of the ending property.- Returns:
- possible object is
Ending
-
setEnding
Sets the value of the ending property.- Parameters:
value- allowed object isEnding
-
getRepeat
Gets the value of the repeat property.- Returns:
- possible object is
Repeat
-
setRepeat
Sets the value of the repeat property.- Parameters:
value- allowed object isRepeat
-
getLocation
Gets the value of the location property.- Returns:
- possible object is
RightLeftMiddle
-
setLocation
Sets the value of the location property.- Parameters:
value- allowed object isRightLeftMiddle
-
getSegnoAttribute
Gets the value of the segnoAttribute property.- Returns:
- possible object is
String
-
setSegnoAttribute
Sets the value of the segnoAttribute property.- Parameters:
value- allowed object isString
-
getCodaAttribute
Gets the value of the codaAttribute property.- Returns:
- possible object is
String
-
setCodaAttribute
Sets the value of the codaAttribute property.- Parameters:
value- allowed object isString
-
getDivisions
Gets the value of the divisions property.- Returns:
- possible object is
BigDecimal
-
setDivisions
Sets the value of the divisions 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
-