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()); }
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()); }
@SuppressWarnings("unchecked") public HorizontalAlignmentProperty(JRAlignment element) { super(HorizontalAlignEnum.class, element); this.element = element; }
@SuppressWarnings("unchecked") public VerticalAlignmentProperty(JRAlignment element) { super(VerticalAlignEnum.class, element); this.element = element; }