org.jhotdraw.draw.event
Class HandleMulticaster

java.lang.Object
  extended by org.jhotdraw.draw.event.HandleMulticaster

public class HandleMulticaster
extends java.lang.Object

Forwards events to one or many handles.

Version:
$Id: HandleMulticaster.java 604 2010-01-09 12:00:29Z rawcoder $
Author:
Werner Randelshofer

Field Summary
(package private)  java.util.LinkedList<Handle> handles
           
 
Constructor Summary
HandleMulticaster(java.util.Collection<Handle> handles)
          Creates a new instance.
HandleMulticaster(Handle handle)
          Creates a new instance.
 
Method Summary
 void draw(java.awt.Graphics2D g)
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void trackDoubleClick(java.awt.Point p, int modifiersEx, DrawingView view)
           
 void trackEnd(java.awt.Point current, java.awt.Point anchor, int modifiersEx, DrawingView view)
           
 void trackStart(java.awt.Point anchor, int modifiersEx, DrawingView view)
           
 void trackStep(java.awt.Point anchor, java.awt.Point lead, int modifiersEx, DrawingView view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handles

java.util.LinkedList<Handle> handles
Constructor Detail

HandleMulticaster

public HandleMulticaster(Handle handle)
Creates a new instance.


HandleMulticaster

public HandleMulticaster(java.util.Collection<Handle> handles)
Creates a new instance.

Method Detail

draw

public void draw(java.awt.Graphics2D g)

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)

trackEnd

public void trackEnd(java.awt.Point current,
                     java.awt.Point anchor,
                     int modifiersEx,
                     DrawingView view)

trackStart

public void trackStart(java.awt.Point anchor,
                       int modifiersEx,
                       DrawingView view)

trackDoubleClick

public void trackDoubleClick(java.awt.Point p,
                             int modifiersEx,
                             DrawingView view)

trackStep

public void trackStep(java.awt.Point anchor,
                      java.awt.Point lead,
                      int modifiersEx,
                      DrawingView view)