Class GraphPane
java.lang.Object
io.github.jbastgen.stemma.app.graph.GraphPane
Paints the lane lines and commit nodes of the history graph, one 28px row per commit, onto a canvas. Only the rows
that are on screen are painted (
HistoryList), so a long history costs no more than a short one.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordWhat the graph needs to know about each row. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidpaint(javafx.scene.canvas.GraphicsContext g, List<GraphLayout.Row> rows, List<GraphPane.RowInfo> infos, List<GraphColors.RowColors> colors, boolean curved, Theme theme, int from, int to) Paints the rowsfrom(inclusive) toto(exclusive); rowfromstarts at y = 0.static doublewidth(List<GraphLayout.Row> rows) The width the graph needs for these rows.
-
Field Details
-
ROW_H
public static final double ROW_H- See Also:
-
-
Method Details
-
width
The width the graph needs for these rows. -
paint
public static void paint(javafx.scene.canvas.GraphicsContext g, List<GraphLayout.Row> rows, List<GraphPane.RowInfo> infos, List<GraphColors.RowColors> colors, boolean curved, Theme theme, int from, int to) Paints the rowsfrom(inclusive) toto(exclusive); rowfromstarts at y = 0.
-