{
boolean hasContour = false;
JRLineBox box = element instanceof JRBoxContainer ? ((JRBoxContainer)element).getLineBox() : null;
if (box == null)
{
JRPrintGraphicElement graphicElement = element instanceof JRPrintGraphicElement ? (JRPrintGraphicElement)element : null;
hasContour = (graphicElement == null) || graphicElement.getLinePen().getLineWidth().floatValue() <= 0f;
}
else
{
hasContour =
box.getTopPen().getLineWidth().floatValue() <= 0f