public class ActivityObjectEditModeController extends DefaultEditModeController
IActivityObject. This kind of timeline object supports an attribute
called 'percentage complete'. The activity object edit mode controller
triggers an edit mode of type CHANGE_PERCENTAGE_COMPLETE when the mouse
hovers over the current percentage complete position while the user holds
down the SHIFT key.DefaultActivityObject,
IEditActivityObjectPolicy.isPercentageChangeable(com.dlsc.flexgantt.model.gantt.TimelineObjectPath,
IGanttChartModel),
DragLayer.setEditModeController(Class, IEditModeController)IEditModeController.EditMode| Constructor and Description |
|---|
ActivityObjectEditModeController() |
| Modifier and Type | Method and Description |
|---|---|
IEditModeController.EditMode |
getEditMode(DragLayer layer,
ObjectBounds bounds,
MouseEvent evt)
Returns an edit mode based on the given bounds and mouse event.
|
protected boolean |
isChangePercentageLocation(ObjectBounds bounds,
MouseEvent evt)
Returns TRUE if the given location is valid for changing the percentage
complete value of the timeline object.
|
protected boolean |
isChangeStartTimeLocation(ObjectBounds bounds,
MouseEvent evt,
IEditTimelineObjectPolicy editPolicy)
Returns TRUE if the given location is valid for changing the start time
of the timeline object.
|
isChangeEndTimeLocation, isDragLocation, isUsingDragOverrideModifierspublic IEditModeController.EditMode getEditMode(DragLayer layer, ObjectBounds bounds, MouseEvent evt)
IEditModeControllergetEditMode in interface IEditModeControllergetEditMode in class DefaultEditModeControllerlayer - the drag layer requesting the edit modebounds - the object bounds over which the mouse cursor currently hoversevt - the mouse event that triggered the requestprotected boolean isChangeStartTimeLocation(ObjectBounds bounds, MouseEvent evt, IEditTimelineObjectPolicy editPolicy)
DefaultEditModeControllerisChangeStartTimeLocation in class DefaultEditModeControllerbounds - the object bounds to checkevt - the mouse event causing the location checkeditPolicy - the timeline object editing policyprotected boolean isChangePercentageLocation(ObjectBounds bounds, MouseEvent evt)
bounds - the object bounds to checkevt - the mouse event causing the location checkCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.