Package base.drawable

Examples of base.drawable.TimeBoundingBox$Order


            zero_time = new Date();

        if ( root_dialog == null )
            root_dialog  = (Dialog) SwingUtilities.windowForComponent( this );
        if ( timeframe4imgs == null )
            timeframe4imgs = new TimeBoundingBox( imgs_times );

        Routines.setComponentAndChildrenCursors( root_dialog,
                                                 CustomCursor.Wait );
        num_rows    = tree_view.getRowCount();
        row_height  = tree_view.getRowHeight();
View Full Code Here


            set_timeblocks.add( avebox );
    }

    private void patchSetOfTimeBlocks()
    {
        TimeBoundingBox  first_timeblock, last_timeblock, new_timeblock;

        new_timeblock   = new TimeBoundingBox( TimeBoundingBox.ALL_TIMES );
        first_timeblock = null;
        if ( ! set_timeblocks.isEmpty() )
            first_timeblock = (TimeBoundingBox) set_timeblocks.first();
        if (    first_timeblock != null
             && first_timeblock.contains( super.getEarliestTime() ) )
            new_timeblock.setLatestTime( first_timeblock.getEarliestTime() );
        else
            new_timeblock.setLatestTime( super.getEarliestTime() );
        set_timeblocks.add( new_timeblock );

        new_timeblock  = new TimeBoundingBox( TimeBoundingBox.ALL_TIMES );
        last_timeblock = null;
        if ( ! set_timeblocks.isEmpty() )
            last_timeblock = (TimeBoundingBox) set_timeblocks.last();
        if (    last_timeblock != null
             && last_timeblock.contains( super.getLatestTime() ) )
View Full Code Here

    { return typebox_ary; }

    public TimeBoundingBox  getCurrentTimeBoundingBox()
    {
        if ( curr_timebox == null )
            curr_timebox = new TimeBoundingBox();
        return curr_timebox;
    }
View Full Code Here

            unnecessary.
        */
        // addHierarchyBoundsListener( this );

        // setDebugGraphicsOptions( DebugGraphics.LOG_OPTION );
        vport_timebox       = new TimeBoundingBox();
    }
View Full Code Here

            coord_xform.resetTimeBounds( vport_timebox );
            vport_click = mouse_evt.getPoint();
            click_time  = coord_xform.convertPixelToTime( vport_click.x );
            if ( Routines.isLeftMouseButton( mouse_evt ) ) {
                if ( isLeftMouseClick4Zoom ) {  // Zoom Mode
                    zoom_timebox = new TimeBoundingBox();
                    zoom_timebox.setZeroDuration( click_time );
                    this.repaint();
                    super.setCursor( CustomCursor.ZoomPlus );
                }
                else  // Hand Mode
                    super.setCursor( CustomCursor.HandClose );
            }
            else if ( Routines.isRightMouseButton( mouse_evt ) ) {
                info_timebox = new TimeBoundingBox();
                info_timebox.setZeroDuration( click_time );
                this.repaint();
            }
            mouse_pressed_time = click_time;
            mouse_pressed_Xloc = vport_click.x;
View Full Code Here

        this.model = model;
        offscreenImages = new Image[ NumImages ];
        tImages         = new TimeBoundingBox[ NumImages ];
        for ( int idx = 0; idx < NumImages; idx++ )
            tImages[ idx ] = new TimeBoundingBox();
        tImages_all     = new TimeBoundingBox();
        super.setDoubleBuffered( false );

        // Initialize the current image index and each image's time bound
        half_NumImages = NumImages / 2;
        setImagesInitTimeBounds();
View Full Code Here

    }
    */

    public TimeBoundingBox getTimeBoundsOfImages()
    {
        return new TimeBoundingBox( tImages_all );
    }
View Full Code Here

    public TreeFloor( short in_depth, final BufForObjects.Order buf4objs_order )
    {
        super( buf4objs_order )//  TreeMap( java.util.Comparator )
        depth               = in_depth;
        timebounds          = new TimeBoundingBox();
        isIncreTimeOrdered  = buf4objs_order.isIncreasingIndexOrdered();
    }
View Full Code Here

        public DrawableIterator( int kind_idx )
        {
            PipedInputLog.this.next_kind_idx  = kind_idx;
   
            TimeBoundingBox  timeframe;
            TreeDir          treedir;
            TreeDirValue     root_dir;
           
            treedir = PipedInputLog.super.getTreeDir();
            // System.out.println( treedir );
   
            root_dir  = (TreeDirValue) treedir.get( treedir.firstKey() );
            timeframe = new TimeBoundingBox( root_dir.getTimeBoundingBox() );
            dobj_itr  = PipedInputLog.super.iteratorOfRealDrawables( timeframe,
                                                      TRACE_ORDER,
                                                      InputLog.ITERATE_ALL );
            if ( dobj_itr.hasNext() )
                next_dobj = (Drawable) dobj_itr.next();
View Full Code Here

    public void writeTreeNode( TreeNode treenode )
    {
        TreeNodeID             treedir_key;
        TreeDirValue           treedir_val;
        TimeBoundingBox        timebox;

        try {
            // Save the LAST input TreeNode's FileBlockPtr
            node_blockptr = new FileBlockPtr( rand_file.getFilePointer(),
                                              treenode.getNodeByteSize() );
        } catch ( IOException ioerr ) {
            ioerr.printStackTrace();
            System.exit( 1 );
        }

        // Create key and value pair for the TreeDir
        treedir_key   = new TreeNodeID( treenode.getTreeNodeID() );
        timebox = new TimeBoundingBox( treenode );
        treedir_val   = new TreeDirValue( timebox, node_blockptr );
        treedir.put( treedir_key, treedir_val );

        // Reset various file pointers of the TreeNode before writing to file
        treenode.setFileBlockPtr( node_blockptr.getFilePointer(),
View Full Code Here

TOP

Related Classes of base.drawable.TimeBoundingBox$Order

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.