Examples of crOriginY()


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

        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.crOriginY()

        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());

        /* The first child of the outer block area is a line-area. */
 
View Full Code Here

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

        /* 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. */
        assertEquals(432000, insideBlockArea.crIpd());
        /* Height of 0, as it has no content. */
        assertEquals(0, insideBlockArea.crBpd());

View Full Code Here

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

        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());

        /* Test location and dimensions of the line area. */
 
View Full Code Here

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

        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());

        /* Test location and dimensions of the line area. */
 
View Full Code Here

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

         * 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());
    }

    /**
     * Test of fo/block-004.fo.
     * This is a test of centering of a text-area on a line, where the text-area
View Full Code Here

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

         * 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.