public class DefaultEditCapacityObjectPolicy extends AbstractPolicy implements IEditCapacityObjectPolicy
IEditCapacityObjectPolicy.| Constructor and Description |
|---|
DefaultEditCapacityObjectPolicy() |
| Modifier and Type | Method and Description |
|---|---|
ICommand |
getChangeCapacityCommand(TimelineObjectPath path,
IGanttChartModel model,
double newPercentage)
Returns a command object that will perform the actual change of the
capacity used value.
|
boolean |
isCapacityChangeable(TimelineObjectPath path,
IGanttChartModel model)
Decides whether or not the capacity used value of the object can
be changed.
|
assertClasspublic boolean isCapacityChangeable(TimelineObjectPath path, IGanttChartModel model)
IEditCapacityObjectPolicyisCapacityChangeable in interface IEditCapacityObjectPolicypath - the path to the capacity object that gets checked for its
editing abilitymodel - the data source of the tree node and the capacity objectpublic ICommand getChangeCapacityCommand(TimelineObjectPath path, IGanttChartModel model, double newPercentage)
IEditCapacityObjectPolicygetChangeCapacityCommand in interface IEditCapacityObjectPolicypath - the path to the capacity object that gets checked for its
editing abilitymodel - the data source of the tree node and the capacity objectCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.