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 );
}
}