Package org.openquark.gems.client

Examples of org.openquark.gems.client.Connection


    /**
     * @see org.openquark.gems.client.GemGraphChangeListener#gemDisconnected(GemGraphDisconnectionEvent)
     */
    public void gemDisconnected(GemGraphDisconnectionEvent e) {
       
        Connection connection = (Connection)e.getSource();
        Gem sourceGem = connection.getSource().getGem();
        Gem destinationGem = connection.getDestination().getGem();
        ExplorerGemNode sourceGemNode = gemToNodesMap.get(sourceGem);
        ExplorerGemNode destinationGemNode = gemToNodesMap.get(destinationGem);
       
        // This scope may not be showing the gem that triggered the event so there may be nothing to do.
        if (sourceGemNode == null) {
View Full Code Here


    /**
     * @see org.openquark.gems.client.GemGraphChangeListener#gemConnected(GemGraphConnectionEvent)
     */
    public void gemConnected(GemGraphConnectionEvent e) {
       
        Connection connection = (Connection)e.getSource();
        Gem.PartInput destinationInput = connection.getDestination();
        ExplorerGemNode sourceGemNode = gemToNodesMap.get(connection.getSource().getGem());
        ExplorerGemNode destinationGemNode = gemToNodesMap.get(destinationInput.getGem());
        ExplorerInputNode destinationInputNode = inputsToNodeMap.get(destinationInput);

        // If the source gem is not being shown by the explorer then there is nothing to do.       
        if (sourceGemNode == null) {
View Full Code Here

TOP

Related Classes of org.openquark.gems.client.Connection

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.