Package org.audiveris.proxymusic
Class StaffSize
java.lang.Object
org.audiveris.proxymusic.StaffSize
The staff-size element indicates how large a staff space is on this staff, expressed as a percentage of the work's default scaling. Values less than 100 make the staff space smaller while values over 100 make the staff space larger. A staff-type of cue, ossia, or editorial implies a staff-size of less than 100, but the exact value is implementation-dependent unless specified here. Staff size affects staff height only, not the relationship of the staff to the left and right margins.
In some cases, a staff-size different than 100 also scales the notation on the staff, such as with a cue staff. In other cases, such as percussion staves, the lines may be more widely spaced without scaling the notation on the staff. The scaling attribute allows these two cases to be distinguished. It specifies the percentage scaling that applies to the notation. Values less that 100 make the notation smaller while values over 100 make the notation larger. The staff-size content and scaling attribute are both non-negative decimal values.
Java class for staff-size complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="staff-size">
<simpleContent>
<extension base="<>non-negative-decimal">
<attribute name="scaling" type="{}non-negative-decimal" />
</extension>
</simpleContent>
</complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the scaling property.getValue()The non-negative-decimal type specifies a non-negative decimal value.voidsetScaling(BigDecimal value) Sets the value of the scaling property.voidsetValue(BigDecimal value) Sets the value of the value property.
-
Field Details
-
value
-
scaling
-
-
Constructor Details
-
StaffSize
public StaffSize()
-
-
Method Details
-
getValue
The non-negative-decimal type specifies a non-negative decimal value.- Returns:
- possible object is
BigDecimal
-
setValue
Sets the value of the value property.- Parameters:
value- allowed object isBigDecimal
-
getScaling
Gets the value of the scaling property.- Returns:
- possible object is
BigDecimal
-
setScaling
Sets the value of the scaling property.- Parameters:
value- allowed object isBigDecimal
-