Java Reference
In-Depth Information
}
// controls bottom of screen
def toggleGrp = ToggleGroup{}
def controls = Group {
layoutY: h - 200
content:[
VBox{width:w spacing:12
hpos:HPos.CENTER nodeHPos:HPos.CENTER content:[
TextBox {id:" addr1 " columns:60 promptText:"http://"
action:function(){
loadImg (img1,
(scene.lookup("addr1") as TextBox).text)
}}
TextBox{id:"addr2" columns:60 promptText:"http://"
action:function(){
loadImg(img2,
(scene.lookup("addr2") as TextBox).text)
}}
HBox{
content:[
RadioButton {text:" ADD "
toggleGroup:toggleGrp selected:true
}
... // other blending modes omitted
RadioButton {text:" LIGHTEN "
toggleGroup:toggleGrp
}
]
}
HBox{
content:[
RadioButton {text:" MULTIPLY "
toggleGroup:toggleGrp
}
... //other blending modes omitted
RadioButton {text:" SRC_OVER "
toggleGroup:toggleGrp
}
]
}
Button {
text:"Blend Images"
font:Font.font("Sans Serif",
 
Search WWH ::




Custom Search