Package com.ibm.richtext.textlayout.attributes

Examples of com.ibm.richtext.textlayout.attributes.AttributeMap


        }

        shiftTableTo(start);

        int currentRunStart = start;
        AttributeMap oldStyle;
        AttributeMap mergeStyle = fStyleTable[fRunArray.fPosEnd];

        if (fRunArray.fNegStart < fRunArray.getArrayLength() &&
                fRunArray.fRunStart[fRunArray.fNegStart]+fRunArray.getCurTextLength() == start) {

            oldStyle = fStyleTable[fRunArray.fNegStart];
            ++fRunArray.fNegStart;
        }
        else {
            oldStyle = mergeStyle;
        }

        boolean modifiedAnywhere = false;
        for(;;) {

            boolean modified = false;

            // push new style into gap on positive side
            AttributeMap newStyle = modifier.modifyStyle(oldStyle);
            if (damagedRange != null && !newStyle.equals(oldStyle)) {
                modified = modifiedAnywhere = true;
                damagedRange[0] = Math.min(currentRunStart, damagedRange[0]);
            }

            if (!newStyle.equals(mergeStyle)) {

                if (currentRunStart != 0) {
                    expandStyleTableIfFull();
                    ++fRunArray.fPosEnd;
                }
View Full Code Here


        int runStart = fRunArray.fRunStart[run];
        if (runStart < 0)
            runStart += fRunArray.getCurTextLength();

        AttributeMap style = fStyleTable[run];

        int nextRun;

        if (run == fRunArray.fPosEnd)
            nextRun = fRunArray.fNegStart;
View Full Code Here

        if (srcStart == srcLimit)
            return;
        prepareStyleInsert(start);
        for (int j2 = srcStart; j2 < srcLimit; j2 = srcText.characterStyleLimit(j2))
        {
            AttributeMap attributeMap = srcText.characterStyleAt(j2);
            if (fRunArray.fPosEnd < 0 || !fStyleTable[fRunArray.fPosEnd].equals(attributeMap))
            {
                expandStyleTableIfFull();
                fRunArray.fPosEnd++;
                fRunArray.fRunStart[fRunArray.fPosEnd] = j2 - srcStart + start;
View Full Code Here

TOP

Related Classes of com.ibm.richtext.textlayout.attributes.AttributeMap

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.