Logo Search packages:      
Sourcecode: libjgrapht-java version File versions  Download package

DefaultPort org::_3pq::jgrapht::ext::JGraphModelAdapter::getVertexPort ( Object  jGraphTVertex  )  [inline]

Returns the JGraph port cell that corresponds to the specified JGraphT vertex. If no corresponding port found, returns null.

Parameters:
jGraphTVertex a JGraphT vertex of the JGraphT graph.
Returns:
the JGraph port cell that corresponds to the specified JGraphT vertex, or null if no corresponding cell found.

Definition at line 400 of file JGraphModelAdapter.java.

References getVertexCell().

Referenced by handleJGraphTAddedEdge().

                                                             {
        DefaultGraphCell vertexCell = getVertexCell( jGraphTVertex );

        if( vertexCell == null ) {
            return null;
        }
        else {
            return (DefaultPort) vertexCell.getChildAt( 0 );
        }
    }


Generated by  Doxygen 1.6.0   Back to index