public class TimeGranularityDragInfoPolicy extends DefaultDragInfoPolicy
TimeGranularityDatelineModel
.Constructor and Description |
---|
TimeGranularityDragInfoPolicy() |
Modifier and Type | Method and Description |
---|---|
DateFormat |
getDateFormat()
Returns the date formatting object used by the policy to create nicely
formatted date strings for the date info.
|
Object |
getDragInfo(TimelineObjectPath path,
IGanttChartModel model,
IDatelineModel<?> datelineModel,
Object dropNode,
ITimeSpan dropSpan)
Returns an object that can be used to show information during a drag
operation (e.g. time span over which the dragged timeline object hovers).
|
void |
setDateFormat(DateFormat format)
Sets the date formatting object used by the policy to create nicely
formatted date strings for the date info.
|
getCapacityFormatter, getDragInfo, getDragInfo, getPercentageFormatter, setCapacityFormatter, setPercentageFormatter
assertClass
public Object getDragInfo(TimelineObjectPath path, IGanttChartModel model, IDatelineModel<?> datelineModel, Object dropNode, ITimeSpan dropSpan)
IDragInfoPolicy
getDragInfo
in interface IDragInfoPolicy
getDragInfo
in class DefaultDragInfoPolicy
path
- the path to the dragged timeline objectmodel
- the model to which the dragged timeline object belongsdatelineModel
- the model used by the datelinedropNode
- the tree node over which the dragged object hoversdropSpan
- the span over which the dragged object hoverspublic DateFormat getDateFormat()
public void setDateFormat(DateFormat format)
format
- the date formatter used by the policyCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.