ChartPositioning class
Container and calculator of Canvas spacing values for strings and notes
Constructors
- ChartPositioning({required double sixteenthSpacing, required double stringSpacing, required double xOffset})
- ChartPositioning.calculate(Size size, Instrument instrument)
-
Builds a ChartPositioning for the given size and instrument
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sixteenthSpacing → double
-
Spacing between sixteenth notes on x-axis
final
- stringSpacing → double
-
Spacing between strings on y-axis
final
- xOffset → double
-
Horizontal padding on the edges of a measure before first note
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
position(
Note note) → Offset - The center of a Note placement on a chart
-
toString(
) → String -
A string representation of this object.
inherited
-
xPosition(
Note note) → double - A Note's center's x position on a chart
-
yPosition(
Note note) → double - A Note's center's y position on a chart
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited