JIDE 3.5.15

com.jidesoft.gantt
Class DatePeriodMarker

java.lang.Object
  extended by com.jidesoft.gantt.AbstractPeriodBackgroundPainter<T>
      extended by com.jidesoft.gantt.AbstractPeriodMarker<Date>
          extended by com.jidesoft.gantt.DatePeriodMarker
All Implemented Interfaces:
PeriodBackgroundPainter<Date>

public class DatePeriodMarker
extends AbstractPeriodMarker<Date>

DatePeriodMarker can be used to mark special period, for example the first day of every month, every weekends, etc.


Field Summary
 
Fields inherited from class com.jidesoft.gantt.AbstractPeriodBackgroundPainter
OUTLINE_DEFAULT, OUTLINE_END, OUTLINE_START
 
Constructor Summary
DatePeriodMarker(Paint backgroundPaint, Paint outlinePaint, Stroke outlineStroke, DatePeriod period, int... calendarValuesToMark)
           
 
Method Summary
 boolean isNextPeriodMarked(Date startInstant, Date endInstant)
           
 boolean isPeriodMarked(Date startInstant, Date endInstant)
           
 boolean isPreviousPeriodMarked(Date startInstant, Date endInstant)
           
 
Methods inherited from class com.jidesoft.gantt.AbstractPeriodMarker
getBackgroundPaint, getOutlinePaint, getOutlineSides, getOutlineStroke
 
Methods inherited from class com.jidesoft.gantt.AbstractPeriodBackgroundPainter
deriveStroke, getPeriod, paintBackground, paintPeriodBackground
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatePeriodMarker

public DatePeriodMarker(Paint backgroundPaint,
                        Paint outlinePaint,
                        Stroke outlineStroke,
                        DatePeriod period,
                        int... calendarValuesToMark)
Parameters:
calendarValuesToMark - One or more of the DatePeriod.getCalendarField() values to mark.
Method Detail

isNextPeriodMarked

public boolean isNextPeriodMarked(Date startInstant,
                                  Date endInstant)
Specified by:
isNextPeriodMarked in class AbstractPeriodMarker<Date>

isPeriodMarked

public boolean isPeriodMarked(Date startInstant,
                              Date endInstant)
Specified by:
isPeriodMarked in class AbstractPeriodMarker<Date>

isPreviousPeriodMarked

public boolean isPreviousPeriodMarked(Date startInstant,
                                      Date endInstant)
Specified by:
isPreviousPeriodMarked in class AbstractPeriodMarker<Date>

JIDE 3.5.15