Java Reference
In-Depth Information
def footer = Group{
layoutX: 20
layoutY: h - 60
content:HBox {
spacing: 12
content:[
slider ,
Button {text:" Rotate " action:function(){
rotateAngle = rotateAngle + 90;
imgView.rotate = rotateAngle;
}}
HBox{spacing:7 content:[
Button {text:" Reflection "
onMouseClicked:function(e){
imgView.effect =
if(imgView.effect == null or
or not (imgView.effect instanceof
Reflection))
Reflection {fraction:0.3 topOffset:0}
else null
}}
... // Other effects omitted
Button {text:" Sepia "
onMouseClicked:function(e){
imgView.effect = if(imgView.effect == null
or not (imgView.effect instanceof
SepiaTone)
)
SepiaTone {level:0.7}
else null
}}
Button {text:" Animate "
onMouseClicked:function(e){
if(not anim.running){
anim.play();
}else{
anim.stop();
}
}}
]}
]
}
}
 
Search WWH ::




Custom Search