Examples of WritingMode


Examples of org.axsl.common.value.WritingMode

     * {@inheritDoc}
     */
    public int brOriginX() {
        // Start at the padding-rectangle origin.
        int x = prOriginX();
        final WritingMode writingMode = this.getWritingMode();
        if (this.getBPAxis() == AbsoluteAxis.VERTICAL) {
            // Our BP Axis is vertical
            final boolean goingRight = writingMode.getIpDirectionOdd()
                    == AbsoluteDirection.LEFT_TO_RIGHT;
            if (goingRight) {
                x -= this.traitBorderStartWidth();
            } else {
                x += this.traitBorderStartWidth();
            }
        } else {
            // Our BP Axis is horizontal
            final boolean goingRight = writingMode.getBpDirection()
                    == AbsoluteDirection.LEFT_TO_RIGHT;
            if (goingRight) {
                x -= this.traitBorderBeforeWidth();
            } else {
                x += this.traitBorderBeforeWidth();
View Full Code Here

Examples of org.axsl.common.value.WritingMode

     * {@inheritDoc}
     */
    public int brOriginY() {
        // Start at the padding-rectangle origin.
        int y = prOriginY();
        final WritingMode writingMode = this.getWritingMode();
        if (this.getBPAxis() == AbsoluteAxis.VERTICAL) {
            // Our BP Axis is vertical
            final boolean goingDown = writingMode.getBpDirection()
                    == AbsoluteDirection.TOP_TO_BOTTOM;
            if (goingDown) {
                y += this.traitBorderBeforeWidth();
            } else {
                y -= this.traitBorderBeforeWidth();
            }
        } else {
            // Our BP Axis is horizontal
            final boolean goingUp = writingMode.getIpDirectionOdd()
                    == AbsoluteDirection.BOTTOM_TO_TOP;
            if (goingUp) {
                y -= this.traitBorderStartWidth();
            } else {
                y += this.traitBorderStartWidth();
View Full Code Here

Examples of org.axsl.common.value.WritingMode

     * @return The padding-rectangle point-of-origin x coordinate.
     */
    public int prOriginX() {
        // Start at the content-rectangle origin.
        int x = crOriginX();
        final WritingMode writingMode = this.getWritingMode();
        if (this.getBPAxis() == AbsoluteAxis.VERTICAL) {
            // Our BP Axis is vertical
            final boolean goingRight = writingMode.getIpDirectionOdd()
                    == AbsoluteDirection.LEFT_TO_RIGHT;
            if (goingRight) {
                x -= this.traitPaddingStart();
            } else {
                x += this.traitPaddingStart();
            }
        } else {
            // Our BP Axis is horizontal
            final boolean goingRight = writingMode.getBpDirection()
                    == AbsoluteDirection.LEFT_TO_RIGHT;
            if (goingRight) {
                x -= this.traitPaddingBefore();
            } else {
                x += this.traitPaddingBefore();
View Full Code Here

Examples of org.axsl.common.value.WritingMode

     * @return The padding-rectangle point-of-origin y coordinate.
     */
    public int prOriginY() {
        // Start at the content-rectangle origin.
        int y = crOriginY();
        final WritingMode writingMode = this.getWritingMode();
        if (this.getBPAxis() == AbsoluteAxis.VERTICAL) {
            final boolean goingDown = writingMode.getBpDirection()
                    == AbsoluteDirection.TOP_TO_BOTTOM;
            if (goingDown) {
                y += this.traitPaddingBefore();
            } else {
                y -= this.traitPaddingBefore();
            }
        } else {
            // Our BP Axis is horizontal
            final boolean goingRight = writingMode.getBpDirection()
                    == AbsoluteDirection.LEFT_TO_RIGHT;
            if (goingRight) {
                y -= this.traitPaddingBefore();
            } else {
                y += this.traitPaddingBefore();
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.