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;
    }
}

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;
    }

    public ReadOnlyList<Ref> getRefsToThisCommit() {
        return refsToThisCommit;
    }
}

add method GraphTableCell.getRefsToThisCommit()