【发布时间】:2012-12-30 03:27:56
【问题描述】:
示例代码
//node
Rectangle rect = new Rectangle (0, 0, 20, 20);
//path
Text text = TextBuilder.create()
.text("J a v a F X R o c k s")
.font(new Font(50))
.x(65)
.y(100)
.build();
// path transition
pathTransition = PathTransitionBuilder.create()
.duration(Duration.seconds(15))
.path(text)
.node(rect)
.orientation(OrientationType.ORTHOGONAL_TO_TANGENT)
.cycleCount(Timeline.INDEFINITE)
.autoReverse(true)
.build();
我想显示 rect 节点经过的部分文本(路径)。上图中的意思是矩形节点一直到java,我想只在那个时间点显示那个部分..
【问题讨论】: