Examples of crOriginY()


Examples of org.axsl.galley.ForeignObjectArea.crOriginY()

     * {@inheritDoc}
     */
    public void render(final ForeignContentSvg area) throws GalleyVisitorException {
        final ForeignObjectArea foreign = area.getParent();
        final Rectangle2D.Float contentRectangle = new Rectangle2D.Float(
                toPoints(foreign.crOriginX()), toPoints(foreign.crOriginY()),
                toPoints(foreign.referenceIpd()),
                toPoints(foreign.referenceBpd()));
        try {
            renderSVGDocument(area.getGraphic(), contentRectangle, foreign);
        } catch (final IOException e) {
View Full Code Here

Examples of org.axsl.galley.ForeignObjectArea.crOriginY()

     * {@inheritDoc}
     */
    public void render(final ForeignContentSvg area) {
        final ForeignObjectArea foreign = area.getParent();
        final Rectangle2D.Float contentRectangle = new Rectangle2D.Float(
                toPoints(foreign.crOriginX()), toPoints(foreign.crOriginY()),
                toPoints(foreign.referenceIpd()),
                toPoints(foreign.referenceBpd()));
        renderSVGDocument(area.getGraphic(), contentRectangle, null);
    }

View Full Code Here

Examples of org.axsl.galley.ForeignObjectArea.crOriginY()

     * {@inheritDoc}
     */
    public void render(final ForeignContentSvg area) throws GalleyVisitorException {
        final ForeignObjectArea foreign = area.getParent();
        final Rectangle2D.Float contentRectangle = new Rectangle2D.Float(
                toPoints(foreign.crOriginX()), toPoints(foreign.crOriginY()),
                toPoints(foreign.referenceIpd()),
                toPoints(foreign.referenceBpd()));
        final SvgGraphic svgGraphic = area.getGraphic();
        try {
            getContentStream().drawGraphic(svgGraphic,
View Full Code Here

Examples of org.axsl.galley.ForeignObjectArea.crOriginY()

     * {@inheritDoc}
     */
    public void render(final ForeignContentMath area) throws GalleyVisitorException {
        final ForeignObjectArea foreign = area.getParent();
        final Rectangle2D.Float contentRectangle = new Rectangle2D.Float(
                toPoints(foreign.crOriginX()), toPoints(foreign.crOriginY()),
                toPoints(foreign.referenceIpd()),
                toPoints(foreign.referenceBpd()));
        final MathGraphic mathGraphic = area.getGraphic();
        try {
            getContentStream().drawGraphic(mathGraphic,
View Full Code Here

Examples of org.axsl.galley.ForeignObjectArea.crOriginY()

     * {@inheritDoc}
     */
    public void render(final ForeignContentSvg area) {
        final ForeignObjectArea foreign = area.getParent();
        final float x = toPoints(foreign.crOriginX());
        final float y = this.pageHeight - toPoints(foreign.crOriginY());
        final SvgGraphic svgGraphic = area.getGraphic();
        renderSVGDocument(svgGraphic, x, y);
    }

    /**
 
View Full Code Here

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

        assertEquals(72000, lineArea.crOriginX());
        /* Same as parent, but adjusted for a half-leading space-before.
         * Default leading is 20% of the font-size, which is 12 points.
         * 50% * 20% * 12,000 = 1,200.
         * 720,000 - 1,200 = 718,800. */
        assertEquals(718800, lineArea.crOriginY());
        /* Same as parent. */
        assertEquals(432000, lineArea.crIpd());
        /* Default font-size is 12 points. */
        assertEquals(12000, lineArea.crBpd());

View Full Code Here

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

        assertEquals(1200, lineArea.getAnteriorSpace());
        /* Same as parent. */
        assertEquals(72000, lineArea.crOriginX());
        /* Same as the previous block, adjusted for an additional half-leading.
         * 705,600 - 1,200 = 704,400. */
        assertEquals(704400, lineArea.crOriginY());
        /* Same as parent. */
        assertEquals(432000, lineArea.crIpd());
        /* Same as the first line. */
        assertEquals(12000, lineArea.crBpd());

View Full Code Here

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

        /* Same as parent. */
        assertEquals(72000, lineArea.crOriginX());
        /* Same as the previous line, adjusted for one line and two
         * half-leadings.
         * 704,400 - 12,000 - 1,200 - 1,200 = 690,000. */
        assertEquals(690000, lineArea.crOriginY());
        /* Same as parent. */
        assertEquals(432000, lineArea.crIpd());
        /* Same as the other lines. */
        assertEquals(12000, lineArea.crBpd());
    }
View Full Code Here

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

        assertTrue(node instanceof LineArea);
        final LineArea lineArea = (LineArea) node;
        /* x same as the parent block. */
        assertEquals(72000, lineArea.crOriginX());
        /* y adjusted for half-leading = 12,000 * .2 * .5 = 1200. */
        assertEquals(718800, lineArea.crOriginY());
        /* ipd same as parent block. */
        assertEquals(468000, lineArea.crIpd());

        /* Test location and dimensions of the text area. The key thing we are
         * testing here is that IT IS CENTERED. */
 
View Full Code Here

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

        assertTrue(node instanceof LineArea);
        final LineArea lineArea = (LineArea) node;
        /* x same as the parent block. */
        assertEquals(72000, lineArea.crOriginX());
        /* y adjusted for half-leading = 12,000 * .2 * .5 = 1200. */
        assertEquals(718800, lineArea.crOriginY());
        /* ipd same as parent block. */
        assertEquals(468000, lineArea.crIpd());

        /* Test location and dimensions of the text area. The key thing we are
         * testing here is that IT IS CENTERED. */
 
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.