Package org.foray.fotree.value

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


     * @return The country embedded in this property, or null if none is
     * embedded.
     */
    public PdCountry getCountry() {
        final PropertyCollection collection = (PropertyCollection) value();
        return (PdCountry) collection.findProperty(FoProperty.COUNTRY);
    }

    /**
     * Return the Language, if any, embedded in this property.
     * @return The language embedded in this property, or null if none is
View Full Code Here


     * @return The language embedded in this property, or null if none is
     * embedded.
     */
    public PdLanguage getLanguage() {
        final PropertyCollection collection = (PropertyCollection) value();
        return (PdLanguage) collection.findProperty(FoProperty.LANGUAGE);
    }

    /**
     * {@inheritDoc}
     */
 
View Full Code Here

    public AbstractBorderStyle getBorderStyle() {
        if (! (value() instanceof PropertyCollection)) {
            return null;
        }
        final PropertyCollection collection = (PropertyCollection) value();
        final Property property = collection.findProperty(
                FoProperty.BORDER_STYLE);
        if (property instanceof AbstractBorderStyle) {
            return (AbstractBorderStyle) property;
        }
        return null;
View Full Code Here

    public AbstractBorderWidth getBorderWidth() {
        if (! (value() instanceof PropertyCollection)) {
            return null;
        }
        final PropertyCollection collection = (PropertyCollection) value();
        final Property property = collection.findProperty(
                FoProperty.BORDER_WIDTH);
        if (property instanceof AbstractBorderWidth) {
            return (AbstractBorderWidth) property;
        }
        return null;
View Full Code Here

    public AbstractBorderColor getBorderColor() {
        if (! (value() instanceof PropertyCollection)) {
            return null;
        }
        final PropertyCollection collection = (PropertyCollection) value();
        final Property property = collection.findProperty(
                FoProperty.BORDER_COLOR);
        if (property instanceof AbstractBorderColor) {
            return (AbstractBorderColor) property;
        }
        return null;
View Full Code Here

     * Returns the "font-style" component from this compound property.
     * @return The "font-style" component from this compound property.
     */
    public PdFontStyle getStyle() {
        final PropertyCollection collection = (PropertyCollection) value();
        return (PdFontStyle) collection.findProperty(FoProperty.FONT_STYLE);
    }

    /**
     * Returns the "font-variant" component from this compound property.
     * @return The "font-variant" component from this compound property.
View Full Code Here

     * Returns the "font-variant" component from this compound property.
     * @return The "font-variant" component from this compound property.
     */
    public PdFontVariant getVariant() {
        final PropertyCollection collection = (PropertyCollection) value();
        return (PdFontVariant) collection.findProperty(
                FoProperty.FONT_VARIANT);
    }

    /**
     * Returns the "font-weight" component from this compound property.
View Full Code Here

     * Returns the "font-weight" component from this compound property.
     * @return The "font-weight" component from this compound property.
     */
    public PdFontWeight getWeight() {
        final PropertyCollection collection = (PropertyCollection) value();
        return (PdFontWeight) collection.findProperty(
                FoProperty.FONT_WEIGHT);
    }

    /**
     * Returns the "font-size" component from this compound property.
View Full Code Here

     * Returns the "font-size" component from this compound property.
     * @return The "font-size" component from this compound property.
     */
    public PdFontSize getSize() {
        final PropertyCollection collection = (PropertyCollection) value();
        return (PdFontSize) collection.findProperty(FoProperty.FONT_SIZE);
    }

    /**
     * Returns the "line-height" component from this compound property.
     * @return The "line-height" component from this compound property.
View Full Code Here

     * Returns the "line-height" component from this compound property.
     * @return The "line-height" component from this compound property.
     */
    public PdLineHeight getLineHeight() {
        final PropertyCollection collection = (PropertyCollection) value();
        return (PdLineHeight) collection.findProperty(
                FoProperty.LINE_HEIGHT);
    }

    /**
     * Returns the "font-family" component from this compound property.
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.