All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.poi.xwpf.converter.core.openxmlformats.styles.run.RunFontColorValueProvider Maven / Gradle / Ivy

package org.apache.poi.xwpf.converter.core.openxmlformats.styles.run;

import java.awt.Color;
import java.math.BigInteger;

import org.apache.poi.xwpf.converter.core.styles.XWPFStylesDocument;
import org.apache.poi.xwpf.converter.core.utils.ColorHelper;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTParaRPr;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRPr;

public class RunFontColorValueProvider
    extends AbstractRunValueProvider
{

    public static final RunFontColorValueProvider INSTANCE = new RunFontColorValueProvider();

    @Override
    public Color getValue( CTRPr pr, XWPFStylesDocument document )
    {
        return ColorHelper.getColor( pr );
    }

    @Override
    public Color getValue( CTParaRPr pr, XWPFStylesDocument document )
    {
        return ColorHelper.getColor( pr );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy