Home.webError("Google Gears Plugin Required for this feature.");
}
}
});
final NativeCheckboxItem auto = new NativeCheckboxItem("auto");
auto.setTitle("Apply Force Interaction");
auto.setStartRow(false);
auto.setEndRow(false);
auto.setValue(false);
auto.addChangeHandler(new ChangeHandler(){
/* (non-Javadoc)
* @see com.smartgwt.client.widgets.form.fields.events.ChangeHandler#onChange(com.smartgwt.client.widgets.form.fields.events.ChangeEvent)
*/
public void onChange(ChangeEvent event){
if(Boolean.valueOf(String.valueOf(auto.getValue()))){
Position.AUTO = false;
auto.setValue(false);
Position.cancel();
}
else{
Position.AUTO = true;
auto.setValue(true);
Position.forceDrivenPositioning();
}
}
});
final NativeCheckboxItem d3 = new NativeCheckboxItem("3d");
d3.setTitle("3D Graph");
d3.setStartRow(false);
d3.setEndRow(false);
d3.setValue(false);
d3.addChangeHandler(new ChangeHandler(){
/* (non-Javadoc)
* @see com.smartgwt.client.widgets.form.fields.events.ChangeHandler#onChange(com.smartgwt.client.widgets.form.fields.events.ChangeEvent)
*/
public void onChange(ChangeEvent event){
if(Boolean.valueOf(String.valueOf(d3.getValue()))){
Position.cancel3D();
Position.GRAPH_3D = false;
d3.setValue(false);
auto.enable();
Position.forceDrivenPositioning();
MindMap.setCanDragEntity(true);
}
else{
Position.AUTO = true;
Position.GRAPH_3D = true;
Position.setRandomZ();
auto.setValue(true);
d3.setValue(true);
auto.disable();
Position.forceDrivenPositioning();
MindMap.get(MindMap.FOCUS_ID).centre();
MindMap.setCanDragEntity(false);
}