package org.hanuna.gitalk.controller;

import org.hanuna.gitalk.common.ReadOnlyList;
import org.hanuna.gitalk.printmodel.PrintCell;
import org.hanuna.gitalk.refs.Ref;


/**
 * @author erokhins
 */
public class GraphTableCell {
    public static final int HEIGHT_CELL = 22;
    public static final int WIDTH_NODE = 15;
    public static final int CIRCLE_RADIUS = 5;
    public static final int SELECT_CIRCLE_RADIUS = 6;
    public static final float THICK_LINE = 2.5f;
    public static final float SELECT_THICK_LINE = 3.3f;

    private final PrintCell row;
    private final String text;
    private final ReadOnlyList<Ref> refsToThisCommit;

    public GraphTableCell(PrintCell row, String text, ReadOnlyList<Ref> refsToThisCommit) {
        this.row = row;
        this.text = text;
        this.refsToThisCommit = refsToThisCommit;
    }

    public PrintCell getRow() {
        return row;
    }

    public String getText() {
        return text;
    }
}

@@ -951,11 +951,104 @@
 t;%0A    %7D
+%0A%0A    public ReadOnlyList%3CRef%3E getRefsToThisCommit() %7B%0A        return refsToThisCommit;%0A    %7D
 %0A%7D%0A

add method GraphTableCell.getRefsToThisCommit()