Examples of AbsoluteAxis


Examples of org.axsl.common.value.AbsoluteAxis

     * @return The relative axis for this property.
     */
    private RelativeAxis getRelativeAxis(final FoContext context,
            final FObj fobj) {
        final DtWritingMode writingMode = fobj.traitWritingMode(context);
        final AbsoluteAxis absoluteAxis = this.getAbsoluteAxis();
        return writingMode.getRelativeAxis(absoluteAxis);
    }
View Full Code Here

Examples of org.axsl.common.value.AbsoluteAxis

     * @return The base value for the extent calculation.
     */
    private int computeBase(final FoContext context, final FObj fobj) {
        final DtWritingMode writingMode = fobj.getPropertyList().getWritingMode(
                fobj, context);
        AbsoluteAxis absoluteAxis = null;
        if (fobj instanceof RegionBefore || fobj instanceof RegionAfter) {
            absoluteAxis = writingMode.getAbsoluteAxis(
                    RelativeAxis.BLOCK_PROGRESSION);
        } else if (fobj instanceof RegionStart || fobj instanceof RegionEnd) {
            absoluteAxis = writingMode.getAbsoluteAxis(
View Full Code Here

Examples of org.axsl.common.value.AbsoluteAxis

                return paddingRectangleDimension - backgroundImageDimension;
            }
            case INHERIT: {
                final FObj parent = fobj.effectiveParent(context);
                if (parent != null) {
                    final AbsoluteAxis axis = this.getAbsoluteAxis();
                    if (axis == AbsoluteAxis.HORIZONTAL) {
                        return parent.traitBackgroundPositionHorizontal(
                                context, paddingRectangleDimension,
                                backgroundImageDimension);
                    }
View Full Code Here

Examples of org.axsl.common.value.AbsoluteAxis

            case LANDSCAPE: {
                /*
                 * Since our default page is portrait, we'll just reverse the
                 * axes for landscape.
                 */
                final AbsoluteAxis otherAxis = axis.getOpposite();
                return AbstractPageDimension.getValueNoInstance(otherAxis);
            }
            case PORTRAIT: {
                /*
                 * For now, this is the same as "auto".
View Full Code Here

Examples of org.axsl.common.value.AbsoluteAxis

     * @return The value of this property.
     */
    public int getValue(final FObj fobj) {
        /* Null context is OK, because the object can't be inside a marker. */
        final FoContext context = null;
        final AbsoluteAxis axis = this.getAbsoluteAxis();
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                final FObj parent = fobj.getParent();
View Full Code Here

Examples of org.axsl.common.value.AbsoluteAxis

    /**
     * Returns the writing mode associated with this Area.
     * @return The writing mode (vertical or horizontal) that is associated with this Area.
     */
    public Font.WritingMode getFontWritingMode() {
        final AbsoluteAxis axis = this.getWritingMode().getIpAxis();
        if (axis == AbsoluteAxis.VERTICAL) {
            return Font.WritingMode.VERTICAL;
        }
        return Font.WritingMode.HORIZONTAL;
    }
View Full Code Here

Examples of org.axsl.common.value.AbsoluteAxis

        }

        /* Try the corresponding absolute dimension. */
        AbstractAbsoluteDimension absDimProperty = null;
        final DtWritingMode writingMode = this.getWritingMode(fobj, context);
        final AbsoluteAxis absoluteAxis = writingMode.getAbsoluteAxis(
                relativeAxis);
        if (absoluteAxis == AbsoluteAxis.HORIZONTAL) {
            switch (subProperty) {
            case MINIMUM: {
                absDimProperty = (AbstractAbsoluteDimension) getProperty(
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.