Package io.github.jbastgen.stemma.app.graph


package io.github.jbastgen.stemma.app.graph
The commit graph: lane assignment (GraphLayout), the colours and rules of the lanes, and the scrolling list that draws the history.
  • Class
    Description
    The parents of the commits in the history of one file (feature 46): the graph of a list that has only some of the commits would have lines that run to commits that are not there.
    The colours of the lanes of the commit graph (feature 17): a list of colours that replaces the colours of the theme, and rules that pin a colour to the branches whose name matches a pattern.
    What the painter needs for one row: the colour of every lane entering, of the node, and of every parent edge.
    Assigns commits to lanes of the commit graph.
    A commit and the commits it comes from.
     
    Paints the lane lines and commit nodes of the history graph, one 28px row per commit, onto a canvas.
    What the graph needs to know about each row.
    The table of colour rules for branches (feature 17): a branch pattern (main, feature/STM-*, re:release/\d+) and a colour (#rrggbb) per row, in order; the first matching row wins.
    Rows of equal height inside a scroll pane, built only for what is on screen (plus a margin): scrolling a history of a thousand commits, or a diff of five thousand lines, creates a few dozen row nodes, not thousands.
    Paints the graph for the rows from to to; from starts at y = 0 of the canvas.
    Colour tokens (see theme-*.css) used for the lanes of the commit graph, in lane order.