if (style.doGrid && xyRes.x > 1 && xyRes.y > 1) {
for( int x = ulPoint.x + xyRes.x; x < urPoint.x; x = x + xyRes.x ) {
g.drawLine(x, ulPoint.y, x, llPoint.y);
}
for( int y = ulPoint.y + xyRes.y; y < llPoint.y; y = y + xyRes.y ) {
g.drawLine(urPoint.x, y, ulPoint.x, y);
}
}
rgba = style.foregroundColor.getColorComponents(null);
g.setColor(new Color(rgba[0], rgba[1], rgba[2], style.fAlpha));