Package org.openquark.gems.client.explorer

Examples of org.openquark.gems.client.explorer.TableTopExplorer


            //       will be canceled.
            // NOTE: the glass pane should only be visible (and catching mouse events) when we're in
            //       "add gem" mode
            getGlassPane().addMouseMotionListener(new MouseMotionAdapter() {
                public void mouseMoved(MouseEvent e) {
                    TableTopExplorer tableTopExplorer = getTableTopExplorer();
                    Point pressedPoint = SwingUtilities.convertPoint(getGlassPane(), e.getPoint(), getLayeredPane());
                   
                    if (tableTopExplorer.getBounds().contains(SwingUtilities.convertPoint(getLayeredPane(), pressedPoint, getTableTopExplorer()))) {
                        tableTopExplorer.dispatchEvent(SwingUtilities.convertMouseEvent((Component)e.getSource(), e, tableTopExplorer));             
                    }
                }
            });

            // Create the adapter class for the navigator owner
View Full Code Here


     */
    TableTopExplorer getTableTopExplorer() {

        if (tableTopExplorer == null) {

            tableTopExplorer = new TableTopExplorer(this, GemCutter.getResourceString("TTX_Root_Node"));

            tableTopExplorer.getExplorerTree().addMouseListener(new ExplorerMouseClickListener());
            tableTopExplorer.getExplorerTree().addMouseMotionListener(new ExplorerMouseMotionListener());

            // Although technically the explorer tree can support multiple selection, in the GemCutter
View Full Code Here

        gemCutter.getTableTop().updateForGemGraph();
       
        // Since we don't know which input names actually changed as a result of
        // name checking the table top, we simply have to update all nodes in the explorer.
       
        TableTopExplorer tableTopExplorer = gemCutter.getTableTopExplorer();
        Set<DisplayedGem> displayedGemSet = gemCutter.getTableTop().getDisplayedGems();
       
        for (final DisplayedGem gem : displayedGemSet) {
           
            PartInput[] inputs = gem.getGem().getInputParts();
           
            for (final PartInput input : inputs) {
                TreeNode node = tableTopExplorer.getInputNode(input);
               
                if (node != null) {
                    tableTopExplorer.getExplorerTreeModel().nodeChanged(node);
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.openquark.gems.client.explorer.TableTopExplorer

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.