JHotDraw 7.5.1

org.jhotdraw.draw.event
Class SelectionComponentRepainter

java.lang.Object
  extended by org.jhotdraw.draw.event.FigureAdapter
      extended by org.jhotdraw.draw.event.SelectionComponentRepainter
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, Disposable, FigureListener, FigureSelectionListener

public class SelectionComponentRepainter
extends FigureAdapter
implements java.beans.PropertyChangeListener, FigureSelectionListener, Disposable

Calls repaint on components, which show attributes of the drawing editor and of its views based on the current selection.

Author:
Werner Randelshofer  @version $Id: SelectionComponentRepainter.java 625 2010-01-18 20:10:41Z rawcoder $

Constructor Summary
SelectionComponentRepainter(DrawingEditor editor, javax.swing.JComponent component)
           
 
Method Summary
 void attributeChanged(FigureEvent evt)
          Sent when an attribute of the figure has changed.
 void dispose()
          Disposes of all resources held by this object so that they can be garbage collected.
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void selectionChanged(FigureSelectionEvent evt)
           
 
Methods inherited from class org.jhotdraw.draw.event.FigureAdapter
areaInvalidated, figureAdded, figureChanged, figureHandlesChanged, figureRemoved, figureRequestRemove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionComponentRepainter

public SelectionComponentRepainter(DrawingEditor editor,
                                   javax.swing.JComponent component)
Method Detail

attributeChanged

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

Specified by:
attributeChanged in interface FigureListener
Overrides:
attributeChanged in class FigureAdapter

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

selectionChanged

public void selectionChanged(FigureSelectionEvent evt)
Specified by:
selectionChanged in interface FigureSelectionListener

dispose

public void dispose()
Description copied from interface: Disposable
Disposes of all resources held by this object so that they can be garbage collected.

Specified by:
dispose in interface Disposable

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.