Railroad diagrams should not use `java.awt` drawing functionality for graphics
In rail diagrams, lines consist of many short line segments as well as quarter arcs. The start and end of these segments must exactly fit onto each other to get a proper diagram, but awt
isn't very stable in its output. Toggling a setting can leave gaps in the connections.
As rail diagrams have a very limited number of segment types, the path to solve this seems to be plotting the segments ourselves.
Planned steps:
-
Paint quarter arcs without awt
(done). -
Paint horizontal and vertical lines without awt
. -
Fix text size or alignment issue. -
Debug alignment issues in the diagrams.
Addresses #292 (closed) Fixes #110 (closed), #109 (closed)