/**
* 线性标注1(带边框和强调线)
* @param canvas
* @param shape
* @param rect
*/
private static Path getAccentBorderCallout1(AutoShape shape, Rect rect)
{
float y1 = rect.top + rect.height() * 0.1875f;
float x1 = rect.left + rect.width() * (-0.08333f);
float y2 = rect.top + rect.height() * 1.125f;
float x2 = rect.left + rect.width() * (-0.38333f);
Float[] values = shape.getAdjustData();
if (values != null && values.length >= 4)
{
if (values[0] != null)
{
y1 = rect.top + rect.height() * values[0];
}
if (values[1] != null)
{
x1 = rect.left + rect.width() * values[1];
}
if (values[2] != null)
{
y2 = rect.top + rect.height() * values[2];
}
if (values[3] != null)
{
x2 = rect.left + rect.width() * values[3];
}
}
path.addRect(rect.left, rect.top, rect.right, rect.bottom, Path.Direction.CW);
path.moveTo(x1, rect.top);
path.lineTo(x1, rect.bottom);
path.moveTo(x1, y1);
path.lineTo(x2, y2);
return path;
}
WedgeCalloutDrawing.java 文件源码
java
阅读 15
收藏 0
点赞 0
评论 0
项目:iOffice
作者:
评论列表
文章目录