protected FillPrepareResult prepareSubreport(int availableHeight, boolean isOverflow) throws JRException { boolean willOverflow = prepare(availableHeight, isOverflow); FillPrepareResult result; if (printPage == null) { // don't produce any result result = FillPrepareResult.NO_PRINT_NO_OVERFLOW; } else { result = FillPrepareResult.printStretch(getStretchHeight(), willOverflow); } return result; }
@Override public FillPrepareResult prepare(int availableHeight) { if (isEvaluateNow() && renderable == null) { return FillPrepareResult.NO_PRINT_NO_OVERFLOW; } return FillPrepareResult.PRINT_NO_STRETCH; }
@Override public FillPrepareResult prepare(int availableHeight) { return FillPrepareResult.PRINT_NO_STRETCH; // return isEvaluateNow() && (latitude == null || longitude == null) // ? FillPrepareResult.NO_PRINT_NO_OVERFLOW // : FillPrepareResult.PRINT_NO_STRETCH; }
@Override public FillPrepareResult prepare(int availableHeight) { //FIXMENOW do like for map and spider chart, because it crashes with null code one evaluationTime != NOW; check barbecue too return isEvaluateNow() && code == null ? FillPrepareResult.NO_PRINT_NO_OVERFLOW : FillPrepareResult.PRINT_NO_STRETCH; }
@Override public FillPrepareResult prepare(int availableHeight) { try { if (fillColumns.isEmpty()) { //no columns to print return FillPrepareResult.NO_PRINT_NO_OVERFLOW; } JRTemplatePrintFrame printFrame = new JRTemplatePrintFrame(getFrameTemplate(), printElementOriginator); JRLineBox lineBox = printFrame.getLineBox(); int verticalPadding = lineBox.getTopPadding() + lineBox.getBottomPadding(); FillPrepareResult result = fillSubreport.prepareSubreport( availableHeight - verticalPadding, filling ); if (verticalPadding != 0) { result = result.addStretch(verticalPadding); } filling = result.willOverflow(); return result; } catch (JRException e) { throw new JRRuntimeException(e); } }
@Override public FillPrepareResult prepare(int availableHeight) { return FillPrepareResult.PRINT_NO_STRETCH; }
public FillPrepareResult prepare(int availableHeight) { return FillPrepareResult.PRINT_NO_STRETCH; }