Class StaffSize

java.lang.Object
org.audiveris.proxymusic.StaffSize

public class StaffSize extends Object
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 Details

  • Constructor Details

    • StaffSize

      public StaffSize()
  • Method Details

    • getValue

      public BigDecimal getValue()
      The non-negative-decimal type specifies a non-negative decimal value.
      Returns:
      possible object is BigDecimal
    • setValue

      public void setValue(BigDecimal value)
      Sets the value of the value property.
      Parameters:
      value - allowed object is BigDecimal
    • getScaling

      public BigDecimal getScaling()
      Gets the value of the scaling property.
      Returns:
      possible object is BigDecimal
    • setScaling

      public void setScaling(BigDecimal value)
      Sets the value of the scaling property.
      Parameters:
      value - allowed object is BigDecimal