Class GraphRulesTable

java.lang.Object
io.github.jbastgen.stemma.app.graph.GraphRulesTable

public final class GraphRulesTable extends Object
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. It reads and writes the rule text of the settings (pattern = #hex per line), so what is stored does not change.
  • Constructor Details

    • GraphRulesTable

      public GraphRulesTable(String text, Consumer<String> onChange)
      Parameters:
      text - the rules as stored in the settings, one per line
      onChange - gets the new text after every edit
  • Method Details

    • node

      public javafx.scene.Node node()
      The table with its buttons: add, remove, move up and down.
    • setText

      public void setText(String text)
      Replaces the rows by the rules of the text.