Class GraphColors
java.lang.Object
io.github.jbastgen.stemma.app.graph.GraphColors
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. The colours are checked for contrast like the accent colour.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordWhat the painter needs for one row: the colour of every lane entering, of the node, and of every parent edge. -
Method Summary
Modifier and TypeMethodDescriptionThe colours of all rows.static GraphColorsThe colours of the settings:coloursis a list of#rrggbbseparated by commas or blanks (invalid ones are dropped).
-
Method Details
-
of
The colours of the settings:coloursis a list of#rrggbbseparated by commas or blanks (invalid ones are dropped). -
assign
public List<GraphColors.RowColors> assign(List<GraphLayout.Row> rows, List<List<String>> branches, Theme theme) The colours of all rows. A lane keeps its colour from the commit that carries a matching branch down along the first parents, so it does not change while scrolling; a lane that no rule pins has the colour of its position.- Parameters:
branches- for each row the names of the branches that point to its commit
-