Package com.googlecode.gaal.vis.impl

Examples of com.googlecode.gaal.vis.impl.TikzReducedIntervalDrawing


    }

    public static void visualizeSuffixArray(Appendable buffer, String caption, String label, SuffixArray sa,
            SymbolTable<String> symbolTable) throws IOException {

        Drawing drawing = new TikzReducedIntervalDrawing(buffer, caption, label, 0.65, 0.65, 26, 0);
        TableVisualizer<String> tableVisualizer = new TableVisualizer<String>(sa.getSequence(), symbolTable);
        tableVisualizer.visualizeTable(drawing, sa.getSuffixTable(), "suftab", 6, TikzConstants.RED_CELL);
        tableVisualizer.visualizeTable(drawing, sa.getLcpTable(), "lcptab", 6, TikzConstants.GREEN_CELL);
        drawing.flush();
    }
View Full Code Here


    }

    public static void visualizeInverseSuffixTable(Appendable buffer, String caption, String label, SuffixArray sa,
            SymbolTable<String> symbolTable) throws IOException {

        Drawing drawing = new TikzReducedIntervalDrawing(buffer, caption, label, "H", 0.65, 0.65, 26, 0);
        TableVisualizer<String> tableVisualizer = new TableVisualizer<String>(sa.getSequence(), symbolTable);
        tableVisualizer.visualizeIndexTable(drawing, sa.getSuffixTable().length, "index", 6,
                TikzConstants.LIGHT_BLUE_CELL);
        tableVisualizer.visualizeTable(drawing, sa.getSuffixTable(), "suftab", 6, TikzConstants.RED_CELL);
        tableVisualizer.visualizeTable(drawing, sa.getInverseSuffixTable(), "saftab$^{-1}$", 6,
                TikzConstants.GREEN_CELL);
        drawing.flush();
    }
View Full Code Here

    }

    public static <S> void visualizeInterval(Appendable buffer, String caption, String label, SuffixArray sa,
            Interval interval, int length, int windowSize, SymbolTable<S> symbolTable) throws IOException {

        Drawing drawing = new TikzReducedIntervalDrawing(buffer, caption, label, 0.65, 0.65, 26, 0);
        TableVisualizer<S> tableVisualizer = new TableVisualizer<S>(sa.getSequence(), symbolTable);
        tableVisualizer.visualizeInterval(drawing, interval, length, windowSize);
        drawing.flush();
    }
View Full Code Here

    }

    public static void visualizeEnhancedSuffixArray(Appendable buffer, String caption, String label,
            EnhancedSuffixArray esa, SymbolTable<String> symbolTable) throws IOException {

        Drawing drawing = new TikzReducedIntervalDrawing(buffer, caption, label, 0.65, 0.65, 26, 0);
        TableVisualizer<String> tableVisualizer = new TableVisualizer<String>(esa.getSequence(), symbolTable);
        tableVisualizer.visualizeTable(drawing, esa.getSuffixTable(), "suftab", 6, TikzConstants.RED_CELL);
        tableVisualizer.visualizeTable(drawing, esa.getLcpTable(), "lcptab", 6, TikzConstants.GREEN_CELL);
        tableVisualizer.visualizeTable(drawing, esa.getChildTable(), "cldtab", 6, TikzConstants.BLUE_CELL);
        drawing.flush();
    }
View Full Code Here

    }

    public static void visualizeLinearizedSuffixTree(Appendable buffer, String caption, String label,
            LinearizedSuffixTree lst, SymbolTable<String> symbolTable) throws IOException {

        Drawing drawing = new TikzReducedIntervalDrawing(buffer, caption, label, 0.65, 0.65, 26, 0);
        TableVisualizer<String> tableVisualizer = new TableVisualizer<String>(lst.getSequence(), symbolTable);
        tableVisualizer.visualizeTable(drawing, lst.getSuffixTable(), "suftab", 6, TikzConstants.RED_CELL);
        tableVisualizer.visualizeTable(drawing, lst.getLcpTable(), "lcptab", 6, TikzConstants.GREEN_CELL);
        tableVisualizer.visualizeTable(drawing, lst.getChildTable(), "newcldtab", 6, TikzConstants.BLUE_CELL);
        drawing.flush();
    }
View Full Code Here

    }

    public static void visualizeEmbeddedSuffixTree(Appendable buffer, String caption, String label,
            EmbeddedSuffixTree est, SymbolTable<String> symbolTable) throws IOException {

        Drawing drawing = new TikzReducedIntervalDrawing(buffer, caption, label, "H", 0.65, 0.65, 26, 0);
        TableVisualizer<String> tableVisualizer = new TableVisualizer<String>(est.getSequence(), symbolTable);
        tableVisualizer.visualizeTable(drawing, est.getSuffixTable(), "suftab", 6, TikzConstants.RED_CELL);
        tableVisualizer.visualizeTable(drawing, est.getLcpTable(), "lcptab", 6, TikzConstants.GREEN_CELL);
        tableVisualizer.visualizeTable(drawing, est.getChildTable(), "newcldtab", 6, TikzConstants.BLUE_CELL);
        drawing.flush();
    }
View Full Code Here

    public static <E extends Interval, T extends SuffixArray & IntervalTree<E>> void visualizeMaximalIntervals(
            Appendable buffer, String caption, String label, T tree, SymbolTable<String> symbolTable)
            throws IOException {

        Drawing drawing = new TikzReducedIntervalDrawing(buffer, caption, label, 0.65, 0.65, 26, 0);
        TreeVisualizer<String> treeVisualizer = new TreeVisualizer<String>(symbolTable, true);
        treeVisualizer.visualizeTree(drawing, tree);
        TableVisualizer<String> tableVisualizer = new TableVisualizer<String>(tree.getSequence(), symbolTable);
        tableVisualizer.visualizeTable(drawing, buildBwtTable(tree.getSuffixTable(), tree.getSequence(), symbolTable),
                "bwttab", 6, TikzConstants.ORANGE_CELL);
        tableVisualizer.visualizeSuffixIntervals(drawing, tree, treeVisualizer.getStyleMap());
        drawing.flush();
    }
View Full Code Here

        drawing.flush();
    }

    public static <S, E extends Interval> void visualizeSuffixTree(Appendable buffer, String caption, String label,
            IntervalTree<E> tree, SymbolTable<S> symbolTable) throws IOException {
        Drawing drawing = new TikzReducedIntervalDrawing(buffer, caption, label, 0.65, 0.65, 26, 2);
        TreeVisualizer<S> treeVisualizer = new TreeVisualizer<S>(symbolTable, false);
        treeVisualizer.visualizeTree(drawing, tree);
        drawing.flush();
    }
View Full Code Here

    public static <S, E extends Interval, T extends SuffixArray & IntervalTree<E>> void visualizeIntervalTree(
            Appendable buffer, String caption, String label, T tree, int[] childTable, SymbolTable<S> symbolTable)
            throws IOException {

        Drawing drawing = new TikzReducedIntervalDrawing(buffer, caption, label, 0.65, 0.65, 26, 0);
        TreeVisualizer<S> treeVisualizer = new TreeVisualizer<S>(symbolTable, true);
        treeVisualizer.visualizeTree(drawing, tree);
        TableVisualizer<S> tableVisualizer = new TableVisualizer<S>(tree.getSequence(), symbolTable);
        tableVisualizer.visualizeTable(drawing, tree.getSuffixTable(), "suftab", 6, TikzConstants.RED_CELL);
        tableVisualizer.visualizeTable(drawing, tree.getLcpTable(), "lcptab", 6, TikzConstants.GREEN_CELL);
        if (childTable != null) {
            tableVisualizer.visualizeTable(drawing, childTable, "cldtab", 6, TikzConstants.BLUE_CELL);
        }
        tableVisualizer.visualizeSuffixIntervals(drawing, tree, treeVisualizer.getStyleMap());
        drawing.flush();
    }
View Full Code Here

TOP

Related Classes of com.googlecode.gaal.vis.impl.TikzReducedIntervalDrawing

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.