{
switch (rotation)
{
case LEFT :
{
JRBoxPen topPen = box.getTopPen();
Integer topPadding = box.getTopPadding();
box.copyTopPen(box.getLeftPen());
box.setTopPadding(box.getLeftPadding());
box.copyLeftPen(box.getBottomPen());
box.setLeftPadding(box.getBottomPadding());
box.copyBottomPen(box.getRightPen());
box.setBottomPadding(box.getRightPadding());
box.copyRightPen(topPen);
box.setRightPadding(topPadding);
break;
}
case RIGHT :
{
JRBoxPen topPen = box.getTopPen();
Integer topPadding = box.getTopPadding();
box.copyTopPen(box.getRightPen());
box.setTopPadding(box.getRightPadding());
box.copyRightPen(box.getBottomPen());
box.setRightPadding(box.getBottomPadding());
box.copyBottomPen(box.getLeftPen());
box.setBottomPadding(box.getLeftPadding());
box.copyLeftPen(topPen);
box.setLeftPadding(topPadding);
break;
}
case UPSIDE_DOWN :
{
JRBoxPen topPen = box.getTopPen();
Integer topPadding = box.getTopPadding();
box.copyTopPen(box.getBottomPen());
box.setTopPadding(box.getBottomPadding());
box.copyBottomPen(topPen);
box.setBottomPadding(topPadding);
JRBoxPen leftPen = box.getLeftPen();
Integer leftPadding = box.getLeftPadding();
box.copyLeftPen(box.getRightPen());
box.setLeftPadding(box.getRightPadding());