com.dlsc.flexgantt.swing.layer.system
Interface IDragInfoRenderer
- All Known Implementing Classes:
- DefaultDragInfoRenderer
public interface IDragInfoRenderer
A drag info renderer is used to visualize information provided by an instance
of IDragInfoPolicy during a drag & drop operation. Typical
information shown in such an info is the start and end time where the dragged
object will be placed when the drop occures.
- Since:
- 1.0
- Author:
- Dirk Lemmermann
- See Also:
DragLayer.setDragInfoVisible(boolean),
DragLayer.setDragInfoRenderer(Class, IDragInfoRenderer)
|
Method Summary |
java.awt.Component |
getDragInfoRendererComponent(DragLayer layer,
java.lang.Object node,
java.lang.Object timelineObject,
java.lang.Object dragInfo,
ITimeSpan span,
int dndAction)
Returns a component that will be used to render the drag information. |
getDragInfoRendererComponent
java.awt.Component getDragInfoRendererComponent(DragLayer layer,
java.lang.Object node,
java.lang.Object timelineObject,
java.lang.Object dragInfo,
ITimeSpan span,
int dndAction)
- Returns a component that will be used to render the drag information.
- Parameters:
layer - the drag layer where the rendering will take placenode - the tree node that owns the timeline object that is currently
being draggedtimelineObject - the dragged timeline objectdragInfo - the drag information objectspan - the time span where the drop would take place if the d&d
operation finished nowdndAction - the type of drag and drop that is being performed (move, copy)
(a value listed in DnDConstants)
- Returns:
- a renderer component for the drag information
- Since:
- 1.0