Package org.audiveris.proxymusic
Class Ending
java.lang.Object
org.audiveris.proxymusic.Ending
The ending type represents multiple (e.g. first and second) endings. Typically, the start type is associated with the left barline of the first measure in an ending. The stop and discontinue types are associated with the right barline of the last measure in an ending. Stop is used when the ending mark concludes with a downward jog, as is typical for first endings. Discontinue is used when there is no downward jog, as is typical for second endings that do not conclude a piece. The length of the jog can be specified using the end-length attribute. The text-x and text-y attributes are offsets that specify where the baseline of the start of the ending text appears, relative to the start of the ending line.
The number attribute indicates which times the ending is played, similar to the time-only attribute used by other elements. While this often represents the numeric values for what is under the ending line, it can also indicate whether an ending is played during a larger dal segno or da capo repeat. Single endings such as "1" or comma-separated multiple endings such as "1,2" may be used. The ending element text is used when the text displayed in the ending is different than what appears in the number attribute. The print-object attribute is used to indicate when an ending is present but not printed, as is often the case for many parts in a full score.
Java class for ending complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ending">
<simpleContent>
<extension base="<http://www.w3.org/2001/XMLSchema>string">
<attGroup ref="{}print-object"/>
<attGroup ref="{}print-style"/>
<attGroup ref="{}system-relation"/>
<attribute name="number" use="required" type="{}ending-number" />
<attribute name="type" use="required" type="{}start-stop-discontinue" />
<attribute name="end-length" type="{}tenths" />
<attribute name="text-x" type="{}tenths" />
<attribute name="text-y" type="{}tenths" />
</extension>
</simpleContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected BigDecimalprotected BigDecimalprotected BigDecimalprotected Stringprotected Stringprotected FontStyleprotected FontWeightprotected Stringprotected YesNoprotected BigDecimalprotected BigDecimalprotected SystemRelationprotected BigDecimalprotected BigDecimalprotected StartStopDiscontinueprotected 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 endLength property.Gets the value of the fontFamily property.Gets the value of the fontSize property.Gets the value of the fontStyle property.Gets the value of the fontWeight property.Gets the value of the number 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 system property.getTextX()Gets the value of the textX property.getTextY()Gets the value of the textY property.getType()Gets the value of the type property.getValue()Gets the value of the value 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.voidsetEndLength(BigDecimal value) Sets the value of the endLength property.voidsetFontFamily(String value) Sets the value of the fontFamily property.voidsetFontSize(String value) Sets the value of the fontSize property.voidsetFontStyle(FontStyle value) Sets the value of the fontStyle property.voidsetFontWeight(FontWeight value) Sets the value of the fontWeight property.voidSets the value of the number 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.voidsetSystem(SystemRelation value) Sets the value of the system property.voidsetTextX(BigDecimal value) Sets the value of the textX property.voidsetTextY(BigDecimal value) Sets the value of the textY property.voidsetType(StartStopDiscontinue value) Sets the value of the type property.voidSets the value of the value property.
-
Field Details
-
value
-
number
-
type
-
endLength
-
textX
-
textY
-
printObject
-
color
-
fontFamily
-
fontStyle
-
fontSize
-
fontWeight
-
defaultX
-
defaultY
-
relativeX
-
relativeY
-
system
-
-
Constructor Details
-
Ending
public Ending()
-
-
Method Details
-
getValue
Gets the value of the value property.- Returns:
- possible object is
String
-
setValue
Sets the value of the value property.- Parameters:
value- allowed object isString
-
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
-
getType
Gets the value of the type property.- Returns:
- possible object is
StartStopDiscontinue
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isStartStopDiscontinue
-
getEndLength
Gets the value of the endLength property.- Returns:
- possible object is
BigDecimal
-
setEndLength
Sets the value of the endLength property.- Parameters:
value- allowed object isBigDecimal
-
getTextX
Gets the value of the textX property.- Returns:
- possible object is
BigDecimal
-
setTextX
Sets the value of the textX property.- Parameters:
value- allowed object isBigDecimal
-
getTextY
Gets the value of the textY property.- Returns:
- possible object is
BigDecimal
-
setTextY
Sets the value of the textY property.- Parameters:
value- allowed object isBigDecimal
-
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
-
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
-
getFontFamily
Gets the value of the fontFamily property.- Returns:
- possible object is
String
-
setFontFamily
Sets the value of the fontFamily property.- Parameters:
value- allowed object isString
-
getFontStyle
Gets the value of the fontStyle property.- Returns:
- possible object is
FontStyle
-
setFontStyle
Sets the value of the fontStyle property.- Parameters:
value- allowed object isFontStyle
-
getFontSize
Gets the value of the fontSize property.- Returns:
- possible object is
String
-
setFontSize
Sets the value of the fontSize property.- Parameters:
value- allowed object isString
-
getFontWeight
Gets the value of the fontWeight property.- Returns:
- possible object is
FontWeight
-
setFontWeight
Sets the value of the fontWeight property.- Parameters:
value- allowed object isFontWeight
-
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
-
getSystem
Gets the value of the system property.- Returns:
- possible object is
SystemRelation
-
setSystem
Sets the value of the system property.- Parameters:
value- allowed object isSystemRelation
-