Code example for Vector

Methods: removeElement

0
        edges.addElement(edge);
    } 
 
    /** Remove the Edge <tt>edge</tt> from the graph. */ 
    public void removeEdge( Edge edge ) {
        edges.removeElement(edge);
    } 
 
    /** Return the width of this Node. */ 
    public int getWidth() { 
        if ( fontMetrics != null && lbl != null ) {
            return fontMetrics.stringWidth(lbl) + 12;
        } else { 
            return 10; 
        } 
    } 
 
    /** Return the height of this Node. */ 
    public int getHeight() { 
        if ( fontMetrics != null ) {
            return fontMetrics.getHeight() + 6;