com.dlsc.flexgantt.policy.layer
Interface ISelectionPolicy

All Superinterfaces:
IPolicy
All Known Implementing Classes:
DefaultSelectionPolicy

public interface ISelectionPolicy
extends IPolicy

A policy that is used to determine whether timeline objects can be selected or not. The policy does not return a command object as the selection of objects shall not be tracked by the command stack and undo / redo capabilities are not desired.

Since:
1.0
Author:
Dirk Lemmermann

Method Summary
 boolean isSelectable(java.lang.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(java.lang.Object node, java.lang.Object timelineObject, IGanttChartModel model)
          Returns TRUE if the given timeline object on the given node can be selected by the user (or programmatically) or not.
 

Method Detail

isSelectable

boolean isSelectable(java.lang.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.

Parameters:
node - the tree node on which to select the time span
span - the time span checkeds
model - the data source that returned the node
Returns:
TRUE if the given time span can be selected, FALSE otherwise
Since:
1.0

isSelectable

boolean isSelectable(java.lang.Object node,
                     java.lang.Object timelineObject,
                     IGanttChartModel model)
Returns TRUE if the given timeline object on the given node can be selected by the user (or programmatically) or not.

Parameters:
node - the tree node to which the timeline object belongs
timelineObject - the timeline object to check whether it can be selected or not
model - the data source that returned the node and timeline object
Returns:
TRUE if the given timeline object that belongs to the given node can be selected, FALSE otherwise
Since:
1.0