instrument/JTree API Documentation

org.pvv.bcd.instrument.JTree
Interface DragOverData

All Known Implementing Classes:
DefaultNodeInfo

public interface DragOverData

This interface should be implemented by any custom NodeInfo that wants drag-over effects to be apparant when the user drags nodes around within the tree.

See Also:
NodeInfoTreeCellRenderer#paint()

Field Summary
static int DRAG_BOTTOM
          Constant used for "will be dropped as sibling below this node"
static int DRAG_CENTER
          Constant used for "will be dropped as child of this node"
static int DRAG_NONE
          Constant used for no drag effect
static int DRAG_TOP
          Constant used for "will be dropped as sibling above this node"
 
Method Summary
 int getCurrentEffect()
          Retrieves the current drag-over effect for this node.
 void setCurrentEffect(int effect)
          Sets the current drag-over effect for this node.
 

Field Detail

DRAG_NONE

public static final int DRAG_NONE
Constant used for no drag effect

DRAG_CENTER

public static final int DRAG_CENTER
Constant used for "will be dropped as child of this node"

DRAG_TOP

public static final int DRAG_TOP
Constant used for "will be dropped as sibling above this node"

DRAG_BOTTOM

public static final int DRAG_BOTTOM
Constant used for "will be dropped as sibling below this node"
Method Detail

getCurrentEffect

public int getCurrentEffect()
Retrieves the current drag-over effect for this node. Useful in conjunction with graphical presentation.
Returns:
Current drag-over effect.

setCurrentEffect

public void setCurrentEffect(int effect)
Sets the current drag-over effect for this node. Useful in conjunction with graphical presentation.
Parameters:
effect - New drag-over effect.

instrument/JTree API Documentation