ui框架实现JRON查询java_Java类net.sf.jasperreports.engine.design.JRDesignRectangle的实例源码 - 编程字典...

/**

* Get the GraphicElement properties...

*/

public static List getGraphicPropertySets(JRDesignGraphicElement element, JasperDesign jd)

{

JRDesignDataset dataset = ModelUtils.getElementDataset(element, jd);

List list = new ArrayList();

Sheet.Set propertySet = Sheet.createPropertiesSet();

propertySet.setName("GRAPHIC_ELEMENT_PROPERTIES");

propertySet.setDisplayName("Graphic properties");

//propertySet.put(new PenProperty( element ));

propertySet.put(new JRPenProperty(element.getLinePen(), element));

propertySet.put(new FillProperty( element ));

list.add(propertySet);

if (element instanceof JRDesignImage)

{

Sheet.Set imagePropertySet = Sheet.createPropertiesSet();

imagePropertySet.setName("IMAGE_ELEMENT_PROPERTIES");

imagePropertySet.setDisplayName("Image properties");

imagePropertySet.put(new ImageExpressionProperty((JRDesignImage)element, dataset));

imagePropertySet.put(new ImageExpressionClassNameProperty((JRDesignImage)element) );

imagePropertySet.put(new ScaleImageProperty( (JRDesignImage)element ));

imagePropertySet.put(new HorizontalAlignmentProperty( (JRDesignImage)element ));

imagePropertySet.put(new VerticalAlignmentProperty( (JRDesignImage)element ));

imagePropertySet.put(new ImageUsingCacheProperty( (JRDesignImage)element ));

imagePropertySet.put(new LazyProperty( (JRDesignImage)element ));

imagePropertySet.put(new OnErrorTypeProperty( (JRDesignImage)element ));

imagePropertySet.put(new ImageEvaluationTimeProperty((JRDesignImage)element, dataset));//, dataset));

imagePropertySet.put(new EvaluationGroupProperty((JRDesignImage)element, dataset));

list.add(imagePropertySet);

}

else if (element instanceof JRDesignLine)

{

Sheet.Set linePropertySet = Sheet.createPropertiesSet();

linePropertySet.setName("LINE_ELEMENT_PROPERTIES");

linePropertySet.setDisplayName("Line properties");

linePropertySet.put(new LineDirectionProperty( (JRDesignLine)element ));

list.add(linePropertySet);

}

else if (element instanceof JRDesignRectangle)

{

Sheet.Set rectanglePropertySet = Sheet.createPropertiesSet();

rectanglePropertySet.setName("RECTANGLE_ELEMENT_PROPERTIES");

rectanglePropertySet.setDisplayName("Rectangle properties");

rectanglePropertySet.put(new RadiusProperty( (JRDesignRectangle)element ));

list.add(rectanglePropertySet);

}

else if (element instanceof JRDesignEllipse)

{

// Nothing to do...

}

return list;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值