Java 类net.sf.jasperreports.engine.component.FillPrepareResult 实例源码

项目:jasperreports    文件:FillTableSubreport.java   
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;
}
项目:jasperreports    文件:BarcodeFillComponent.java   
@Override
public FillPrepareResult prepare(int availableHeight)
{
    if (isEvaluateNow() && renderable == null)
    {
        return FillPrepareResult.NO_PRINT_NO_OVERFLOW;
    }

    return FillPrepareResult.PRINT_NO_STRETCH;
}
项目:jasperreports    文件:MapFillComponent.java   
@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;
    }
项目:jasperreports    文件:BarbecueFillComponent.java   
@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;
}
项目:jasperreports    文件:FillTable.java   
@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);
    }
}
项目:jasperreports    文件:FillXYChart.java   
@Override
public FillPrepareResult prepare(int availableHeight)
{
    return FillPrepareResult.PRINT_NO_STRETCH;
}
项目:jasperreports    文件:FillPieChart.java   
public FillPrepareResult prepare(int availableHeight)
{
    return FillPrepareResult.PRINT_NO_STRETCH;
}
项目:jasperreports    文件:FillBarChart.java   
public FillPrepareResult prepare(int availableHeight)
{
    return FillPrepareResult.PRINT_NO_STRETCH;
}
项目:jasperreports    文件:FillSpiderChart.java   
@Override
public FillPrepareResult prepare(int availableHeight)
{
    return FillPrepareResult.PRINT_NO_STRETCH;
}
项目:dynamicreports-jasper    文件:GeoMapFillComponent.java   
@Override
public FillPrepareResult prepare(int availableHeight) {
    return FillPrepareResult.PRINT_NO_STRETCH;
}
项目:jasperreports-wms-component    文件:WmsMapFillComponent.java   
@Override
public FillPrepareResult prepare(int availableHeight) {
  return FillPrepareResult.PRINT_NO_STRETCH;
}