/* (non-Javadoc) * @see org.unitarou.yukinoshita.view.jface.board.BlockPainter#getTransientPaintings(org.unitarou.yukinoshita.model.NodeView) */ public Set<SgfPoint> getTransientPaintings(NodeView nodeView) { ArgumentChecker.throwIfNull(nodeView); Set<SgfPoint> ret = new TreeSet<SgfPoint>(); ret.addAll(nodeView.getIgoBoard().position(SgfColor.BLACK)); ret.addAll(nodeView.getIgoBoard().position(SgfColor.WHITE)); return ret; }
/* (non-Javadoc) * @see org.unitarou.yukinoshita.view.jface.board.blp.BlockLabelProvider#getLabel(org.unitarou.yukinoshita.model.NodeView, org.unitarou.sgf.type.SgfPoint) */ public String getLabel(NodeView nodeView, SgfPoint point) { ArgumentChecker.throwIfNull(nodeView, point); int lifePoint = nodeView.getIgoBoard().lifePoint(point); return (0 < lifePoint) ? Integer.toString(lifePoint) : Strings.EMPTY; }