/*
 * @(#)DragTracker.java
 * 
 * Copyright (c) 2009-2010 by the original authors of JHotDraw and all its
 * contributors. All rights reserved.
 * 
 * You may not use, copy or modify this file, except in compliance with the 
 * license agreement you entered into with the copyright holders. For details
 * see accompanying license terms.
 */

package org.jhotdraw.draw.tool;

import org.jhotdraw.draw.*;

/**
 * A drag tracker provides the behavior for dragging selected
 * figures to the {@link SelectionTool}.
 *
 * 
* Design Patterns * *

Strategy
* The different behavior states of the selection tool are implemented by * trackers.
* Context: {@link SelectionTool}; State: {@link DragTracker}, * {@link HandleTracker}, {@link SelectAreaTracker}. * *

Chain of responsibility
* Mouse and keyboard events of the user occur on a drawing view, and are * preprocessed by the {@code DragTracker} of a {@code SelectionTool}. {@code * DragTracker} invokes "track" methods on a {@code Handle} which in turn * changes an aspect of a figure. * Client: {@link SelectionTool}; Handler: {@link DragTracker}, * {@link org.jhotdraw.draw.handle.Handle}. *


* * * @author Werner Randelshofer * @version $Id: DragTracker.java 718 2010-11-21 17:49:53Z rawcoder $ */ public interface DragTracker extends Tool { public void setDraggedFigure(Figure f); }

Ads help maintain this website.