Package viewer.zoomable

Examples of viewer.zoomable.YaxisTreeNode


        private void setCoordsText( final Coord[]   coords,
                                          String    description )
        {
            StringBuffer   linebuf;
            Coord          vertex;
            YaxisTreeNode  node;
            TreeNode[]     nodes;
            Integer        lineID;
            double         duration;
            int            coords_length;
            int            idx, ii;
   
            linebuf = new StringBuffer();
            coords_length = coords.length;
            if ( coords_length > 1 ) {
                duration = coords[ coords_length-1 ].time - coords[ 0 ].time;
                linebuf.append( "duration" + description
                              + " = " + tfmt.format( duration ) );
                if ( num_cols < linebuf.length() )
                    num_cols = linebuf.length();
                num_rows++;
                strbuf.append( linebuf.toString() + "\n" );
            }
            for ( idx = 0; idx < coords_length; idx++ ) {
                linebuf = new StringBuffer( "[" + idx + "]: " );
                vertex  = coords[ idx ];
                lineID  = new Integer( vertex.lineID );
                node    = (YaxisTreeNode) map_line2treenodes.get( lineID );
                nodes   = node.getPath();
                linebuf.append( "time" + description
                              + " = " + fmt.format( vertex.time ) );
                for ( ii = 1; ii < nodes.length; ii++ )
                    linebuf.append( ", " + y_colnames[ ii-1 ]
                                  + " = " + nodes[ ii ] );
View Full Code Here


                                             double    latest_time,
                                             int       coords_length )
        {
            StringBuffer   linebuf;
            Coord          vertex;
            YaxisTreeNode  node;
            TreeNode[]     nodes;
            Integer        lineID;
            double         duration;
            int            idx, ii;
   
            duration = latest_time - earliest_time;
            linebuf = new StringBuffer();
            linebuf.append( "duration (max) = " + tfmt.format( duration ) );
            if ( num_cols < linebuf.length() )
                num_cols = linebuf.length();
            num_rows++;
            strbuf.append( linebuf.toString() );
   
            idx     = 0;
            linebuf = new StringBuffer( "[" + idx + "]: " );
            vertex  = start_vtx;
            lineID  = new Integer( vertex.lineID );
            node    = (YaxisTreeNode) map_line2treenodes.get( lineID );
            nodes   = node.getPath();
            linebuf.append( "time (min) = " + fmt.format( earliest_time ) );
            for ( ii = 1; ii < nodes.length; ii++ )
                linebuf.append( ", " + y_colnames[ ii-1 ]
                              + " = " + nodes[ ii ] );
            if ( num_cols < linebuf.length() )
                num_cols = linebuf.length();
            num_rows++;
            strbuf.append( "\n" + linebuf.toString() );
   
            idx     = coords_length-1;
            linebuf = new StringBuffer( "[" + idx + "]: " );
            vertex  = final_vtx;
            lineID  = new Integer( vertex.lineID );
            node    = (YaxisTreeNode) map_line2treenodes.get( lineID );
            nodes   = node.getPath();
            linebuf.append( "time (max) = " + fmt.format( latest_time ) );
            for ( ii = 1; ii < nodes.length; ii++ )
                linebuf.append( ", " + y_colnames[ ii-1 ]
                              + " = " + nodes[ ii ] );
            if ( num_cols < linebuf.length() )
View Full Code Here

TOP

Related Classes of viewer.zoomable.YaxisTreeNode

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.