Search in sources :

Example 6 with AssociableHotspot

use of uk.ac.ed.ph.jqtiplus.node.item.interaction.graphic.AssociableHotspot in project openolat by klemens.

the class GraphicGapMatchInteractionArchive method writeHeader2.

@Override
public int writeHeader2(AssessmentItem item, Interaction interaction, int itemNumber, int interactionNumber, Row dataRow, int col, OpenXMLWorkbook workbook) {
    GraphicGapMatchInteraction gapMatchInteraction = (GraphicGapMatchInteraction) interaction;
    List<AssociableHotspot> spots = gapMatchInteraction.getAssociableHotspots();
    if (spots.size() > 0) {
        for (int i = 0; i < spots.size(); i++) {
            String header = (itemNumber + 1) + "_GG" + (i + 1);
            dataRow.addCell(col++, header, workbook.getStyles().getHeaderStyle());
        }
    } else {
        col++;
    }
    return col;
}
Also used : GraphicGapMatchInteraction(uk.ac.ed.ph.jqtiplus.node.item.interaction.GraphicGapMatchInteraction) AssociableHotspot(uk.ac.ed.ph.jqtiplus.node.item.interaction.graphic.AssociableHotspot)

Aggregations

GraphicGapMatchInteraction (uk.ac.ed.ph.jqtiplus.node.item.interaction.GraphicGapMatchInteraction)6 AssociableHotspot (uk.ac.ed.ph.jqtiplus.node.item.interaction.graphic.AssociableHotspot)6