当前位置: 首页>>代码示例>>Java>>正文


Java BandTypeEnum.TITLE属性代码示例

本文整理汇总了Java中net.sf.jasperreports.engine.type.BandTypeEnum.TITLE属性的典型用法代码示例。如果您正苦于以下问题:Java BandTypeEnum.TITLE属性的具体用法?Java BandTypeEnum.TITLE怎么用?Java BandTypeEnum.TITLE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在net.sf.jasperreports.engine.type.BandTypeEnum的用法示例。


在下文中一共展示了BandTypeEnum.TITLE属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: dropFieldElementAt

public void dropFieldElementAt(Scene theScene, JasperDesign jasperDesign, JRDesignComponentElement element, Point location)
{
    if (theScene instanceof ReportObjectScene)
    {
        Point p = theScene.convertViewToScene( location );

        // find the band...
        JRDesignBand b = ModelUtils.getBandAt(jasperDesign, p);
        int yLocation = ModelUtils.getBandLocation(b, jasperDesign);
        Point pLocationInBand = new Point(p.x - jasperDesign.getLeftMargin(),
                                          p.y - yLocation);
        if (b != null)
        {

            // if the band is not a detail, propose to aggregate the value...
            if (b.getOrigin().getBandTypeValue() == BandTypeEnum.TITLE)
            {
                ((StandardMapComponent)(element.getComponent())).setEvaluationTime(EvaluationTimeEnum.REPORT);
            }
        }
   }

    super.dropElementAt(theScene, jasperDesign, element, location);
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:24,代码来源:CreateMapAction.java

示例2: dropFieldElementAt

public void dropFieldElementAt(Scene theScene, JasperDesign jasperDesign, JRDesignComponentElement element, Point location)
{
    if (theScene instanceof ReportObjectScene)
    {
        Point p = theScene.convertViewToScene( location );

        // find the band...
        JRDesignBand b = ModelUtils.getBandAt(jasperDesign, p);
        int yLocation = ModelUtils.getBandLocation(b, jasperDesign);
        Point pLocationInBand = new Point(p.x - jasperDesign.getLeftMargin(),
                                          p.y - yLocation);
        if (b != null)
        {

            // if the band is not a detail, propose to aggregate the value...
            if (b.getOrigin().getBandTypeValue() == BandTypeEnum.TITLE)
            {
                ((SpiderChartComponent)(element.getComponent())).setEvaluationTime(EvaluationTimeEnum.REPORT);
            }
        }
   }

    super.dropElementAt(theScene, jasperDesign, element, location);
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:24,代码来源:CreateSpiderChartAction.java

示例3: dropFieldElementAt

public void dropFieldElementAt(Scene theScene, JasperDesign jasperDesign, JRDesignComponentElement element, Point location)
{
    if (theScene instanceof ReportObjectScene)
    {
        Point p = theScene.convertViewToScene( location );

        // find the band...
        JRDesignBand b = ModelUtils.getBandAt(jasperDesign, p);
        int yLocation = ModelUtils.getBandLocation(b, jasperDesign);
        Point pLocationInBand = new Point(p.x - jasperDesign.getLeftMargin(),
                                          p.y - yLocation);
        if (b != null)
        {

            // if the band is not a detail, propose to aggregate the value...
            if (b.getOrigin().getBandTypeValue() == BandTypeEnum.TITLE)
            {
                ((SortComponent)(element.getComponent())).setEvaluationTime(EvaluationTimeEnum.REPORT);
            }
        }
   }

    super.dropElementAt(theScene, jasperDesign, element, location);
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:24,代码来源:CreateSortAction.java

示例4: dropFieldElementAt

public void dropFieldElementAt(Scene theScene, JasperDesign jasperDesign, JRDesignComponentElement element, Point location)
{
    if (theScene instanceof ReportObjectScene)
    {
        Point p = theScene.convertViewToScene( location );

        // find the band...
        JRDesignBand b = ModelUtils.getBandAt(jasperDesign, p);
        int yLocation = ModelUtils.getBandLocation(b, jasperDesign);
        Point pLocationInBand = new Point(p.x - jasperDesign.getLeftMargin(),
                                          p.y - yLocation);
        if (b != null)
        {

            // if the band is not a detail, propose to aggregate the value...
            if (b.getOrigin().getBandTypeValue() == BandTypeEnum.TITLE)
            {
                ((HtmlComponent)(element.getComponent())).setEvaluationTime(EvaluationTimeEnum.REPORT);
            }
        }
   }

    super.dropElementAt(theScene, jasperDesign, element, location);
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:24,代码来源:CreateHtmlAction.java

示例5: dropFieldElementAt

public void dropFieldElementAt(Scene theScene, JasperDesign jasperDesign, JRDesignChart element, Point location)
{
    if (theScene instanceof ReportObjectScene)
    {
        Point p = theScene.convertViewToScene( location );

        // find the band...
        JRDesignBand b = ModelUtils.getBandAt(jasperDesign, p);
        int yLocation = ModelUtils.getBandLocation(b, jasperDesign);
        Point pLocationInBand = new Point(p.x - jasperDesign.getLeftMargin(),
                                          p.y - yLocation);
        if (b != null)
        {

            // if the band is not a detail, propose to aggregate the value...
            if (b.getOrigin().getBandTypeValue() == BandTypeEnum.TITLE)
            {
                element.setEvaluationTime( EvaluationTimeEnum.REPORT);
            }
        }

    }

    super.dropElementAt(theScene, jasperDesign, element, location);
}
 
开发者ID:JockiHendry,项目名称:ireport-fork,代码行数:25,代码来源:CreateChartAction.java


注:本文中的net.sf.jasperreports.engine.type.BandTypeEnum.TITLE属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。