public class DefaultSelectionPolicy extends AbstractPolicy implements ISelectionPolicy
ISelectionPolicy
.Constructor and Description |
---|
DefaultSelectionPolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
isSelectable(IRelationship relationship,
IGanttChartModel model)
Returns TRUE if the given relationship can be selected by the user (or
programmatically) or not.
|
boolean |
isSelectable(Object node,
ITimeSpan span,
IGanttChartModel model)
Returns TRUE if the given time span on the given node can be selected by
the user (or programmatically) or not.
|
boolean |
isSelectable(TimelineObjectPath path,
IGanttChartModel model)
Returns TRUE if the given timeline object on the given node can be
selected by the user (or programmatically) or not.
|
assertClass
public boolean isSelectable(TimelineObjectPath path, IGanttChartModel model)
ISelectionPolicy
isSelectable
in interface ISelectionPolicy
path
- the path to the timeline object to check whether it can be
selected or notmodel
- the data source that returned the node and timeline objectpublic boolean isSelectable(Object node, ITimeSpan span, IGanttChartModel model)
ISelectionPolicy
isSelectable
in interface ISelectionPolicy
node
- the tree node on which to select the time spanspan
- the time span checkedsmodel
- the data source that returned the nodepublic boolean isSelectable(IRelationship relationship, IGanttChartModel model)
ISelectionPolicy
isSelectable
in interface ISelectionPolicy
relationship
- the relationship to check for selectabilitymodel
- the data source that returned the node and timeline objectCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.