// Path: src/main/java/com/googlecode/android/widgets/DateSlider/timeview/DayTimeLayoutView.java
// public class DayTimeLayoutView extends TimeLayoutView {
// 
//     protected boolean isSunday=false;
// 
//     /**
//      * Constructor
//      * @param context
//      * @param isCenterView true if the element is the centered view in the ScrollLayout
//      * @param topTextSize	text size of the top TextView in dps
//      * @param bottomTextSize	text size of the bottom TextView in dps
//      * @param lineHeight	LineHeight of the top TextView
//      */
//     public DayTimeLayoutView(Context context, boolean isCenterView,
//             int topTextSize, int bottomTextSize, float lineHeight) {
//         super(context, isCenterView, topTextSize, bottomTextSize, lineHeight);
//     }
// 
//     @Override
//     public void setVals(TimeObject to) {
//         super.setVals(to);
//         Calendar c = Calendar.getInstance();
//         c.setTimeInMillis(to.endTime);
//         if (c.get(Calendar.DAY_OF_WEEK)==Calendar.SUNDAY && !isSunday) {
//             isSunday=true;
//             colorMeSunday();
//         } else if (isSunday && c.get(Calendar.DAY_OF_WEEK)!=Calendar.SUNDAY) {
//             isSunday=false;
//             colorMeWorkday();
//         }
//     }
// 
//     /**
//      * this method is called when the current View takes a Sunday as time unit
//      */
//     protected void colorMeSunday() {
//     	if (isOutOfBounds) return;
//         if (isCenter) {
//             bottomView.setTextColor(0xFF773333);
//             topView.setTextColor(0xFF553333);
//         }
//         else {
//             bottomView.setTextColor(0xFF442222);
//             topView.setTextColor(0xFF553333);
//         }
//     }
// 
// 
//     /**
//      * this method is called when the current View takes no Sunday as time unit
//      */
//     protected void colorMeWorkday() {
//     	if (isOutOfBounds) return;
//         if (isCenter) {
//             topView.setTextColor(0xFF333333);
//             bottomView.setTextColor(0xFF444444);
//         } else {
//             topView.setTextColor(0xFF666666);
//             bottomView.setTextColor(0xFF666666);
//         }
//     }
// 
//     @Override
//     public void setVals(TimeView other) {
//         super.setVals(other);
//         DayTimeLayoutView otherDay = (DayTimeLayoutView) other;
//         if (otherDay.isSunday && !isSunday) {
//             isSunday = true;
//             colorMeSunday();
//         } else if (isSunday && !otherDay.isSunday) {
//             isSunday = false;
//             colorMeWorkday();
//         }
//     }
// 
// }
// 
// Path: src/main/java/com/googlecode/android/widgets/DateSlider/timeview/TimeView.java
// public interface TimeView {
//     /**
//      * Sets this TimeView to display the contents of the specified TimeObject.
//      *
//      * @param to The TimeObject to use to populate this TimeView
//      */
//     public void setVals(TimeObject to);
//     /**
//      * Instructs this TimeView to copy its values from the specified TimeView, so
//      * it will assume the state of the other TimeView.
//      *
//      * @param other The TimeView to copy values from
//      */
//     public void setVals(TimeView other);
//     
//     /**
//      * Get a string containing the textual representation of this TimeView's time
//      * @return
//      */
//     public String getTimeText();
//     /**
//      * Get the start time of this TimeView
//      * @return
//      */
//     public long getStartTime();
//     /**
//      * Get the end time of this TimeView
//      * @return
//      */
//     public long getEndTime();
//     
//     public boolean isOutOfBounds();
//     public void setOutOfBounds(boolean outOfBounds);
// }


import android.content.Context;
import com.googlecode.android.widgets.DateSlider.timeview.DayTimeLayoutView;
import com.googlecode.android.widgets.DateSlider.timeview.TimeView;
package com.googlecode.android.widgets.DateSlider.labeler;



/**
 * A Labeler that displays days using DayTimeLayoutViews.
 */
public class DayDateLabeler extends DayLabeler {
    /**
     * The format string that specifies how to display the day. Since this class
     * uses a DayTimeLayoutView, the format string should consist of two strings
     * separated by a space.
     *
     * @param formatString
     */
    public DayDateLabeler(String formatString) {
        super(formatString);
    }

// Path: src/main/java/com/googlecode/android/widgets/DateSlider/timeview/DayTimeLayoutView.java
// public class DayTimeLayoutView extends TimeLayoutView {
// 
//     protected boolean isSunday=false;
// 
//     /**
//      * Constructor
//      * @param context
//      * @param isCenterView true if the element is the centered view in the ScrollLayout
//      * @param topTextSize	text size of the top TextView in dps
//      * @param bottomTextSize	text size of the bottom TextView in dps
//      * @param lineHeight	LineHeight of the top TextView
//      */
//     public DayTimeLayoutView(Context context, boolean isCenterView,
//             int topTextSize, int bottomTextSize, float lineHeight) {
//         super(context, isCenterView, topTextSize, bottomTextSize, lineHeight);
//     }
// 
//     @Override
//     public void setVals(TimeObject to) {
//         super.setVals(to);
//         Calendar c = Calendar.getInstance();
//         c.setTimeInMillis(to.endTime);
//         if (c.get(Calendar.DAY_OF_WEEK)==Calendar.SUNDAY && !isSunday) {
//             isSunday=true;
//             colorMeSunday();
//         } else if (isSunday && c.get(Calendar.DAY_OF_WEEK)!=Calendar.SUNDAY) {
//             isSunday=false;
//             colorMeWorkday();
//         }
//     }
// 
//     /**
//      * this method is called when the current View takes a Sunday as time unit
//      */
//     protected void colorMeSunday() {
//     	if (isOutOfBounds) return;
//         if (isCenter) {
//             bottomView.setTextColor(0xFF773333);
//             topView.setTextColor(0xFF553333);
//         }
//         else {
//             bottomView.setTextColor(0xFF442222);
//             topView.setTextColor(0xFF553333);
//         }
//     }
// 
// 
//     /**
//      * this method is called when the current View takes no Sunday as time unit
//      */
//     protected void colorMeWorkday() {
//     	if (isOutOfBounds) return;
//         if (isCenter) {
//             topView.setTextColor(0xFF333333);
//             bottomView.setTextColor(0xFF444444);
//         } else {
//             topView.setTextColor(0xFF666666);
//             bottomView.setTextColor(0xFF666666);
//         }
//     }
// 
//     @Override
//     public void setVals(TimeView other) {
//         super.setVals(other);
//         DayTimeLayoutView otherDay = (DayTimeLayoutView) other;
//         if (otherDay.isSunday && !isSunday) {
//             isSunday = true;
//             colorMeSunday();
//         } else if (isSunday && !otherDay.isSunday) {
//             isSunday = false;
//             colorMeWorkday();
//         }
//     }
// 
// }
// 
// Path: src/main/java/com/googlecode/android/widgets/DateSlider/timeview/TimeView.java
// public interface TimeView {
//     /**
//      * Sets this TimeView to display the contents of the specified TimeObject.
//      *
//      * @param to The TimeObject to use to populate this TimeView
//      */
//     public void setVals(TimeObject to);
//     /**
//      * Instructs this TimeView to copy its values from the specified TimeView, so
//      * it will assume the state of the other TimeView.
//      *
//      * @param other The TimeView to copy values from
//      */
//     public void setVals(TimeView other);
//     
//     /**
//      * Get a string containing the textual representation of this TimeView's time
//      * @return
//      */
//     public String getTimeText();
//     /**
//      * Get the start time of this TimeView
//      * @return
//      */
//     public long getStartTime();
//     /**
//      * Get the end time of this TimeView
//      * @return
//      */
//     public long getEndTime();
//     
//     public boolean isOutOfBounds();
//     public void setOutOfBounds(boolean outOfBounds);
// }


// Path: src/main/java/com/googlecode/android/widgets/DateSlider/labeler/DayDateLabeler.java
import android.content.Context;
import com.googlecode.android.widgets.DateSlider.timeview.DayTimeLayoutView;
import com.googlecode.android.widgets.DateSlider.timeview.TimeView;

package com.googlecode.android.widgets.DateSlider.labeler;



/**
 * A Labeler that displays days using DayTimeLayoutViews.
 */
public class DayDateLabeler extends DayLabeler {
    /**
     * The format string that specifies how to display the day. Since this class
     * uses a DayTimeLayoutView, the format string should consist of two strings
     * separated by a space.
     *
     * @param formatString
     */
    public DayDateLabeler(String formatString) {
        super(formatString);
    }

    @Override