void zApplyBorderPropertiesList ( ) { // Skip this function if the settings have not been applied. if ( settings == null ) { return ; } // Clear the current borders. (Set them to be invisible and black.) CalendarBorderProperties clearBordersProperties = new CalendarBorderProperties ( new Point ( 1 , 1 ) , new Point ( 5 , 5 ) , Color . black , 0 ) ; zApplyBorderPropertiesInstance ( clearBordersProperties ) ; // Apply the current borderPropertiesList settings. for ( CalendarBorderProperties borderProperties : settings . getBorderPropertiesList ( ) ) { zApplyBorderPropertiesInstance ( borderProperties ) ; } if ( ! ( settings . getWeekNumbersDisplayed ( ) ) ) { CalendarBorderProperties hideWeekNumberBorders = new CalendarBorderProperties ( new Point ( 1 , 1 ) , new Point ( 2 , 5 ) , Color . black , 0 ) ; zApplyBorderPropertiesInstance ( hideWeekNumberBorders ) ; } drawCalendar ( ) ; }
zApplyBorderPropertiesList This applies the currently stored border property list to this calendar . The border property list is retrieved from the current date picker settings .