@Override public PaintStyle getPaint() { return DrawPaint.createSolidPaint(getBorderColor(edge)); }
@Override public void setBulletFontColor(Color color) { setBulletFontColor(DrawPaint.createSolidPaint(color)); }
@Override public void setFontColor(Color color) { setFontColor(DrawPaint.createSolidPaint(color)); }
@SuppressWarnings("WeakerAccess") public void setBulletFontColor(Color color) { setBulletFontColor(DrawPaint.createSolidPaint(color)); }
@SuppressWarnings("WeakerAccess") protected static PaintStyle selectPaint(CTSolidColorFillProperties solidFill, CTSchemeColor phClr, final XSLFTheme theme) { if (solidFill.isSetSchemeClr()) { // if there's a reference to the placeholder color, // stop evaluating further and let the caller select // the next style inheritance level // if (STSchemeColorVal.PH_CLR.equals(solidFill.getSchemeClr().getVal())) { // return null; // } if (phClr == null) { phClr = solidFill.getSchemeClr(); } } final XSLFColor c = new XSLFColor(solidFill, theme, phClr); return DrawPaint.createSolidPaint(c.getColorStyle()); }
@Override public SolidPaint getFillStyle() { XSLFTheme theme = getSheet().getTheme(); CTOuterShadowEffect ct = (CTOuterShadowEffect)getXmlObject(); if(ct == null) return null; CTSchemeColor phClr = ct.getSchemeClr(); final XSLFColor xc = new XSLFColor(ct, theme, phClr); return DrawPaint.createSolidPaint(xc.getColorStyle()); } }
/** * * @return the color of bullet characters within a given paragraph. * A <code>null</code> value means to use the text font color. */ @SuppressWarnings("WeakerAccess") public PaintStyle getBulletFontColor(){ final XSLFTheme theme = getParentShape().getSheet().getTheme(); ParagraphPropertyFetcher<Color> fetcher = new ParagraphPropertyFetcher<Color>(getIndentLevel()){ public boolean fetch(CTTextParagraphProperties props){ if(props.isSetBuClr()){ XSLFColor c = new XSLFColor(props.getBuClr(), theme, null); setValue(c.getColor()); return true; } return false; } }; fetchParagraphProperty(fetcher); Color col = fetcher.getValue(); return (col == null) ? null : DrawPaint.createSolidPaint(col); }
@Override public PaintStyle getFontColor() { CTTableStyleTextStyle txStyle = getTextStyle(); if (txStyle == null) { return super.getFontColor(); } CTSchemeColor phClr = null; CTFontReference fontRef = txStyle.getFontRef(); if (fontRef != null) { phClr = fontRef.getSchemeClr(); } XSLFTheme theme = getSheet().getTheme(); final XSLFColor c = new XSLFColor(txStyle, theme, phClr); return DrawPaint.createSolidPaint(c.getColorStyle()); }
rt.setFontFamily(_font.getFamily()); if (getColor() != null) rt.setFontColor(DrawPaint.createSolidPaint(getColor())); if (_font.isBold()) rt.setBold(true); if (_font.isItalic()) rt.setItalic(true);
return DrawPaint.createSolidPaint(col.getColorStyle());
@Override public void setFontColor(Color color) { setFontColor(DrawPaint.createSolidPaint(color)); }
@Override public SolidPaint getFillStyle() { return DrawPaint.createSolidPaint(getShadowColor()); }
@Override public void setBulletFontColor(Color color) { setBulletFontColor(DrawPaint.createSolidPaint(color)); }
@Override public void setBulletFontColor(Color color) { setBulletFontColor(DrawPaint.createSolidPaint(color)); }
@Override public PaintStyle getBulletFontColor() { Color col = HSLFTextParagraph.this.getBulletColor(); return DrawPaint.createSolidPaint(col); }
@Override public PaintStyle getPaint() { return DrawPaint.createSolidPaint(getBorderColor(edge)); }
@Override public PaintStyle getPaint() { return DrawPaint.createSolidPaint(HSLFSimpleShape.this.getLineColor()); }
@Override public PaintStyle getPaint() { return DrawPaint.createSolidPaint(getBorderColor(edge)); }
/** * @return font color as PaintStyle */ @Override public SolidPaint getFontColor() { TextProp tp = getTextParagraph().getPropVal(characterStyle, "font.color"); if (tp == null) { return null; } Color color = HSLFTextParagraph.getColorFromColorIndexStruct(tp.getValue(), parentParagraph.getSheet()); return DrawPaint.createSolidPaint(color); }
@Override public SolidPaint getFillStyle() { XSLFTheme theme = getSheet().getTheme(); CTOuterShadowEffect ct = (CTOuterShadowEffect)getXmlObject(); if(ct == null) return null; CTSchemeColor phClr = ct.getSchemeClr(); final XSLFColor xc = new XSLFColor(ct, theme, phClr); return DrawPaint.createSolidPaint(xc.getColorStyle()); } }