function init() { graph = new ht.graph.GraphView(); dataModel = graph.dm(); var view = graph.getView(); view.className = 'main'; document.body.appendChild(view); window.addEventListener('resize', function(e) { graphView.invalidate(); }, false);
。。。。。。
}
the init function () { the dataModel new new ht.DataModel = (); G3D = new new ht.graph3d.Graph3dView (the dataModel); View g3d.getView = (); view.className = 'main'; document.body.appendChild (View) ; window.addEventListener ( 'a resize', function (E) { g3d.invalidate (); }, to false); g3d.setEye ([0, 400, 800]); // decision eye (or Camera) location, default is [0, 300, 1000] g3d.enableToolTip ();
function init(){ dataModel = new ht.DataModel(); treeView = new ht.widget.TreeView(dataModel); view = treeView.getView(); view.className = 'main'; document.body.appendChild(view); window.addEventListener('resize', function (e) { treeView.invalidate(); }, false);
function init(){ borderPane = new ht.widget.BorderPane(); toolbar = new ht.widget.Toolbar(); listView = new ht.widget.ListView(); g3d = new ht.graph3d.Graph3dView(); borderPane.setTopView(toolbar); borderPane.setLeftView(listView, 350); borderPane.setCenterView(g3d);