org.jhotdraw.draw
Class DefaultDrawingView.EventHandler

java.lang.Object
  extended by org.jhotdraw.draw.DefaultDrawingView.EventHandler
All Implemented Interfaces:
java.awt.event.FocusListener, java.util.EventListener, CompositeFigureListener, FigureListener, HandleListener
Enclosing class:
DefaultDrawingView

private class DefaultDrawingView.EventHandler
extends java.lang.Object
implements FigureListener, CompositeFigureListener, HandleListener, java.awt.event.FocusListener


Constructor Summary
private DefaultDrawingView.EventHandler()
           
 
Method Summary
 void areaInvalidated(FigureEvent evt)
          Sent when the drawing area used by the figure needs to be repainted.
 void areaInvalidated(HandleEvent evt)
          Sent when an area of the drawing view needs to be repainted.
 void attributeChanged(FigureEvent e)
          Sent when an attribute of the figure has changed.
 void figureAdded(CompositeFigureEvent evt)
          Sent when a figure was added.
 void figureAdded(FigureEvent e)
          Sent when a figure was added to a drawing.
 void figureChanged(FigureEvent e)
          Sent when the geometry (for example the bounds) of the figure has changed.
 void figureHandlesChanged(FigureEvent e)
          Sent when handles of a Figure have been added, removed or replaced.
 void figureRemoved(CompositeFigureEvent evt)
          Sent when a figure was removed.
 void figureRemoved(FigureEvent e)
          Sent when a figure was removed from a drawing.
 void figureRequestRemove(FigureEvent e)
          Sent when the figure requests to be removed from a drawing.
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 void handleRequestRemove(HandleEvent e)
          Sent when requesting to remove a handle.
 void handleRequestSecondaryHandles(HandleEvent e)
          Sent when requesting to add secondary handles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDrawingView.EventHandler

private DefaultDrawingView.EventHandler()
Method Detail

figureAdded

public void figureAdded(CompositeFigureEvent evt)
Description copied from interface: CompositeFigureListener
Sent when a figure was added.

Specified by:
figureAdded in interface CompositeFigureListener

figureRemoved

public void figureRemoved(CompositeFigureEvent evt)
Description copied from interface: CompositeFigureListener
Sent when a figure was removed.

Specified by:
figureRemoved in interface CompositeFigureListener

areaInvalidated

public void areaInvalidated(FigureEvent evt)
Description copied from interface: FigureListener
Sent when the drawing area used by the figure needs to be repainted.

Specified by:
areaInvalidated in interface FigureListener

areaInvalidated

public void areaInvalidated(HandleEvent evt)
Description copied from interface: HandleListener
Sent when an area of the drawing view needs to be repainted.

Specified by:
areaInvalidated in interface HandleListener

handleRequestSecondaryHandles

public void handleRequestSecondaryHandles(HandleEvent e)
Description copied from interface: HandleListener
Sent when requesting to add secondary handles.

Specified by:
handleRequestSecondaryHandles in interface HandleListener

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Specified by:
focusLost in interface java.awt.event.FocusListener

handleRequestRemove

public void handleRequestRemove(HandleEvent e)
Description copied from interface: HandleListener
Sent when requesting to remove a handle.

Specified by:
handleRequestRemove in interface HandleListener

attributeChanged

public void attributeChanged(FigureEvent e)
Description copied from interface: FigureListener
Sent when an attribute of the figure has changed.

Specified by:
attributeChanged in interface FigureListener

figureHandlesChanged

public void figureHandlesChanged(FigureEvent e)
Description copied from interface: FigureListener
Sent when handles of a Figure have been added, removed or replaced.

DrawingViews listen to this event to repopulate the Handles.

A Figure should not fire this event, if just the state or the location of Handle has changed.

Specified by:
figureHandlesChanged in interface FigureListener

figureChanged

public void figureChanged(FigureEvent e)
Description copied from interface: FigureListener
Sent when the geometry (for example the bounds) of the figure has changed.

Specified by:
figureChanged in interface FigureListener

figureAdded

public void figureAdded(FigureEvent e)
Description copied from interface: FigureListener
Sent when a figure was added to a drawing.

Specified by:
figureAdded in interface FigureListener

figureRemoved

public void figureRemoved(FigureEvent e)
Description copied from interface: FigureListener
Sent when a figure was removed from a drawing.

Specified by:
figureRemoved in interface FigureListener

figureRequestRemove

public void figureRequestRemove(FigureEvent e)
Description copied from interface: FigureListener
Sent when the figure requests to be removed from a drawing.

Specified by:
figureRequestRemove in interface FigureListener