Package org.foray.fotree.value

Examples of org.foray.fotree.value.DtWritingMode


     * @param fobj The FO for which this value is needed.
     * @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


     * @param context An object that knows how to resolve FO context issues.
     * @param fobj The FO for which this value is needed.
     * @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(
                    RelativeAxis.INLINE_PROGRESSION);
        }
        if (absoluteAxis == AbsoluteAxis.VERTICAL) {
            return fobj.traitPageHeight();
        }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    protected RelativeCompass getRelativeCompass(
            final FoContext context, final FObj fobj) {
        final DtWritingMode writingMode = fobj.traitWritingMode(context);
        return writingMode.getRelativeDirection(AbsoluteCompass.LEFT);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public Color getParentValue(final FObj parent, final FoContext context) {
        final DtWritingMode writingMode = parent.traitWritingMode(context);
        final RelativeCompass direction = writingMode.getRelativeDirection(
                AbsoluteCompass.LEFT);
        return parent.getPropertyList().getBorderColor(parent, context,
                direction);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public Color getParentValue(final FObj parent, final FoContext context) {
        final DtWritingMode writingMode = parent.traitWritingMode(context);
        final RelativeCompass direction = writingMode.getRelativeDirection(
                AbsoluteCompass.TOP);
        return parent.getPropertyList().getBorderColor(parent, context,
                direction);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    protected RelativeCompass getRelativeCompass(final FoContext context,
            final FObj fobj) {
        final DtWritingMode writingMode = fobj.traitWritingMode(context);
        return writingMode.getRelativeDirection(AbsoluteCompass.LEFT);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    protected RelativeCompass getRelativeCompass(final FoContext context,
            final FObj fobj) {
        final DtWritingMode writingMode = fobj.traitWritingMode(context);
        return writingMode.getRelativeDirection(AbsoluteCompass.BOTTOM);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    protected RelativeCompass getRelativeCompass(
            final FoContext context, final FObj fobj) {
        final DtWritingMode writingMode = fobj.traitWritingMode(context);
        return writingMode.getRelativeDirection(AbsoluteCompass.BOTTOM);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    protected RelativeCompass getRelativeCompass(final FoContext context,
            final FObj fobj) {
        final DtWritingMode writingMode = fobj.traitWritingMode(context);
        return writingMode.getRelativeDirection(AbsoluteCompass.TOP);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    protected RelativeCompass getRelativeCompass(
            final FoContext context, final FObj fobj) {
        final DtWritingMode writingMode = fobj.traitWritingMode(context);
        return writingMode.getRelativeDirection(AbsoluteCompass.TOP);
    }
View Full Code Here

TOP

Related Classes of org.foray.fotree.value.DtWritingMode

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.