handles.add(new VHandle(shape,shape.getLeft()+bounds.getX(),0, PositionHandle.Position.Left));
handles.add(new VHandle(shape,shape.getRight()+bounds.getX(),0, PositionHandle.Position.Right));
handles.add(new VHandle(shape,0,shape.getTop()+bounds.getY(), PositionHandle.Position.Top));
handles.add(new VHandle(shape,0,shape.getBottom()+bounds.getY(), PositionHandle.Position.Bottom));
hlocked = new Togglebutton("h locked");
hlocked.setSelected(shape.isHLocked());
hlocked.onClicked(new Callback<ActionEvent>(){
public void call(ActionEvent event) {
shape.setHLocked(hlocked.isSelected());
}
});
vlocked = new Togglebutton("v locked");
vlocked.setSelected(shape.isVLocked());
vlocked.onClicked(new Callback<ActionEvent>() {
public void call(ActionEvent event) {
shape.setVLocked(vlocked.isSelected());
}