public class DefaultEditLayerPolicy extends AbstractPolicy implements IEditLayerPolicy
Layer
.Constructor and Description |
---|
DefaultEditLayerPolicy() |
Modifier and Type | Method and Description |
---|---|
ICommand |
getAddLayerCommand(ILayer layer,
IGanttChartModel model)
Returns the command used to add a layer to a model.
|
ICommand |
getRemoveLayerCommand(ILayer layer,
IGanttChartModel model)
Returns the command used to remove a layer from a model.
|
assertClass
public ICommand getAddLayerCommand(ILayer layer, IGanttChartModel model)
IEditLayerPolicy
getAddLayerCommand
in interface IEditLayerPolicy
layer
- the layer to addmodel
- the model to which the layer will be addedpublic ICommand getRemoveLayerCommand(ILayer layer, IGanttChartModel model)
IEditLayerPolicy
getRemoveLayerCommand
in interface IEditLayerPolicy
layer
- the layer to removemodel
- the model from which the layer will be removedCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.