Package com.googlecode.gaal.vis.api

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


        for (int i = 0; i < suffixTable.length; i++) {
            IntSequence subSequence = sequence.subSequence(suffixTable[i], sequence.size());
            int lcp = lcpTable[i];
            drawing.drawCell(0, i, Integer.toString(lcp), TikzConstants.GREEN_CELL);

            NodeStyle style = null;
            if (lcp > 0)
                style = TikzConstants.CELL_STYLES[lcp];
            for (int j = 0; j < subSequence.size(); j++) {
                NodeStyle cellStyle;
                if (j < lcp) {
                    cellStyle = style;
                } else {
                    cellStyle = TikzConstants.LIGHT_BLUE_CELL;
                }
View Full Code Here


    public void visualizeInterval(Drawing drawing, Interval interval, int length, int windowSize) {
        int[] styleArray = new int[sequence.size()];
        Arrays.fill(styleArray, -1);
        markInterval(interval, null, styleArray, length, windowSize);
        NodeStyle style = null;
        for (int i = 0; i < styleArray.length; i++) {
            if (styleArray[i] != -1) {
                style = TikzConstants.CELL_STYLES[styleArray[i]];
            } else {
                style = TikzConstants.LIGHT_BLUE_CELL;
View Full Code Here

        boolean[][] usedCells = new boolean[suffixTable.length][sequence.size()];
        while (iterator.hasNext()) {
            Interval node = iterator.next();
            Integer style = styleMap.get(node);
            if (style != null) {
                NodeStyle nodeStyle = TikzConstants.CELL_STYLES[style];
                for (int i = node.left(); i <= node.right(); i++) {
                    IntSequence subSequence = sequence.subSequence(suffixTable[i], suffixTable[i] + node.lcp());
                    for (int j = 0; j < subSequence.size(); j++) {
                        if (!usedCells[i][j]) {
                            usedCells[i][j] = true;
View Full Code Here

TOP

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

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.