|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRelationshipPolicy
A policy that supports the creation of relationships between timeline objects. The policy determines which objects can be linked and how the linking gets executed (the relationship command).
Method Summary | |
---|---|
ICommand |
getCreateRelationshipCommand(TimelineObjectPath sourcePath,
TimelineObjectPath targetPath,
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. |
boolean |
isRelationshipSource(TimelineObjectPath path,
IGanttChartModel model)
Determines whether the given timeline object can be used for creating a relationship to another object. |
boolean |
isRelationshipTarget(TimelineObjectPath sourcePath,
TimelineObjectPath targetPath,
IGanttChartModel model)
Determines whether the given source timeline object can be linked to the given target timeline object. |
Method Detail |
---|
boolean isRelationshipSource(TimelineObjectPath path, IGanttChartModel model)
path
- the source timeline object pathmodel
- the model of the node and timeline object
isRelationshipTarget(TimelineObjectPath, TimelineObjectPath,
IGanttChartModel)
boolean isRelationshipTarget(TimelineObjectPath sourcePath, TimelineObjectPath targetPath, IGanttChartModel model)
sourcePath
- the source tree nodetargetPath
- the target tree nodemodel
- the model of the nodes and timeline objects
isRelationshipSource(TimelineObjectPath, IGanttChartModel)
ICommand getCreateRelationshipCommand(TimelineObjectPath sourcePath, TimelineObjectPath targetPath, IGanttChartModel model)
sourcePath
- the path to the source timeline objecttargetPath
- the path to the target timeline objectmodel
- the source model of the node and timeline object
IRelationship
,
DefaultCreateRelationshipCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |