use of com.google.security.zynamics.zylib.gui.zygraph.realizers.ZyLineContent.ObjectWrapper in project binnavi by google.
the class ZyGraphDragAndDropSupport method handleDragOver.
private void handleDragOver(final Point location) {
final DragOverState state = getDragOverState(graph, location);
final NaviNode node = state.getNode();
if (node != null && state.getDragOverObject() != null) {
final Object object = state.getDragOverObject().getObject();
if (object instanceof INaviOperandTreeNode && ((INaviOperandTreeNode) object).getType() == ExpressionType.REGISTER) {
final int row = node.positionToRow(graph.getView().toWorldCoordY(location.y) - node.getY());
if (row != -1) {
clearHighlighting(node);
lastRow = row;
final ObjectWrapper wrapper = state.getDragOverObject();
node.setHighlighting(HIGHLIGHTING_LEVEL, row, wrapper.getStart(), wrapper.getLength(), HIGHLIGHTING_COLOR);
}
}
} else {
clearHighlighting(null);
}
}
Aggregations