Package org.foray.fotree.value

Examples of org.foray.fotree.value.PropertyCollection.addItem()


        final PropertyCollection collection = new PropertyCollection();
        final PropertyValue pv = checkKeywords(this.getValidKeywords(), value);
        if (pv != null) {
            collection.addItem(new PdFontStyle(pv));
            collection.addItem(new PdFontVariant(pv));
            collection.addItem(new PdFontWeight(pv));
            collection.addItem(new PdFontSize(pv));
            collection.addItem(new PdLineHeight(pv));
            collection.addItem(new PdFontFamily(pv));
            /*
             * In addition to the properties explicitly set, font-stretch and
View Full Code Here


        final PropertyValue pv = checkKeywords(this.getValidKeywords(), value);
        if (pv != null) {
            collection.addItem(new PdFontStyle(pv));
            collection.addItem(new PdFontVariant(pv));
            collection.addItem(new PdFontWeight(pv));
            collection.addItem(new PdFontSize(pv));
            collection.addItem(new PdLineHeight(pv));
            collection.addItem(new PdFontFamily(pv));
            /*
             * In addition to the properties explicitly set, font-stretch and
             * font-size-adjust are set to their initial values by the "font"
View Full Code Here

        if (pv != null) {
            collection.addItem(new PdFontStyle(pv));
            collection.addItem(new PdFontVariant(pv));
            collection.addItem(new PdFontWeight(pv));
            collection.addItem(new PdFontSize(pv));
            collection.addItem(new PdLineHeight(pv));
            collection.addItem(new PdFontFamily(pv));
            /*
             * In addition to the properties explicitly set, font-stretch and
             * font-size-adjust are set to their initial values by the "font"
             * shorthand. They do *not* pick up the "inherit" from the "font"
View Full Code Here

            collection.addItem(new PdFontStyle(pv));
            collection.addItem(new PdFontVariant(pv));
            collection.addItem(new PdFontWeight(pv));
            collection.addItem(new PdFontSize(pv));
            collection.addItem(new PdLineHeight(pv));
            collection.addItem(new PdFontFamily(pv));
            /*
             * In addition to the properties explicitly set, font-stretch and
             * font-size-adjust are set to their initial values by the "font"
             * shorthand. They do *not* pick up the "inherit" from the "font"
             * shorthand.
 
View Full Code Here

            switch (positionArray[i]) {
            case FONT_STYLE: {
                if (styleFound || sizeFound || lineHeightFound || familyFound) {
                    throw unexpectedValue(value, fobj);
                }
                collection.addItem(new PdFontStyle(fobj,
                        propertyFullName, tokenList.get(i)));
                styleFound = true;
                break;
            }
            case FONT_VARIANT: {
View Full Code Here

            case FONT_VARIANT: {
                if (variantFound || sizeFound || lineHeightFound
                        || familyFound) {
                    throw unexpectedValue(value, fobj);
                }
                collection.addItem(new PdFontVariant(fobj,
                        propertyFullName, tokenList.get(i)));
                variantFound = true;
                break;
            }
            case FONT_WEIGHT: {
View Full Code Here

            case FONT_WEIGHT: {
                if (weightFound || sizeFound || lineHeightFound
                        || familyFound) {
                    throw unexpectedValue(value, fobj);
                }
                collection.addItem(new PdFontWeight(fobj,
                        propertyFullName, tokenList.get(i)));
                weightFound = true;
                break;
            }
            case FONT_SIZE: {
View Full Code Here

            }
            case FONT_SIZE: {
                if (sizeFound || lineHeightFound || familyFound) {
                    throw unexpectedValue(value, fobj);
                }
                collection.addItem(new PdFontSize(fobj,
                        propertyFullName, tokenList.get(i)));
                sizeFound = true;
                break;
            }
            case LINE_HEIGHT: {
View Full Code Here

                    throw unexpectedValue(value, fobj);
                }
                // Strip the leading "/" character.
                final String adjustedToken
                        = tokenList.get(i).substring(1);
                collection.addItem(new PdLineHeight(fobj,
                        propertyFullName, adjustedToken));
                lineHeightFound = true;
                break;
            }
            case FONT_FAMILY: {
View Full Code Here

            }
            case FONT_FAMILY: {
                if (familyFound || ! sizeFound) {
                    throw unexpectedValue(value, fobj);
                }
                collection.addItem(new PdFontFamily(fobj,
                        propertyFullName, tokenList.get(i)));
                familyFound = true;
                break;
            }
            }
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.