public class CapacityObjectEditModeController extends DefaultEditModeController
ICapacityObject. This kind of timeline object supports an attribute
called 'capacity'. The capacity object edit mode controller triggers an edit
mode of type CHANGE_CAPACITY when the mouse hovers over the capacity change
position while the user holds down the SHIFT key. The capcity change position
is the top edge of the capacity object.DefaultCapacityObject,
IEditCapacityObjectPolicy.isCapacityChangeable(com.dlsc.flexgantt.model.gantt.TimelineObjectPath,
IGanttChartModel),
DragLayer.setEditModeController(Class, IEditModeController)IEditModeController.EditMode| Constructor and Description |
|---|
CapacityObjectEditModeController() |
| 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 |
isChangeCapacityLocation(ObjectBounds bounds,
MouseEvent evt)
Returns TRUE if the given location is valid for changing the capacity of
the timeline object.
|
isChangeEndTimeLocation, isChangeStartTimeLocation, 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 isChangeCapacityLocation(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.