height = (int) Math.ceil(height * theScale);
}
int radius = Math.max(width, height);
JPowerGraphColor oldBGColor = g.getBackground();
JPowerGraphColor oldFGColor = g.getForeground();
g.setBackground(getBackgroundColor(node, graphPane, theSubGraphHighlighter));
g.fillOval(thePoint.x - radius / 2, thePoint.y - radius / 2, radius, radius);
g.setForeground(getBorderColor(node, graphPane, theSubGraphHighlighter));
g.drawOval(thePoint.x - radius / 2, thePoint.y - radius / 2, radius, radius);
if (showNodes){
JPowerGraphGraphics subG = g.getSubJPowerGraphGraphics(new JPowerGraphDimension(dummyRectangle.width, dummyRectangle.height));
double scale = getInstanceScale(numInstances);
subG.setBackground(g.getBackground());
subG.setForeground(g.getForeground());
subG.setAntialias(g.getAntialias());
subG.fillRectangle(0, 0, dummyRectangle.width, dummyRectangle.height);
nodePainter.paintNode(graphPane, subG, dummyNode, ShapeNodePainter.SMALL, theSubGraphHighlighter, new JPowerGraphPoint(dummyRectangle.width/2, dummyRectangle.height/2), scale);
JPowerGraphColor nodeColor = nodePainter.getBackgroundColor(dummyNode, graphPane, theSubGraphHighlighter);
for (int i = 0; i < rowSizes.length; i++) {
int rowIndex = (((numRows - 1) / 2) - i) * -1;
int normalisedRowIndex = rowIndex;
if (normalisedRowIndex < 0){