public LineEndType getType() { return LineEndType.valueOf(props.getType()); }
/** * @return the line end decoration shape */ @SuppressWarnings("WeakerAccess") public DecorationShape getLineHeadDecoration() { CTLineProperties ln = getLn(this, false); DecorationShape ds = DecorationShape.NONE; if (ln != null && ln.isSetHeadEnd() && ln.getHeadEnd().isSetType()) { ds = DecorationShape.fromOoxmlId(ln.getHeadEnd().getType().intValue()); } return ds; }
/** * @return the line end decoration shape */ @SuppressWarnings("WeakerAccess") public DecorationShape getLineTailDecoration() { CTLineProperties ln = getLn(this, false); DecorationShape ds = DecorationShape.NONE; if (ln != null && ln.isSetTailEnd() && ln.getTailEnd().isSetType()) { ds = DecorationShape.fromOoxmlId(ln.getTailEnd().getType().intValue()); } return ds; }
public LineEndType getType() { return LineEndType.valueOf(props.getType()); }
public LineDecoration getLineTailDecoration() { CTLineProperties ln = getSpPr().getLn(); if (ln == null || !ln.isSetTailEnd()) return LineDecoration.NONE; STLineEndType.Enum end = ln.getTailEnd().getType(); return end == null ? LineDecoration.NONE : LineDecoration.values()[end.intValue() - 1]; }
public LineDecoration getLineHeadDecoration() { CTLineProperties ln = getSpPr().getLn(); if (ln == null || !ln.isSetHeadEnd()) return LineDecoration.NONE; STLineEndType.Enum end = ln.getHeadEnd().getType(); return end == null ? LineDecoration.NONE : LineDecoration.values()[end.intValue() - 1]; }
/** * @return the line end decoration shape */ @SuppressWarnings("WeakerAccess") public DecorationShape getLineHeadDecoration() { CTLineProperties ln = getLn(this, false); DecorationShape ds = DecorationShape.NONE; if (ln != null && ln.isSetHeadEnd() && ln.getHeadEnd().isSetType()) { ds = DecorationShape.fromOoxmlId(ln.getHeadEnd().getType().intValue()); } return ds; }
/** * @return the line end decoration shape */ @SuppressWarnings("WeakerAccess") public DecorationShape getLineTailDecoration() { CTLineProperties ln = getLn(this, false); DecorationShape ds = DecorationShape.NONE; if (ln != null && ln.isSetTailEnd() && ln.getTailEnd().isSetType()) { ds = DecorationShape.fromOoxmlId(ln.getTailEnd().getType().intValue()); } return ds; }