Package com.ibm.richtext.styledtext

Examples of com.ibm.richtext.styledtext.MTabRuler


            fPanelDefaults = panelDefaults;
        }

        public AttributeMap modifyStyle(AttributeMap oldStyle) {

            MTabRuler oldRuler = (MTabRuler) getWithDefault(TextAttribute.TAB_RULER,
                                                            oldStyle,
                                                            fPanelDefaults);
            MTabRuler ruler = oldRuler;

            if (fOldTab != null) {
                if (ruler.containsTab(fOldTab)) {
                    ruler = ruler.removeTab(fOldTab.getPosition());
                }
            }
            if (fNewTab != null) {
                ruler = ruler.addTab(fNewTab);
            }

            if (ruler != oldRuler) {
                return oldStyle.addAttribute(TextAttribute.TAB_RULER, ruler);
            }
View Full Code Here


                                                        panelDefaults);
        int trailingMargin = (int) getFloatWithDefault(TextAttribute.TRAILING_MARGIN,
                                                       paragraphStyle,
                                                       panelDefaults);

        MTabRuler ruler = (MTabRuler) getWithDefault(TextAttribute.TAB_RULER,
                                                     paragraphStyle,
                                                     panelDefaults);

        int ourFli = leadingMargin + firstLineIndent;
        int ourTmp = fFormatWidth - trailingMargin;
       
        if (leadingMargin == fLeadingMargin &&
                fFirstLineIndent == ourFli &&
                fTrailingMarginPosition == ourTmp &&
                ruler.equals(fRuler)) {
            return;
        }
       
        fLeadingMargin = leadingMargin;
        fFirstLineIndent = ourFli;
View Full Code Here

TOP

Related Classes of com.ibm.richtext.styledtext.MTabRuler

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.