Package org.axsl.common.value

Examples of org.axsl.common.value.AbsoluteDirection


    /**
     * {@inheritDoc}
     */
    public int crOriginX() {
        final AbsoluteDirection bpDirection = getWritingMode().getBpDirection();
        final AbsoluteDirection ipDirection =
                getWritingMode().getIpDirectionOdd();
        if (bpDirection.isVertical()) {
            if (ipDirection == AbsoluteDirection.LEFT_TO_RIGHT) {
                return traitSpaceStartOptimum();
            } else {
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public int crOriginY() {
        final AbsoluteDirection bpDirection = getWritingMode().getBpDirection();
        final AbsoluteDirection ipDirection =
                getWritingMode().getIpDirectionOdd();
        if (bpDirection.isHorizontal()) {
            if (ipDirection == AbsoluteDirection.TOP_TO_BOTTOM) {
                return traitPageHeight() - traitSpaceStartOptimum();
            } else {
View Full Code Here

     */
    public int brOriginX() {
        // Start at the parent's content origin.
        final int x = ancestorArea().crOriginX();
        final SimplePageMaster spm = getPageMaster();
        final AbsoluteDirection stackingDirection
                = ancestorArea().contentStackingDirectionAbsolute();
        if (stackingDirection.isVertical()) {
            /* x is where it needs to be. */
            return x;
        }
        if (stackingDirection == AbsoluteDirection.LEFT_TO_RIGHT) {
            return x + spm.getStartExtent();
View Full Code Here

     */
    public int brOriginY() {
        // Start at the parent's content origin.
        final int y = ancestorArea().crOriginY();
        final SimplePageMaster spm = getPageMaster();
        final AbsoluteDirection direction
                = getWritingMode().getAbsoluteDirFromRelativeAxis(
                RelativeAxis.BLOCK_PROGRESSION);
        if (direction.isHorizontal()) {
            /* y is where it needs to be. */
            return y;
        }
        if (direction == AbsoluteDirection.TOP_TO_BOTTOM) {
            return y - spm.getBeforeExtent();
View Full Code Here

     * @return The computed x coordinate of the content rectangle.
     */
    private int computeCrOriginX() {
        // Start at the parent's content origin.
        int x = crReferenceX();
        final AbsoluteDirection ipOdd = getWritingMode().getIpDirectionOdd();
        if (ipOdd == AbsoluteDirection.LEFT_TO_RIGHT) {
            x += this.crOriginIPDOffset();
            return x;
        }
        if (ipOdd == AbsoluteDirection.RIGHT_TO_LEFT) {
            x -= this.crOriginIPDOffset();
            return x;
        }
        final AbsoluteDirection bpd = getWritingMode().getBpDirection();
        if (bpd == AbsoluteDirection.LEFT_TO_RIGHT) {
            x += this.crOriginBPDOffset();
            return x;
        }
        if (bpd == AbsoluteDirection.RIGHT_TO_LEFT) {
View Full Code Here

     * @return The computed y coordinate of the content rectangle.
     */
    private int computeCrOriginY() {
        // Start at the parent's content origin.
        int y = ancestorArea().crOriginY();
        final AbsoluteDirection bpd = getWritingMode().getBpDirection();
        if (bpd == AbsoluteDirection.TOP_TO_BOTTOM) {
            y -= this.crOriginBPDOffset();
            return y;
        }
        if (bpd == AbsoluteDirection.BOTTOM_TO_TOP) {
            y += this.crOriginBPDOffset();
            return y;
        }
        final AbsoluteDirection ipOdd = getWritingMode().getIpDirectionOdd();
        if (ipOdd == AbsoluteDirection.TOP_TO_BOTTOM) {
            y -= this.crOriginIPDOffset();
            return y;
        }
        if (ipOdd == AbsoluteDirection.RIGHT_TO_LEFT) {
View Full Code Here

TOP

Related Classes of org.axsl.common.value.AbsoluteDirection

Copyright © 2018 www.massapicom. 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.