@Override public void setBorderCompound(BorderEdge edge, LineCompound compound) { if (compound == null) { throw new IllegalArgumentException("LineCompound need to be specified."); } CTLineProperties ln = setBorderDefaults(edge); ln.setCmpd(STCompoundLine.Enum.forInt(compound.ooxmlId)); }
public void setCompoundLine(CompoundLine compound) { if (compound == null) { if (props.isSetCmpd()) { props.unsetCmpd(); } } else { props.setCmpd(compound.underlying); } }
break; ln.setCmpd(xCmpd);
ln.setCmpd(STCompoundLine.SNG);
@Override public void setBorderCompound(BorderEdge edge, LineCompound compound) { if (compound == null) { throw new IllegalArgumentException("LineCompound need to be specified."); } CTLineProperties ln = setBorderDefaults(edge); ln.setCmpd(STCompoundLine.Enum.forInt(compound.ooxmlId)); }
public void setCompoundLine(CompoundLine compound) { if (compound == null) { if (props.isSetCmpd()) { props.unsetCmpd(); } } else { props.setCmpd(compound.underlying); } }
private void setLineColor(CTLineProperties ln, Color color){ if(color == null){ ln.addNewNoFill(); if(ln.isSetSolidFill()) ln.unsetSolidFill(); } else { if(ln.isSetNoFill()) ln.unsetNoFill(); if(!ln.isSetPrstDash()) ln.addNewPrstDash().setVal(STPresetLineDashVal.SOLID); ln.setCmpd(STCompoundLine.SNG); ln.setAlgn(STPenAlignment.CTR); ln.setCap(STLineCap.FLAT); ln.addNewRound(); CTLineEndProperties hd = ln.addNewHeadEnd(); hd.setType(STLineEndType.NONE); hd.setW(STLineEndWidth.MED); hd.setLen(STLineEndLength.MED); CTLineEndProperties tl = ln.addNewTailEnd(); tl.setType(STLineEndType.NONE); tl.setW(STLineEndWidth.MED); tl.setLen(STLineEndLength.MED); CTSRgbColor rgb = CTSRgbColor.Factory.newInstance(); rgb.setVal(new byte[]{(byte)color.getRed(), (byte)color.getGreen(), (byte)color.getBlue()}); ln.addNewSolidFill().setSrgbClr(rgb); } }
ln.setCmpd(STCompoundLine.SNG);