borderHelper.export(gridCell.getBox());
// if (element instanceof JRCommonGraphicElement)
// borderHelper.export(((JRCommonGraphicElement)element).getLinePen());
JRAlignment align = element instanceof JRAlignment ? (JRAlignment)element : null;
if (align != null)
{
JRPrintText text = element instanceof JRPrintText ? (JRPrintText)element : null;
RotationEnum ownRotation = text == null ? null : text.getOwnRotationValue();
String verticalAlignment =
getVerticalAlignment(
align.getOwnVerticalAlignmentValue()
);
String textRotation = getTextDirection(ownRotation);
exportAlignmentAndRotation(verticalAlignment, textRotation);
}