Examples of FoContext


Examples of org.axsl.fo.FoContext

     * @return The value of this property.
     */
    public int getValue(final FObj fobj) {
        /* Null context is OK. The objects for these cannot be inside a
         * marker.*/
        final FoContext context = null;
        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.fo.FoContext

     * @param fobj The FO for which this value is needed.
     * @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: {
View Full Code Here

Examples of org.axsl.fo.FoContext

     * @return The X Position of the upper left corner of the page's reference
     * area's content rectangle, in millipoints.
     */
    public int getXPositionRAContent() {
        /* TODO: Handle context better. */
        final FoContext context = null;
        return getMarginLeft(context);
    }
View Full Code Here

Examples of org.axsl.fo.FoContext

     * @return The Y Position of the upper left corner of the page's reference
     * area's content rectangle, in millipoints.
     */
    public int getYPositionRAContent() {
        /* TODO: Handle context better. */
        final FoContext context = null;
        return traitPageHeight()
                - getMarginTop(context);
    }
View Full Code Here

Examples of org.axsl.fo.FoContext

     * @return The width of the page's reference area's content rectangle, in
     * millipoints.
     */
    public int getWidthRAContent() {
        /* TODO: Handle context better. */
        final FoContext context = null;
        return traitPageWidth() - getMarginLeft(context)
                - getMarginRight(context);
    }
View Full Code Here

Examples of org.axsl.fo.FoContext

     * @return The height of the page's reference area's content rectangle, in
     * millipoints.
     */
    public int getHeightRAContent() {
        /* TODO: Handle context better. */
        final FoContext context = null;
        return traitPageHeight() - getMarginTop(context)
                - getMarginBottom(context);
    }
View Full Code Here

Examples of org.axsl.fo.FoContext

    private void commonTest(final String rawValue,
            final AlignmentBaseline expectedAlignmentBaseline) throws PropertyException {
        final FObj fobj = TestVerticalAlign.makeTestFObj();
        final PdVerticalAlign property = createProperty(fobj, rawValue);
        fobj.getPropertyList().addProperty(fobj, property);
        final FoContext context = TestVerticalAlign.STD_FO_CONTEXT;
        final org.axsl.common.value.AlignmentBaseline actualAlignmentBaseline
                = fobj.traitAlignmentBaseline(context);
        assertEquals(expectedAlignmentBaseline, actualAlignmentBaseline);
        /* TODO: Add tests for alignment-adjust, baseline-shift, and
         * dominant-baseline. */
 
View Full Code Here

Examples of org.axsl.fo.FoContext

     * @throws AreaTreeException For errors during layout.
     */
    protected int addTextItemToLine(final LineArea lineArea,
            final FoLineText lineText, final int start, final int end,
            final GraftingPoint graftingPoint) throws AreaTreeException {
        FoContext foContext = lineArea;
        if (graftingPoint != null) {
            foContext = new OverrideGraftingContext(lineArea,
                    graftingPoint);
        }
        EagerLineBreaker lb = this.layout.getLineBreaker();
View Full Code Here

Examples of org.axsl.fo.FoContext

     * @return The status of the layout attempt.
     * @throws AreaTreeException For errors during layout.
     */
    protected Status addNonTextContent(final LineArea inputLineArea,
            final GraftingPoint graftingPoint) throws AreaTreeException {
        FoContext foContext = inputLineArea;
        if (graftingPoint != null) {
            foContext = new OverrideGraftingContext(inputLineArea,
                    graftingPoint);
        }
        final Fo node = this.getFONode();
View Full Code Here

Examples of org.axsl.fo.FoContext

     * If any of these are not true, null is returned.
     */
    private CharacterSequence4a getContiguousTextInBlock(
            final FObj leafToTest) {
        final FObj effectiveParent = this.getParent();
        final FoContext context = null;
        if (leafToTest == null) {
            return null;
        }
        if (! (leafToTest instanceof CharacterSequence4a)) {
            return null;
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.