Examples of Drawable


Examples of base.drawable.Drawable

        return next_drawable != null;
    }

    public Object next()
    {
        Drawable  returning_dobj;

        returning_dobj = next_drawable;
        next_drawable  = this.getNextInQueue();
        return returning_dobj;
    }
View Full Code Here

Examples of base.drawable.Drawable

        TreeTrunk          treetrunk;
        double             prev_dobj_endtime;
        double             curr_dobj_endtime;
        long               offended_Nobjs;
        Drawable           offended_dobj;



        //  Initialize prev_dobj_endtime to avoid complaint by compiler
        prev_dobj_endtime = Double.NEGATIVE_INFINITY;
View Full Code Here

Examples of base.drawable.Drawable

        next_primitive = this.getNextInQueue();
    }

    private Primitive getNextInQueue()
    {
        Drawable   itr_dobj;
        Composite  itr_cmplx;
        Primitive  next_prime;

        next_prime = null;
        while ( drawables_itr.hasPrevious() ) {
            itr_dobj = (Drawable) drawables_itr.previous();
            if ( itr_dobj.overlaps( timeframe ) ) {
                if ( itr_dobj instanceof Composite ) {
                    itr_cmplx  = (Composite) itr_dobj;
                    itr_cmplx.addPrimitivesToSet( set_primes, timeframe );
                    try {
                        next_prime = (Primitive) set_primes.last();
View Full Code Here

Examples of base.drawable.Drawable


            Iterator sobjs;
            Shadow   sobj;
            Iterator dobjs;
            Drawable dobj;

            // set NestingFactor/RowID of Nestable Real Drawables and Shadows
            dobjs = treetrunk.iteratorOfAllDrawables( timebounds,
                                                      INCRE_STARTTIME_ORDER,
                                                      isConnectedComposite,
                                                      true );
            while ( dobjs.hasNext() ) {
                dobj = (Drawable) dobjs.next();
                if ( dobj.getCategory().isVisible() ) {
                    dobj.setStateRowAndNesting( coord_xform, map_line2row,
                                                nesting_stacks );
                }
            }

            int N_nestable = 0, N_nestless = 0;
            int N_nestable_drawn = 0, N_nestless_drawn = 0;
           
            // Draw Nestable Real Drawables
            dobjs = treetrunk.iteratorOfRealDrawables( timebounds,
                                                       INCRE_STARTTIME_ORDER,
                                                       isConnectedComposite,
                                                       true );
            while ( dobjs.hasNext() ) {
                dobj = (Drawable) dobjs.next();
                if ( dobj.getCategory().isVisible() ) {
                    N_nestable_drawn +=
                    dobj.drawOnCanvas( offGraphics, coord_xform,
                                       map_line2row, drawn_boxes );
                    N_nestable += dobj.getNumOfPrimitives();
                }
            }

            // Draw Nestable Shadows
            sobjs = treetrunk.iteratorOfLowestFloorShadows( timebounds,
                                                          INCRE_STARTTIME_ORDER,
                                                          true );
            while ( sobjs.hasNext() ) {
                sobj = (Shadow) sobjs.next();
                if ( sobj.getCategory().isVisible() ) {
                    N_nestable_drawn +=
                    sobj.drawOnCanvas( offGraphics, coord_xform,
                                       map_line2row, drawn_boxes );
                    N_nestable += sobj.getNumOfPrimitives();
                }
            }

            // Set AntiAliasing from Parameters for all slanted lines
            offGraphics.setRenderingHint( RenderingHints.KEY_ANTIALIASING,
                                    Parameters.ARROW_ANTIALIASING.toValue() );

            // Draw Nestless Shadows
            /*
            sobjs = treetrunk.iteratorOfLowestFloorShadows( timebounds,
                                                          INCRE_STARTTIME_ORDER,
                                                          false );
            while ( sobjs.hasNext() ) {
                sobj = (Shadow) sobjs.next();
                if ( sobj.getCategory().isVisible() ) {
                    N_nestless_drawn +=
                    sobj.drawOnCanvas( offGraphics, coord_xform,
                                       map_line2row, drawn_boxes );
                    N_nestless += sobj.getNumOfPrimitives();
                }
            }
            */

            // Draw all Nestless Real Drawables and Shadows
            dobjs = treetrunk.iteratorOfAllDrawables( timebounds,
                                                      INCRE_STARTTIME_ORDER,
                                                      isConnectedComposite,
                                                      false );
            while ( dobjs.hasNext() ) {
                dobj = (Drawable) dobjs.next();
                if ( dobj.getCategory().isVisible() ) {
                    N_nestless_drawn +=
                    dobj.drawOnCanvas( offGraphics, coord_xform,
                                       map_line2row, drawn_boxes );
                    N_nestless += dobj.getNumOfPrimitives();
                }
            }

            if ( Profile.isActive() )
                Profile.println( "CanvasTimeline.drawOneOffImage(): "
View Full Code Here

Examples of base.drawable.Drawable

        }

        Iterator sobjs;
        Shadow   sobj;
        Iterator dobjs;
        Drawable dobj;
        Drawable clicked_dobj;

        // Search Nestless Drawables in reverse drawing order
        dobjs = treetrunk.iteratorOfAllDrawables( vport_timeframe,
                                                  DECRE_STARTTIME_ORDER,
                                                  isConnectedComposite,
                                                  false );
        while ( dobjs.hasNext() ) {
            dobj = (Drawable) dobjs.next();
            if ( dobj.getCategory().isVisible() ) {
                clicked_dobj = dobj.getDrawableAt( coord_xform,
                                                   map_line2row,
                                                   local_click );
                if (    clicked_dobj != null
                     && clicked_dobj.getCategory().isVisible() ) {
                    return  new InfoDialogForDrawable( root_frame,
                                                       clicked_time,
                                                       map_line2treeleaf,
                                                       y_colnames,
                                                       t_model,
                                                       clicked_dobj );
                }
            }
        }

        // Search Nestless Shadows in reverse drawing order
        /*
        sobjs = treetrunk.iteratorOfLowestFloorShadows( vport_timeframe,
                                                        DECRE_STARTTIME_ORDER,
                                                        false );
        while ( sobjs.hasNext() ) {
            sobj = (Shadow) sobjs.next();
            if ( sobj.getCategory().isVisible() ) {
                clicked_dobj = sobj.getDrawableAt( coord_xform,
                                                   map_line2row,
                                                   local_click );
                if (    clicked_dobj != null
                     && clicked_dobj.getCategory().isVisible() ) {
                    return  new InfoDialogForDrawable( root_frame,
                                                       clicked_time,
                                                       map_line2treeleaf,
                                                       y_colnames,
                                                       t_model,
                                                       clicked_dobj );
                }
            }
        }
        */
       
        // Search Nestable Shadows in reverse drawing order
        sobjs = treetrunk.iteratorOfLowestFloorShadows( vport_timeframe,
                                                        DECRE_STARTTIME_ORDER,
                                                        true );
        while ( sobjs.hasNext() ) {
            sobj = (Shadow) sobjs.next();
            if ( sobj.getCategory().isVisible() ) {
                clicked_dobj = sobj.getDrawableAt( coord_xform,
                                                   map_line2row,
                                                   local_click );
                if (    clicked_dobj != null
                     && clicked_dobj.getCategory().isVisible() ) {
                    return  new InfoDialogForDrawable( root_frame,
                                                       clicked_time,
                                                       map_line2treeleaf,
                                                       y_colnames,
                                                       t_model,
                                                       clicked_dobj );
                }
            }
        }

        // Search Nestable Drawables in reverse drawing order
        dobjs = treetrunk.iteratorOfRealDrawables( vport_timeframe,
                                                   DECRE_STARTTIME_ORDER,
                                                   isConnectedComposite,
                                                   true );
        while ( dobjs.hasNext() ) {
            dobj = (Drawable) dobjs.next();
            if ( dobj.getCategory().isVisible() ) {
                clicked_dobj = dobj.getDrawableAt( coord_xform,
                                                   map_line2row,
                                                   local_click );
                if (    clicked_dobj != null
                     && clicked_dobj.getCategory().isVisible() ) {
                    return  new InfoDialogForDrawable( root_frame,
                                                       clicked_time,
                                                       map_line2treeleaf,
                                                       y_colnames,
                                                       t_model,
View Full Code Here

Examples of base.drawable.Drawable

    }

    // NEW search starting from the specified time
    public SearchPanel searchPreviousComponent( double searching_time )
    {
        Drawable  dobj = tree_search.previousDrawable( searching_time );
        if ( dobj != null )
            return this.createInfoPanelForDrawable( dobj );
        else
            return null;
    }
View Full Code Here

Examples of base.drawable.Drawable

    }

    // CONTINUING search
    public SearchPanel searchPreviousComponent()
    {
        Drawable  dobj = tree_search.previousDrawable();
        if ( dobj != null )
            return this.createInfoPanelForDrawable( dobj );
        else
            return null;
    }
View Full Code Here

Examples of base.drawable.Drawable

    }

    // NEW search starting from the specified time
    public SearchPanel searchNextComponent( double searching_time )
    {
        Drawable  dobj = tree_search.nextDrawable( searching_time );
        if ( dobj != null )
            return this.createInfoPanelForDrawable( dobj );
        else
            return null;
    }
View Full Code Here

Examples of base.drawable.Drawable

    }

    // CONTINUING search
    public SearchPanel searchNextComponent()
    {
        Drawable  dobj = tree_search.nextDrawable();
        if ( dobj != null )
            return this.createInfoPanelForDrawable( dobj );
        else
            return null;
    }
View Full Code Here

Examples of base.drawable.Drawable

            if ( info_str.length() > 0 ) {
                strbuf.append( "\n" + info_str );
                num_rows++;
            }
   
            Drawable prime_parent;
            prime_parent = prime.getParent();
            if ( prime_parent != null ) {
                info_str = prime_parent.toInfoBoxString().trim();
                if ( info_str.length() > 0 ) {
                    strbuf.append( "\n" + info_str );
                    num_rows++;
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.