public static class IlvZoomToFitAction.RootActivityIntervalPolicy extends Object implements IlvZoomToFitAction.IntervalPolicy
RootActivityIntervalPolicy
class determines the time interval of a
Gantt data model
from its root activity. This works well for
instances of IlvSimpleActivity
that have their setAutoCalcTimeIntervalFromChildren
flag set to true
. In this case, the root activity's interval will be the
union of all its children.Constructor and Description |
---|
RootActivityIntervalPolicy()
Creates an
IlvZoomToFitAction.RootActivityIntervalPolicy object that
will calculate the time interval of a Gantt data model from
its root activity. |
Modifier and Type | Method and Description |
---|---|
IlvTimeInterval |
getInterval(IlvGanttModel ganttModel)
Returns the time interval of the specified Gantt data model.
|
public RootActivityIntervalPolicy()
IlvZoomToFitAction.RootActivityIntervalPolicy
object that
will calculate the time interval of a Gantt data model
from
its root activity. You can use this policy in an IlvZoomToFitAction
by
calling its setIntervalPolicy
method.public IlvTimeInterval getInterval(IlvGanttModel ganttModel)
null
.getInterval
in interface IlvZoomToFitAction.IntervalPolicy
ganttModel
- The Gantt data model.IlvTimeInterval
.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.