use of org.apache.poi.ddf.EscherSimpleProperty in project poi by apache.
the class HSLFSimpleShape method getLineHeadWidth.
public DecorationSize getLineHeadWidth() {
AbstractEscherOptRecord opt = getEscherOptRecord();
EscherSimpleProperty prop = getEscherProperty(opt, EscherProperties.LINESTYLE__LINESTARTARROWWIDTH);
return (prop == null) ? null : DecorationSize.fromNativeId(prop.getPropertyValue());
}
use of org.apache.poi.ddf.EscherSimpleProperty in project poi by apache.
the class HSLFSimpleShape method getLineCap.
/**
* Gets line cap.
*
* @return cap of the line.
*/
public LineCap getLineCap() {
AbstractEscherOptRecord opt = getEscherOptRecord();
EscherSimpleProperty prop = getEscherProperty(opt, EscherProperties.LINESTYLE__LINEENDCAPSTYLE);
return (prop == null) ? LineCap.FLAT : LineCap.fromNativeId(prop.getPropertyValue());
}
use of org.apache.poi.ddf.EscherSimpleProperty in project poi by apache.
the class HSLFSimpleShape method getLineTailDecoration.
public DecorationShape getLineTailDecoration() {
AbstractEscherOptRecord opt = getEscherOptRecord();
EscherSimpleProperty prop = getEscherProperty(opt, EscherProperties.LINESTYLE__LINEENDARROWHEAD);
return (prop == null) ? null : DecorationShape.fromNativeId(prop.getPropertyValue());
}
use of org.apache.poi.ddf.EscherSimpleProperty in project poi by apache.
the class HSLFSimpleShape method getLineHeadDecoration.
public DecorationShape getLineHeadDecoration() {
AbstractEscherOptRecord opt = getEscherOptRecord();
EscherSimpleProperty prop = getEscherProperty(opt, EscherProperties.LINESTYLE__LINESTARTARROWHEAD);
return (prop == null) ? null : DecorationShape.fromNativeId(prop.getPropertyValue());
}
use of org.apache.poi.ddf.EscherSimpleProperty in project poi by apache.
the class HSLFSimpleShape method getLineWidth.
/**
* Returns width of the line in in points
*/
public double getLineWidth() {
AbstractEscherOptRecord opt = getEscherOptRecord();
EscherSimpleProperty prop = getEscherProperty(opt, EscherProperties.LINESTYLE__LINEWIDTH);
double width = (prop == null) ? DEFAULT_LINE_WIDTH : Units.toPoints(prop.getPropertyValue());
return width;
}
Aggregations