Package org.foray.area

Examples of org.foray.area.NormalBlockArea.crIpd()


        assertEquals(719500, blockArea.prOriginY());
        assertEquals(431000, blockArea.prIpd());

        assertEquals(72500, blockArea.crOriginX());
        assertEquals(719500, blockArea.crOriginY());
        assertEquals(431000, blockArea.crIpd());
    }

}
View Full Code Here


        assertEquals(72000, outerBlockArea.crOriginX());
        /* 10 inches from bottom (11 inches high, 1 inch top margin). */
        assertEquals(720000, outerBlockArea.crOriginY());
        /* Page is 8 inches wide, with 2 inches total margin.
         * 6 * 72,000 = 432,000. */
        assertEquals(432000, outerBlockArea.crIpd());

        /* The first child of the outer block area is a line-area. */
        node = outerBlockArea.getChildAt(0);
        assertTrue(node instanceof LineArea);
        LineArea lineArea = (LineArea) node;
View Full Code Here

        /* Computed as that for the previous line, adjusted for one line,
         * including another half-leading, the space-after for that line.
         * 718,800 - 12,000 - 1,200 = 705,600. */
        assertEquals(705600, insideBlockArea.crOriginY());
        /* Same as parent. */
        assertEquals(432000, insideBlockArea.crIpd());
        /* Height of 0, as it has no content. */
        assertEquals(0, insideBlockArea.crBpd());

        /* The third child of the outer block area is another line-area. */
        node = outerBlockArea.getChildAt(2);
View Full Code Here

        assertEquals(72000, blockArea.crOriginX());
        /* 10 inches from bottom (11 inches high, 1 inch top margin). */
        assertEquals(720000, blockArea.crOriginY());
        /* Page is 8.5 inches wide, with 2 inches total margin.
         * 6.5 * 72,000 = 468,000. */
        assertEquals(468000, blockArea.crIpd());

        /* Test location and dimensions of the line area. */
        node = blockArea.getChildAt(0);
        assertTrue(node instanceof LineArea);
        final LineArea lineArea = (LineArea) node;
View Full Code Here

        assertEquals(72000, blockArea.crOriginX());
        /* 10 inches from bottom (11 inches high, 1 inch top margin). */
        assertEquals(720000, blockArea.crOriginY());
        /* Page is 8.5 inches wide, with 2 inches total margin.
         * 6.5 * 72,000 = 468,000. */
        assertEquals(468000, blockArea.crIpd());

        /* Test location and dimensions of the line area. */
        node = blockArea.getChildAt(0);
        assertTrue(node instanceof LineArea);
        final LineArea lineArea = (LineArea) node;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.