org.jdrawing.event
Interface DrawingModelListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
GridDrawingModelCache

public interface DrawingModelListener
extends java.util.EventListener

Defines the interface for an object that listens to changes in a DrawingModel.


Method Summary
 void elementsAdded(DrawingModelEvent event)
          Invoked after elements have been inserted into the model.
 void elementsChanged(DrawingModelEvent event)
          Invoked after elements have been changed in some way.
 void elementsRemoved(DrawingModelEvent event)
          Invoked after elements have been removed from the model.
 void modelChanged(DrawingModelEvent event)
          Invoked after the model has drastically changed in some way.
 

Method Detail

elementsAdded

public void elementsAdded(DrawingModelEvent event)
Invoked after elements have been inserted into the model.

Parameters:
event - DrawingModelEvent object encapsulating event information

elementsRemoved

public void elementsRemoved(DrawingModelEvent event)
Invoked after elements have been removed from the model.

Parameters:
event - DrawingModelEvent object encapsulating event information

elementsChanged

public void elementsChanged(DrawingModelEvent event)
Invoked after elements have been changed in some way.

Parameters:
event - DrawingModelEvent object encapsulating event information

modelChanged

public void modelChanged(DrawingModelEvent event)
Invoked after the model has drastically changed in some way.

Parameters:
event - DrawingModelEvent object encapsulating event information