public LineEndWidth getWidth() { return LineEndWidth.valueOf(props.getW()); }
/** * @return the line end decoration width */ @SuppressWarnings("WeakerAccess") public DecorationSize getLineHeadWidth() { CTLineProperties ln = getLn(this, false); DecorationSize ds = DecorationSize.MEDIUM; if (ln != null && ln.isSetHeadEnd() && ln.getHeadEnd().isSetW()) { ds = DecorationSize.fromOoxmlId(ln.getHeadEnd().getW().intValue()); } return ds; }
/** * @return the line end decoration width */ @SuppressWarnings("WeakerAccess") public DecorationSize getLineTailWidth() { CTLineProperties ln = getLn(this, false); DecorationSize ds = DecorationSize.MEDIUM; if (ln != null && ln.isSetTailEnd() && ln.getTailEnd().isSetW()) { ds = DecorationSize.fromOoxmlId(ln.getTailEnd().getW().intValue()); } return ds; }
public LineEndWidth getWidth() { return LineEndWidth.valueOf(props.getW()); }
public LineEndWidth getLineHeadWidth() { CTLineProperties ln = getSpPr().getLn(); if (ln == null || !ln.isSetHeadEnd()) return LineEndWidth.MEDIUM; STLineEndWidth.Enum w = ln.getHeadEnd().getW(); return w == null ? LineEndWidth.MEDIUM : LineEndWidth.values()[w.intValue() - 1]; }
public LineEndWidth getLineTailWidth() { CTLineProperties ln = getSpPr().getLn(); if (ln == null || !ln.isSetTailEnd()) return LineEndWidth.MEDIUM; STLineEndWidth.Enum w = ln.getTailEnd().getW(); return w == null ? LineEndWidth.MEDIUM : LineEndWidth.values()[w.intValue() - 1]; }
/** * @return the line end decoration width */ @SuppressWarnings("WeakerAccess") public DecorationSize getLineHeadWidth() { CTLineProperties ln = getLn(this, false); DecorationSize ds = DecorationSize.MEDIUM; if (ln != null && ln.isSetHeadEnd() && ln.getHeadEnd().isSetW()) { ds = DecorationSize.fromOoxmlId(ln.getHeadEnd().getW().intValue()); } return ds; }
/** * @return the line end decoration width */ @SuppressWarnings("WeakerAccess") public DecorationSize getLineTailWidth() { CTLineProperties ln = getLn(this, false); DecorationSize ds = DecorationSize.MEDIUM; if (ln != null && ln.isSetTailEnd() && ln.getTailEnd().isSetW()) { ds = DecorationSize.fromOoxmlId(ln.getTailEnd().getW().intValue()); } return ds; }