public Vector<Object> getSegmentsVector(){
        if(!checkConsolidate)this.consolidate();
        ArrayList<Object> seg = this.segments;
        Vector<Object> ret = null;
        if(seg!=null){
            int n = seg.size();
            ret = new Vector<Object>(n);
            for(int i=0; i<n; i++)ret.addElement(seg.get(i));
        }
        return ret;
    }