Package org.audiveris.proxymusic
Class Scaling
java.lang.Object
org.audiveris.proxymusic.Scaling
Margins, page sizes, and distances are all measured in tenths to keep MusicXML data in a consistent coordinate system as much as possible. The translation to absolute units is done with the scaling type, which specifies how many millimeters are equal to how many tenths. For a staff height of 7 mm, millimeters would be set to 7 while tenths is set to 40. The ability to set a formula rather than a single scaling factor helps avoid roundoff errors.
Java class for scaling complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="scaling">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="millimeters" type="{}millimeters"/>
<element name="tenths" type="{}tenths"/>
</sequence>
</restriction>
</complexContent>
</complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the millimeters property.Gets the value of the tenths property.voidsetMillimeters(BigDecimal value) Sets the value of the millimeters property.voidsetTenths(BigDecimal value) Sets the value of the tenths property.
-
Field Details
-
millimeters
-
tenths
-
-
Constructor Details
-
Scaling
public Scaling()
-
-
Method Details
-
getMillimeters
Gets the value of the millimeters property.- Returns:
- possible object is
BigDecimal
-
setMillimeters
Sets the value of the millimeters property.- Parameters:
value- allowed object isBigDecimal
-
getTenths
Gets the value of the tenths property.- Returns:
- possible object is
BigDecimal
-
setTenths
Sets the value of the tenths property.- Parameters:
value- allowed object isBigDecimal
-