Java 类net.sf.jasperreports.engine.JRAlignment 实例源码

项目:dynamicreports-jasper    文件:AbstractJasperStyleTest.java   
protected void horizontalAlignmentTest(String name, int index, HorizontalAlignEnum horizontalAlignment) {
    JRAlignment element = (JRAlignment) getElementAt(name, index);
    if (horizontalAlignment == null) {
        Assert.assertEquals("horizontalAlignment", HorizontalAlignEnum.LEFT, element.getHorizontalAlignmentValue());
    }
    Assert.assertEquals("horizontalAlignment", horizontalAlignment, element.getHorizontalAlignmentValue());
}
项目:dynamicreports-jasper    文件:AbstractJasperStyleTest.java   
protected void verticalAlignmentTest(String name, int index, VerticalAlignEnum verticalAlignment) {
    JRAlignment element = (JRAlignment) getElementAt(name, index);
    if (verticalAlignment == null) {
        Assert.assertEquals("verticalAlignment", VerticalAlignEnum.TOP, element.getVerticalAlignmentValue());
    }
    Assert.assertEquals("verticalAlignment", verticalAlignment, element.getVerticalAlignmentValue());
}
项目:ireport-fork    文件:HorizontalAlignmentProperty.java   
@SuppressWarnings("unchecked")
public HorizontalAlignmentProperty(JRAlignment element)
{
    super(HorizontalAlignEnum.class,  element);
    this.element = element;
}
项目:ireport-fork    文件:VerticalAlignmentProperty.java   
@SuppressWarnings("unchecked")
public VerticalAlignmentProperty(JRAlignment element)
{
    super(VerticalAlignEnum.class, element);
    this.element = element;
}