Class ChartGraphics_byStrings
java.lang.Object
eu.bandm.music.applications.tabstaff.ChartGraphics
eu.bandm.music.applications.tabstaff.ChartGraphics_byStrings
Old implementation variant which generates SVG text by directly constructing
Java String values.
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.music.applications.tabstaff.ChartGraphics
ChartGraphics.rank
-
Field Summary
Modifier and TypeFieldDescription(package private) float
Duration (in seconds) subtracted from the end of a keypress, to visually indicate key repetitions.static final String
First line of any XML file, declaring version = 1.0 and encoding = utf8.Fields inherited from class eu.bandm.music.applications.tabstaff.ChartGraphics
circleRadius, color_diatonic, color_keypress, color_notDiatonic, color_numberOnFill, dist_x, dist_y, linewidth_fat, linewidth_slim, majorMode, maxCol, maxRow, minorMode, msg, offset_x, offset_y, rotSquareSize, round_x, round_y, score, seconds_per_whole, size_x, size_y, squareSize
-
Constructor Summary
ConstructorDescriptionChartGraphics_byStrings
(int rows, int cols, Tabstaff score, SimpleMessage.Sender<XMLDocumentIdentifier> msg) -
Method Summary
Modifier and TypeMethodDescription(package private) String
Generate the svg source for printing the finger number.svg_fullGrid
(ChartGraphics.rank[] ranks) Construct the code for a complete key display, with the pre-selected count of rows and columns.Start tag which also gives the physical size of the graphic.static String
svgStartTag
(int width, int height) Start tag which also gives the physical size of the graphic.(package private) String
tie
(int column, int row) Generate an "arriving" tie symbol.void
writeSequenceOfSvgs
(String fileStem) Create one static SVG diagram for each time point.(package private) void
writeSvgEvent
(Event e, Writer w) Generate the graphic representation of one particular event from the score.void
writeToDynamicSVG
(File file) Create an animated SVG file which shows the sequence of key presses.(package private) String
x_circle
(boolean attack, int column, int row) x_diamond
(boolean attack, int column, int row) x_square
(boolean attack, int column, int row) Generate the svg code for a square symbol for pressing a particular key.Methods inherited from class eu.bandm.music.applications.tabstaff.ChartGraphics
col2coord, coord2index, initialGridPattern, row2coord, scaleToButtons
-
Field Details
-
xmlDeclaration
First line of any XML file, declaring version = 1.0 and encoding = utf8.- See Also:
-
articulationDistance
float articulationDistanceDuration (in seconds) subtracted from the end of a keypress, to visually indicate key repetitions.
-
-
Constructor Details
-
ChartGraphics_byStrings
public ChartGraphics_byStrings(int rows, int cols, Tabstaff score, SimpleMessage.Sender<XMLDocumentIdentifier> msg)
-
-
Method Details
-
svgStartTag
Start tag which also gives the physical size of the graphic. Width and height are given in pixels. -
svgStartTag
Start tag which also gives the physical size of the graphic. Width and height are fixed to (8 1/2) times button size, plus the left/top offset. -
writeSequenceOfSvgs
Create one static SVG diagram for each time point. The rational value of the time point is encoded in the file name and shown above the key grid.- Specified by:
writeSequenceOfSvgs
in classChartGraphics
-
writeToDynamicSVG
Create an animated SVG file which shows the sequence of key presses. Assumes BPM 60.- Specified by:
writeToDynamicSVG
in classChartGraphics
- Throws:
IOException
-
writeSvgEvent
Generate the graphic representation of one particular event from the score.- Throws:
IOException
-
svg_fullGrid
Construct the code for a complete key display, with the pre-selected count of rows and columns.- Parameters:
ranks
- give how to paint the squares representing the keys at the coordinates (1,1) (1,2) .. (1,8) (2,1) .. (8,8)
-
x_diamond
-
x_square
Generate the svg code for a square symbol for pressing a particular key. -
x_circle
-
tie
Generate an "arriving" tie symbol. This decorates silent fingerchange events. -
number
Generate the svg source for printing the finger number.
-