Package jsynoptic.plugins.java3d

Examples of jsynoptic.plugins.java3d.GraphObjectReference


        }
        setup();
    }
   
    private void removeFromAnimator(){
        GraphObjectReference ref=null;
        for(GraphObjectReference gor : _anim.getGraphObjects()){
            if(gor.getObject()==_p.getObject()){
                ref=gor;
                break;
            }
View Full Code Here


public class ReferenceNode extends AbstractNode {

    // required for dynamic node creation
    public ReferenceNode(Tree tree, Object graphObject, boolean getChildren) {
        super(tree, graphObject, getChildren);
        GraphObjectReference gn = (GraphObjectReference) getGraphObject();
        // by default name is equal to class name
        String n = (gn.getObject() == null) ? "" : gn.getObject().getClass()
                .getName();
        int k = n.lastIndexOf('.');
        _name = n.substring(k + 1);
        _icon = getIcon(gn.getObject());
        _description = getDescription(gn.getObject());
    }
View Full Code Here

        _icon = getIcon(gn.getObject());
        _description = getDescription(gn.getObject());
    }

    public String getName() {
        GraphObjectReference gn = (GraphObjectReference) getGraphObject();
        String sgoName = (gn.getObject()).getName();
        if (sgoName != null) {
            return "-> " + _name + "[" + sgoName + "]";
        } else {
            return "-> " + _name;
        }
View Full Code Here

        }

        @Override
        public void actionPerformed(ActionEvent e) {
            ArrayList<SceneGraphObject> sgos = new ArrayList<SceneGraphObject>();
            GraphObjectReference gn = (GraphObjectReference) getNode()
                    .getGraphObject();
            Universe u = Universe.getGraphPath(gn.getNode(), gn.getObject(),
                    sgos);
            if(u!=null){
                getNode().getTree().expand(sgos, u);
            }
            else{
                System.err.println("Can not expand "+gn.getObject()+" node is missing");
            }
        }
View Full Code Here

TOP

Related Classes of jsynoptic.plugins.java3d.GraphObjectReference

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.