Search in sources :

Example 1 with BlamePoint

use of teamdash.hist.BlamePoint in project processdash by dtuma.

the class BlameValueTableModel method addBlameValues.

protected void addBlameValues(BlameValueList values, String initialText) {
    List<Entry<BlamePoint, String>> list = new ArrayList(values.entrySet());
    for (int i = list.size(); i-- > 0; ) {
        Entry<BlamePoint, String> e = list.get(i);
        BlamePoint blame = e.getKey();
        String value = e.getValue();
        if (!StringUtils.hasValue(value))
            value = NOTHING;
        addBlameRow(blame, value, initialText);
    }
}
Also used : Entry(java.util.Map.Entry) ArrayList(java.util.ArrayList) BlamePoint(teamdash.hist.BlamePoint) BlamePoint(teamdash.hist.BlamePoint)

Example 2 with BlamePoint

use of teamdash.hist.BlamePoint in project processdash by dtuma.

the class BlameTimelineRenderer method getTableCellRendererComponent.

@Override
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
    this.isHeader = (value == null);
    this.isSelected = isSelected;
    this.isFirst = (row == 0);
    int nextRow = row + 1;
    if (nextRow < table.getRowCount())
        this.isLast = (table.getValueAt(nextRow, column) == null);
    else
        this.isLast = true;
    setToolTipText(format((BlamePoint) value));
    return this;
}
Also used : BlamePoint(teamdash.hist.BlamePoint) BlamePoint(teamdash.hist.BlamePoint)

Example 3 with BlamePoint

use of teamdash.hist.BlamePoint in project processdash by dtuma.

the class BlameValueTableModel method setBlameNodeStructure.

public void setBlameNodeStructure(BlameNodeData nodeData) {
    clearRows();
    // display a message about the addition of this node
    if (nodeData.getAddedBy() != null)
        addBlameRow(nodeData.getAddedBy(), resources.getString("Node.Added"), null);
    // display historical changes to the name of this node
    if (nodeData.getNodeNameChanges() != null) {
        addBlameRow(null, RENAME_HEADER, null);
        addBlameValues(nodeData.getNodeNameChanges(), INITIAL_NAME);
    }
    // display historical changes to the parent of this node
    if (nodeData.getParentPathChanges() != null) {
        addBlameRow(null, MOVE_HEADER, null);
        addBlameValues(nodeData.getParentPathChanges(), INITIAL_PARENT);
    }
    // display children that have been deleted from this node
    if (nodeData.getDeletedChildren() != null) {
        addBlameRow(null, DELETE_HEADER, null);
        for (Entry<WBSNode, BlamePoint> e : nodeData.getDeletedChildren().entrySet()) {
            BlamePoint blame = e.getValue();
            String deletedChildName = e.getKey().getName();
            addBlameRow(blame, deletedChildName, null);
        }
    }
}
Also used : BlamePoint(teamdash.hist.BlamePoint) WBSNode(teamdash.wbs.WBSNode)

Aggregations

BlamePoint (teamdash.hist.BlamePoint)3 ArrayList (java.util.ArrayList)1 Entry (java.util.Map.Entry)1 WBSNode (teamdash.wbs.WBSNode)1