Package com.googlecode.gaal.vis.api

Examples of com.googlecode.gaal.vis.api.Drawing


        }
    }

    public static <S> void visualizeChildTable(Appendable buffer, String caption, String label,
            EnhancedSuffixArray esa, SymbolTable<S> symbolTable) throws IOException {
        Drawing drawing;
        TreeVisualizer<S> treeVisualizer = new TreeVisualizer<S>(symbolTable, true);
        Map<Interval, Integer> terminals;
        TableVisualizer<S> tableVisualizer;
        int terminalsNum = -1;
        int depth = 0;
        int[] usedCells = new int[esa.getSequence().size()];
        while (terminalsNum != 0) {
            drawing = new TikzIntervalDrawing(buffer, String.format(caption, depth), String.format(label, depth), 0.65,
                    0.65, 26);
            terminals = treeVisualizer.visualizeTree(drawing, esa, depth);
            tableVisualizer = new TableVisualizer<S>(esa.getSequence(), symbolTable);
            tableVisualizer.visualizeChildTable(drawing, esa, terminals, usedCells, depth);
            drawing.flush();
            depth++;
            terminalsNum = terminals.size();
        }
    }
View Full Code Here

TOP

Related Classes of com.googlecode.gaal.vis.api.Drawing

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.