public static class SortGanttModel.ActivityStartTimeComparator extends java.lang.Object implements SortGanttModel.ActivityComparator
ActivityStartTimeComparator
is used to sort the activities in a
SortGanttModel
according to their start times.Constructor and Description |
---|
SortGanttModel.ActivityStartTimeComparator() |
Modifier and Type | Method and Description |
---|---|
boolean |
changesSortOrder(ilog.views.gantt.event.ActivityPropertyEvent event)
Returns whether the specified event affects the activity ordering defined by this
comparator.
|
int |
compare(ilog.views.gantt.IlvActivity a1,
ilog.views.gantt.IlvActivity a2)
Compares two activities for their ordering.
|
public SortGanttModel.ActivityStartTimeComparator()
public int compare(ilog.views.gantt.IlvActivity a1, ilog.views.gantt.IlvActivity a2)
compare
in interface SortGanttModel.ActivityComparator
compare
in interface java.util.Comparator<ilog.views.gantt.IlvActivity>
a1
- The first activity to be compared.a2
- The second activity to be compared.public boolean changesSortOrder(ilog.views.gantt.event.ActivityPropertyEvent event)
changesSortOrder
in interface SortGanttModel.ActivityComparator
event
- The activity event.true
if the event affects activity ordering,
false
otherwise.