graphics.draw(imageableArea);
final int pcH = pageDefinition.getPageCountHorizontal();
final int pcW = pageDefinition.getPageCountVertical();
final Line2D line = new Line2D.Double();
for (int splitH = 1; splitH < pcH; splitH += 1)
{
final double xPos = gpf.getImageableX() + (splitH * gpf.getImageableWidth());
line.setLine(xPos, gpf.getImageableY(),
xPos, gpf.getImageableY() + gpf.getImageableHeight());
graphics.draw(line);
}
for (int splitW = 1; splitW < pcW; splitW += 1)
{
final double yPos = gpf.getImageableY() + (splitW * gpf.getImageableHeight());
line.setLine(gpf.getImageableX(), yPos,
gpf.getImageableX() + gpf.getImageableWidth(), yPos);
graphics.draw(line);
}
}