int imageX = thePoint.x;
int imageY = thePoint.y;
int textX = imageX + imageWidth + (padding * 3);
int textY = imageY - 3; // SWING was + imageHeight and not - 3
JPowerGraphColor bgColor = getBackgroundColor(new DefaultNode(), null, new DefaultSubGraphHighlighter());
JPowerGraphColor boColor = getBorderColor(new DefaultNode(), null, new DefaultSubGraphHighlighter());
JPowerGraphColor teColor = getTextColor(new DefaultNode(), null, new DefaultSubGraphHighlighter());
JPowerGraphColor oldFGColor = g.getForeground();
JPowerGraphColor oldBGColor = g.getBackground();
if (shape == RECTANGLE) {
g.setBackground(bgColor);