Package org.audiveris.proxymusic
Class Clef
java.lang.Object
org.audiveris.proxymusic.Clef
Clefs are represented by a combination of sign, line, and clef-octave-change elements. The optional number attribute refers to staff numbers within the part. A value of 1 is assumed if not present.
Sometimes clefs are added to the staff in non-standard line positions, either to indicate cue passages, or when there are multiple clefs present simultaneously on one staff. In this situation, the additional attribute is set to "yes" and the line value is ignored. The size attribute is used for clefs where the additional attribute is "yes". It is typically used to indicate cue clefs.
Sometimes clefs at the start of a measure need to appear after the barline rather than before, as for cues or for use after a repeated section. The after-barline attribute is set to "yes" in this situation. The attribute is ignored for mid-measure clefs.
Clefs appear at the start of each system unless the print-object attribute has been set to "no" or the additional attribute has been set to "yes".
Java class for clef complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="clef">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<group ref="{}clef"/>
<attGroup ref="{}optional-unique-id"/>
<attGroup ref="{}print-object"/>
<attGroup ref="{}print-style"/>
<attribute name="number" type="{}staff-number" />
<attribute name="additional" type="{}yes-no" />
<attribute name="size" type="{}symbol-size" />
<attribute name="after-barline" type="{}yes-no" />
</restriction>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected YesNoprotected YesNoprotected BigIntegerprotected Stringprotected BigDecimalprotected BigDecimalprotected Stringprotected Stringprotected FontStyleprotected FontWeightprotected Stringprotected BigIntegerprotected BigIntegerprotected YesNoprotected BigDecimalprotected BigDecimalprotected ClefSignprotected SymbolSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the additional property.Gets the value of the afterBarline property.Gets the value of the clefOctaveChange property.getColor()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 fontFamily property.Gets the value of the fontSize property.Gets the value of the fontStyle property.Gets the value of the fontWeight property.getId()Gets the value of the id property.getLine()Gets the value of the line 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.getSign()Gets the value of the sign property.getSize()Gets the value of the size property.voidsetAdditional(YesNo value) Sets the value of the additional property.voidsetAfterBarline(YesNo value) Sets the value of the afterBarline property.voidsetClefOctaveChange(BigInteger value) Sets the value of the clefOctaveChange 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.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 id property.voidsetLine(BigInteger value) Sets the value of the line property.voidsetNumber(BigInteger value) Sets 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.voidSets the value of the sign property.voidsetSize(SymbolSize value) Sets the value of the size property.
-
Field Details
-
sign
-
line
-
clefOctaveChange
-
number
-
additional
-
size
-
afterBarline
-
id
-
printObject
-
color
-
fontFamily
-
fontStyle
-
fontSize
-
fontWeight
-
defaultX
-
defaultY
-
relativeX
-
relativeY
-
-
Constructor Details
-
Clef
public Clef()
-
-
Method Details
-
getSign
Gets the value of the sign property.- Returns:
- possible object is
ClefSign
-
setSign
Sets the value of the sign property.- Parameters:
value- allowed object isClefSign
-
getLine
Gets the value of the line property.- Returns:
- possible object is
BigInteger
-
setLine
Sets the value of the line property.- Parameters:
value- allowed object isBigInteger
-
getClefOctaveChange
Gets the value of the clefOctaveChange property.- Returns:
- possible object is
BigInteger
-
setClefOctaveChange
Sets the value of the clefOctaveChange property.- Parameters:
value- allowed object isBigInteger
-
getNumber
Gets the value of the number property.- Returns:
- possible object is
BigInteger
-
setNumber
Sets the value of the number property.- Parameters:
value- allowed object isBigInteger
-
getAdditional
Gets the value of the additional property.- Returns:
- possible object is
YesNo
-
setAdditional
Sets the value of the additional property.- Parameters:
value- allowed object isYesNo
-
getSize
Gets the value of the size property.- Returns:
- possible object is
SymbolSize
-
setSize
Sets the value of the size property.- Parameters:
value- allowed object isSymbolSize
-
getAfterBarline
Gets the value of the afterBarline property.- Returns:
- possible object is
YesNo
-
setAfterBarline
Sets the value of the afterBarline property.- Parameters:
value- allowed object isYesNo
-
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
-
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
-