public void setWidth(Integer width) { if (width == null) { if (props.isSetW()) { props.unsetW(); } } else { props.setW(width); } } }
@Override public void setBorderWidth(BorderEdge edge, double width) { final CTLineProperties ln = getCTLine(edge, true); if (ln == null) { return; } ln.setW(Units.toEMU(width)); }
/** * Specifies the width to be used for the underline stroke. * * @param lineWidth width in points */ public void setLineWidth( double lineWidth ) { CTShapeProperties props = getShapeProperties(); CTLineProperties ln = props.isSetLn() ? props.getLn() : props.addNewLn(); ln.setW((int)(lineWidth*Units.EMU_PER_POINT)); }
lnPr.setW(Units.toEMU(width));
public void setWidth(Integer width) { if (width == null) { if (props.isSetW()) { props.unsetW(); } } else { props.setW(width); } } }
@Override public void setBorderWidth(BorderEdge edge, double width) { final CTLineProperties ln = getCTLine(edge, true); if (ln == null) { return; } ln.setW(Units.toEMU(width)); }
/** * Specifies the width to be used for the underline stroke. * * @param lineWidth width in points */ public void setLineWidth( double lineWidth ) { CTShapeProperties props = getShapeProperties(); CTLineProperties ln = props.isSetLn() ? props.getLn() : props.addNewLn(); ln.setW((int)(lineWidth*Units.EMU_PER_POINT)); }
/** * Specifies the width to be used for the underline stroke. * * @param lineWidth width in points */ public void setLineWidth( double lineWidth ) { CTShapeProperties props = getShapeProperties(); CTLineProperties ln = props.isSetLn() ? props.getLn() : props.addNewLn(); ln.setW((int)(lineWidth*EMU_PER_POINT)); }
public void setBorderLeft(double width){ CTTableCellProperties pr = getXmlObject().getTcPr(); CTLineProperties ln = pr.isSetLnL() ? pr.getLnL() : pr.addNewLnL(); ln.setW(Units.toEMU(width)); }
public void setBorderTop(double width){ CTTableCellProperties pr = getXmlObject().getTcPr(); CTLineProperties ln = pr.isSetLnT() ? pr.getLnT() : pr.addNewLnT(); ln.setW(Units.toEMU(width)); }
public void setBorderBottom(double width){ CTTableCellProperties pr = getXmlObject().getTcPr(); CTLineProperties ln = pr.isSetLnB() ? pr.getLnB() : pr.addNewLnB(); ln.setW(Units.toEMU(width)); }
public void setBorderRight(double width){ CTTableCellProperties pr = getXmlObject().getTcPr(); CTLineProperties ln = pr.isSetLnR() ? pr.getLnR() : pr.addNewLnR(); ln.setW(Units.toEMU(width)); }
/** * * @param width line width in points. <code>0</code> means no line */ public void setLineWidth(double width) { CTShapeProperties spPr = getSpPr(); if (width == 0.) { if (spPr.isSetLn()) spPr.getLn().unsetW(); } else { CTLineProperties ln = spPr.isSetLn() ? spPr.getLn() : spPr .addNewLn(); ln.setW(Units.toEMU(width)); } }
lnPr.setW(Units.toEMU(width));