com.jidesoft.gantt
Class DatePeriodMarker
java.lang.Object
com.jidesoft.gantt.AbstractPeriodBackgroundPainter<T>
com.jidesoft.gantt.AbstractPeriodMarker<Date>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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>