public class DefaultConstraintPolicy extends DefaultRelationshipPolicy
IRelationshipPolicy
allows all
timeline objects to be linked with each other and returns a
DefaultCreateRelationshipCommand
command object for performing the
actual linking.Constructor and Description |
---|
DefaultConstraintPolicy() |
Modifier and Type | Method and Description |
---|---|
ICommand |
getCreateRelationshipCommand(TimelineObjectPath sourcePath,
TimelineObjectPath targetPath,
RelationshipType type,
IGanttChartModel model)
Returns a command object that will perform the actual linking of the
source and target timeline objects by making the appropriate changes in
the model.
|
getDeleteRelationshipsCommand, getSupportedRelationshipTypes, isDeletable, isRelationshipSource, isRelationshipTarget
assertClass
public ICommand getCreateRelationshipCommand(TimelineObjectPath sourcePath, TimelineObjectPath targetPath, RelationshipType type, IGanttChartModel model)
IRelationshipPolicy
getCreateRelationshipCommand
in interface IRelationshipPolicy
getCreateRelationshipCommand
in class DefaultRelationshipPolicy
sourcePath
- the path to the source timeline objecttargetPath
- the path to the target timeline objecttype
- the type of relationship that the user wants to create (end to
start, start to end, start to start, end to end)model
- the source model of the node and timeline objectIRelationship
,
DefaultCreateRelationshipCommand
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.