question: protected void drawDNA ( Canvas canvas ) { if ( mDna != null ) { for ( Utils . DNAStrand strand : mDna . values ( ) ) { if ( strand . color == CONFLICT_COLOR || strand . points == null || strand . points . length == 0 ) { continue ; } mDNATimePaint . setColor ( strand . color ) ; canvas . drawLines ( strand . points , mDNATimePaint ) ; } Utils . DNAStrand strand = mDna . get ( CONFLICT_COLOR ) ; if ( strand != null && strand . points != null && strand . points . length != 0 ) { mDNATimePaint . setColor ( strand . color ) ; canvas . drawLines ( strand . points , mDNATimePaint ) ; } if ( mDayXs == null ) { return ; } int numDays = mDayXs . length ; int xOffset = ( DNA_ALL_DAY_WIDTH - DNA_WIDTH ) / 2 ; if ( strand != null && strand . allDays != null && strand . allDays . length == numDays ) { for ( int i = 0 ; i < numDays ; i ++ ) { if ( strand . allDays [ i ] != 0 ) { mDNAAllDayPaint . setColor ( strand . allDays [ i ] ) ; canvas . drawLine ( mDayXs [ i ] + xOffset , DNA_MARGIN , mDayXs [ i ] + xOffset , DNA_MARGIN + DNA_ALL_DAY_HEIGHT , mDNAAllDayPaint ) ; } } } } }
target:  Draws a line showing busy times in each day of week The method draws non-conflicting times in the event color and times with conflicting events in the dna conflict color defined in colors.