/**
* Paints an arc from src to tgt.
* <p/>
* <b>Assumption:</b> The tgt is located below of the src.
*/
public static float[] arcReversed(GC gc, Point src, Point tgt) {
Path path = new Path(gc.getDevice());
int ydiff = (int) ((tgt.y - src.y) / 3);
path.moveTo((int) src.x, (int) src.y);
path.cubicTo((int) src.x, (int) src.y + ydiff, (int) tgt.x, (int) tgt.y - ydiff * 2, (int) tgt.x, (int) tgt.y);
gc.drawPath(path);
float[] pp = path.getPathData().points;
return pp;
}
GraphUtils.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:n4js
作者:
评论列表
文章目录