com.dlsc.flexgantt.swing.layer.system
Interface IDragRowRenderer
- All Known Implementing Classes:
- DefaultDragRowRenderer
public interface IDragRowRenderer
A drag row renderer is used to visualize additional row-specific information
during a drag & drop operation. The renderer can for example be used to mark
the locations on a row where the timeline object that is currently being
dragged can or can not be dropped.
- Since:
- 1.0
- Author:
- Dirk Lemmermann
- See Also:
DragLayer.setDragRowRenderer(Class, IDragRowRenderer)
Method Summary |
java.awt.Component |
getDragRowRendererComponent(DragLayer layer,
java.lang.Object node,
java.lang.Object dragNode,
java.lang.Object draggedTimelineObject,
ITimeSpan span,
int userDropAction)
Returns a component that will be used to render the row specific drag and
drop information. |
getDragRowRendererComponent
java.awt.Component getDragRowRendererComponent(DragLayer layer,
java.lang.Object node,
java.lang.Object dragNode,
java.lang.Object draggedTimelineObject,
ITimeSpan span,
int userDropAction)
- Returns a component that will be used to render the row specific drag and
drop information.
- Parameters:
layer
- the drag layer where the rendering will take placenode
- the tree node for which the renderer gets invokeddragNode
- the node on which the timeline object is currently locateddraggedTimelineObject
- the dragged timeline objectspan
- the time span where the drop would take place if the d&d
operation finished nowuserDropAction
- the type of drop requested by the user (move, copy) (possible
values listed in DnDConstants
)
- Returns:
- a renderer component for the drag information
- Since:
- 1.0