* first draw borders for the groups in the appropriate color, then draw the pieces for both players.
*/
@Override
protected void drawMarkers(Board board, PlayerList players, Graphics2D g2 ) {
GoBoard b = (GoBoard) board;
// draw the star point markers
List starpoints = b.getHandicapPositions();
Iterator it = starpoints.iterator();
g2.setColor(Color.black);
double rad = (float) cellSize / 21.0 + 0.46;
while (it.hasNext()) {
GoBoardPosition p = (GoBoardPosition)it.next();
g2.fillOval(getMargin() + (int)(cellSize *(p.getCol()-0.505)-rad),
getMargin() +(int)(cellSize *(p.getRow()-0.505)-rad),
(int)(2.0 * rad + 1.7), (int)(2.0 * rad + 1.7));
}
// draw the group borders
if ( GameContext.getDebugMode() > 0 ) {
GoGroupRenderer groupRenderer = new GoGroupRenderer(b, COLORMAP, (float) cellSize, getMargin(), g2);
GroupAnalyzerMap map = new GroupAnalyzerMap();
for (IGoGroup group : b.getGroups()) {
GroupAnalyzer analyzer = new GroupAnalyzer(group, map);
groupRenderer.drawGroupDecoration(analyzer);
}
}