Java Reference
In-Depth Information
content: [
ImageView{
image: image
// mouse button lets you mark a
//route on the map.
OnMouseClicked:
function(e:MouseEvent):Void {
// reset route
if(e.button ==
MouseButton.SECONDARY)
{
buildPathStr =
"{buildPathStr}z";
routePathStr =
buildPathStr;
moveto = true;
}else {
// build up the path with each
// click. Click at the turns
// of the route
if(moveto) {
buildPathStr =
"M{e.x},{e.y}L";
moveto = false;
}else {
buildPathStr =
"{buildPathStr} {e.x},{e.y}";
}
}
}
},
route, racear
]
},
HBox {
content: [
PathAnimationControl {
transition: bind animation
},
ProgressSlider {
label: Text {
content: "Progress: " },
width: 150
minimum: 0
maximum: bind
duration.toSeconds()
value: bind
animation.time.toSeconds();
Search WWH ::




Custom Search