Examples of crOriginX()


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

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

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

}
View Full Code Here

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

        /* The outer block area. */
        AreaNode node = firstNormalFlowArea.getChildAt(0);
        assertTrue(node instanceof NormalBlockArea);
        final NormalBlockArea outerBlockArea = (NormalBlockArea) node;
        /* 1 inch left margin. */
        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());
View Full Code Here

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

        final NormalBlockArea insideBlockArea = (NormalBlockArea) node;
        /* Should have anterior space of one half-leading, which comes from the
         * space-after of the previous line. */
        assertEquals(1200, insideBlockArea.getAnteriorSpace());
        /* Same as parent. */
        assertEquals(72000, insideBlockArea.crOriginX());
        /* 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. */
 
View Full Code Here

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

        /* Test location and dimensions of the block area. */
        AreaNode node = firstNormalFlowArea.getChildAt(0);
        assertTrue(node instanceof NormalBlockArea);
        final NormalBlockArea blockArea = (NormalBlockArea) node;
        /* 1 inch left margin. */
        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());
View Full Code Here

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

        /* Test location and dimensions of the block area. */
        AreaNode node = firstNormalFlowArea.getChildAt(0);
        assertTrue(node instanceof NormalBlockArea);
        final NormalBlockArea blockArea = (NormalBlockArea) node;
        /* 1 inch left margin. */
        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());
View Full Code Here

Examples of org.foray.area.TextArea.crOriginX()

        /* The x value of the text area content rectangle should be at the x
         * location of the parent line area + 1/2 of the unused area in the
         * line. Total line area ipd = 468,000. Unused line area ipd =
         * 468,000 - 90,780 = 377,220. One half of the unused line area ipd =
         * 188,610. x = 72,000 + 188,610 = 260,610. */
        assertEquals(260610, textArea.crOriginX());

        /* The y value of the text area content rectangle should be the same as
         * the parent line area. */
        assertEquals(718800, textArea.crOriginY());
    }
View Full Code Here

Examples of org.foray.area.TextArea.crOriginX()

         * location of the parent line area + 1/2 of the unused area in the
         * line. Total line area ipd = 468,000. Unused line area ipd =
         * 468,000 - 162,684 = 305,316. One half of the unused line area ipd =
         * 152,658.
         * x = 72,000 + 152,238 = 224,658. */
        assertEquals(224658, textArea.crOriginX());

        /* The y value of the text area content rectangle should be the same as
         * the parent line area. */
        assertEquals(718800, textArea.crOriginY());
    }
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.