/** * @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 static DecorationShape fromOoxmlId(int ooxmlId) { for (DecorationShape ds : values()) { if (ds.ooxmlId == ooxmlId) return ds; } return null; } }
public DecorationShape getLineTailDecoration(){ AbstractEscherOptRecord opt = getEscherOptRecord(); EscherSimpleProperty prop = getEscherProperty(opt, EscherProperties.LINESTYLE__LINEENDARROWHEAD); return (prop == null) ? null : DecorationShape.fromNativeId(prop.getPropertyValue()); }
/** * @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; }
public DecorationShape getLineHeadDecoration(){ AbstractEscherOptRecord opt = getEscherOptRecord(); EscherSimpleProperty prop = getEscherProperty(opt, EscherProperties.LINESTYLE__LINESTARTARROWHEAD); return (prop == null) ? null : DecorationShape.fromNativeId(prop.getPropertyValue()); }
public static DecorationShape fromNativeId(int nativeId) { for (DecorationShape ld : values()) { if (ld.nativeId == nativeId) return ld; } return null; }
/** * @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 static DecorationShape fromNativeId(int nativeId) { for (DecorationShape ld : values()) { if (ld.nativeId == nativeId) return ld; } return null; }
public static DecorationShape fromOoxmlId(int ooxmlId) { for (DecorationShape ds : values()) { if (ds.ooxmlId == ooxmlId) return ds; } return null; } }