Package syn3d.ui

Examples of syn3d.ui.SceneGraphTree$TreeWorker


       
       
        pluginManager = new Java3DPluginManager();
       
        SceneGraphModelJava3D tm = new SceneGraphModelJava3D();
    sceneTree = new SceneGraphTree(tm);
    sceneTree.setAutoHighlight(true);
    editor=new SceneGraphEditor(sceneTree, pluginManager);
   
    Java3DSyn3DBuiltin builtin = (Java3DSyn3DBuiltin)pluginManager.getPlugin(Java3DSyn3DBuiltin.class);
    builtin.createFromKey("Scene",tm.getRootNode());
View Full Code Here


 
  public boolean doAction(double x, double y, Object o, String action) {
    if (super.doAction(x,y,o,action)) return true;
   
    if (action.equals("Link to Scene")) {
      SceneGraphTree tree = new SceneGraphTree((SceneGraphModel)((Xith3DPlugin3D)plugin).getSceneTree().getModel());
      tree.setVisibleRowCount(7);
      int result = JOptionPane.showConfirmDialog(JSynoptic.gui.getOwner(), new JScrollPane(tree),
          "Select a scene", JOptionPane.OK_CANCEL_OPTION,
          JOptionPane.PLAIN_MESSAGE);
      if (result == JOptionPane.OK_OPTION) {
        ActiveNode sel = tree.getSelectedNode();
        if (sel instanceof SceneNode) {
          node = new SynopticViewNodeXith3d(sel);
          if (node==null) return false;
          node.attach(this)
        }
View Full Code Here

   * @see jsynoptic.base.Plugin#newSourceComponent(simtools.ui.NamedElementContainer)
   */
  public void newSourceComponent(NamedElementContainer nec) {
    if(sceneTree==null){     
      mainBuiltin.createFromKey("Scene",tm.getRootNode());
      sceneTree = new SceneGraphTree(tm);
      sceneTree.setName(pluginName);
      sceneTree.setAutoHighlight(true);
      editor=new SceneGraphEditor(sceneTree, pluginManager);
      JScrollPane sp = new JScrollPane(sceneTree);
      nec.addElement(sp, pluginName);
View Full Code Here

    SceneGraphModel tm=new SceneGraphModelXith3D();
    // TODO: use factories and test them by the same occasion
    //tm.insert(null, v, "v1", 0);
    //tm.insert(null, v2, "v2", 0);
   
    SceneGraphTree t=new SceneGraphTree(tm);
    f.getContentPane().add(t);
   
    f.pack();
    f.show();
  }
View Full Code Here

   * @see jsynoptic.base.Plugin#newSourceComponent(simtools.ui.NamedElementContainer)
   */
  public void newSourceComponent(NamedElementContainer nec) {
    if(sceneTree==null){     
      mainBuiltin.createFromKey("Builder",tm.getRootNode());
      sceneTree = new SceneGraphTree(tm);
      sceneTree.setName(pluginName);
      sceneTree.setAutoHighlight(true);
      editor=new SceneGraphEditor(sceneTree, pluginManager);
      JScrollPane sp = new JScrollPane(sceneTree);
      nec.addElement(sp, pluginName);
View Full Code Here

TOP

Related Classes of syn3d.ui.SceneGraphTree$TreeWorker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.