public static interface SortGanttModel.ActivityComparator
extends java.util.Comparator<ilog.views.gantt.IlvActivity>
ActivityComparator
interface can be used to sort
the activities in a SortGanttModel
.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.
|
int compare(ilog.views.gantt.IlvActivity a1, ilog.views.gantt.IlvActivity a2)
compare
in interface java.util.Comparator<ilog.views.gantt.IlvActivity>
a1
- The first activity to be compared.a2
- The second activity to be compared.boolean changesSortOrder(ilog.views.gantt.event.ActivityPropertyEvent event)
event
- The activity event.true
if the event affects activity ordering,
false
otherwise.