org.jhotdraw.gui.event
Class DrawingComponentRepainter
java.lang.Object
org.jhotdraw.draw.FigureAdapter
org.jhotdraw.gui.event.DrawingComponentRepainter
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener, Disposable, FigureListener
public class DrawingComponentRepainter
- extends FigureAdapter
- implements java.beans.PropertyChangeListener, Disposable
Calls repaint on components, which show attributes of a drawing object
on the current view of the editor.
- Author:
- Werner Randelshofer
@version $Id: DrawingComponentRepainter.java 527 2009-06-07 14:28:19Z rawcoder $
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
editor
private DrawingEditor editor
component
private javax.swing.JComponent component
DrawingComponentRepainter
public DrawingComponentRepainter(DrawingEditor editor,
javax.swing.JComponent component)
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
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