Search in sources :

Example 1 with GridLine

use of io.github.vocabhunter.analysis.grid.GridLine in project VocabHunter by VocabHunter.

the class FilterGridController method buildColumn.

private TableColumn<GridLine, GridCell> buildColumn(final FilterGridModel filterModel, final int index) {
    TableColumn<GridLine, GridCell> column = new TableColumn<>(columnNameTool.columnName(index));
    column.setSortable(false);
    column.setCellValueFactory(features -> extractValue(features, index));
    column.setCellFactory(c -> new FilterGridWordTableCell(filterModel.getColumnSelections().get(index)));
    if (isScrollableColumnList(filterModel)) {
        column.setPrefWidth(PREFERRED_COLUMN_WIDTH);
    }
    return column;
}
Also used : GridLine(io.github.vocabhunter.analysis.grid.GridLine) FilterGridWordTableCell(io.github.vocabhunter.gui.view.FilterGridWordTableCell) TableColumn(javafx.scene.control.TableColumn) GridCell(io.github.vocabhunter.analysis.grid.GridCell)

Example 2 with GridLine

use of io.github.vocabhunter.analysis.grid.GridLine in project VocabHunter by VocabHunter.

the class GridTestTool method legalSpacingGridLines.

public static List<GridLine> legalSpacingGridLines() {
    GridLine line1 = new GridLine();
    GridLine line2 = new GridLine(acceptedCell("Content1"));
    GridLine line3 = new GridLine();
    GridLine line4 = new GridLine(acceptedCell("Content2"));
    return List.of(line1, line2, line3, line4);
}
Also used : GridLine(io.github.vocabhunter.analysis.grid.GridLine)

Example 3 with GridLine

use of io.github.vocabhunter.analysis.grid.GridLine in project VocabHunter by VocabHunter.

the class GridTestTool method documentLines.

public static List<GridLine> documentLines() {
    GridLine line1 = new GridLine(acceptedCell("Accepted1"));
    GridLine line2 = new GridLine(rejectedCell("Rejected1"));
    GridLine line3 = new GridLine(acceptedCell("Accepted2"));
    return List.of(line1, line2, line3);
}
Also used : GridLine(io.github.vocabhunter.analysis.grid.GridLine)

Example 4 with GridLine

use of io.github.vocabhunter.analysis.grid.GridLine in project VocabHunter by VocabHunter.

the class GridTestTool method normalisedGridLines.

public static List<GridLine> normalisedGridLines() {
    GridLine line1 = new GridLine(acceptedCell("A1"), rejectedCell("B1"));
    GridLine line2 = new GridLine(acceptedCell("A2"));
    GridLine line3 = new GridLine(acceptedCell(""), acceptedCell(""), acceptedCell("C3"));
    return List.of(line1, line2, line3);
}
Also used : GridLine(io.github.vocabhunter.analysis.grid.GridLine)

Example 5 with GridLine

use of io.github.vocabhunter.analysis.grid.GridLine in project VocabHunter by VocabHunter.

the class GridTestTool method unnormalisedGridLines.

public static List<GridLine> unnormalisedGridLines() {
    GridLine line1 = new GridLine(acceptedCell("A1"), rejectedCell("B1"));
    GridLine line2 = new GridLine(acceptedCell("A2"));
    GridLine line3 = new GridLine(acceptedCell(""), acceptedCell(""), acceptedCell("C3"), acceptedCell(""));
    GridLine line4 = new GridLine(acceptedCell(""));
    GridLine line5 = new GridLine();
    return List.of(line1, line2, line3, line4, line5);
}
Also used : GridLine(io.github.vocabhunter.analysis.grid.GridLine)

Aggregations

GridLine (io.github.vocabhunter.analysis.grid.GridLine)5 GridCell (io.github.vocabhunter.analysis.grid.GridCell)1 FilterGridWordTableCell (io.github.vocabhunter.gui.view.FilterGridWordTableCell)1 TableColumn (javafx.scene.control.TableColumn)1