VRJConfig UI API
v2.0


org.vrjuggler.vrjconfig.commoneditors.placer
Class AbstractPlacerModel

java.lang.Object
  extended by org.vrjuggler.vrjconfig.commoneditors.placer.AbstractPlacerModel
All Implemented Interfaces:
PlacerModel

public abstract class AbstractPlacerModel
extends Object
implements PlacerModel

Partial implementation of placer models that helps take care of implementing the mundane stuff. Extend this class to easily create new placer data models.


Field Summary
protected  EventListenerList listeners
          List of all listeners of this model.
 
Constructor Summary
AbstractPlacerModel()
           
 
Method Summary
 void addPlacerModelListener(PlacerModelListener listener)
          Adds a listener that's notified each time this data model changes.
 void fireDesktopSizeChanged()
          Notifies all listeners that the size of the desktop has changed.
 void fireItemsChanged(int[] indicies)
          Notifies all listeners that items were changed.
 void fireItemsInserted(int[] indicies)
          Notifies all listeners that items were inserted.
 void fireItemsRemoved(int[] indicies, Object[] values)
          Notifies all listeners that items were removed.
 void removePlacerModelListener(PlacerModelListener listener)
          Removes a listener that's notified each time this data model changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.vrjuggler.vrjconfig.commoneditors.placer.PlacerModel
getDesktopSize, getElement, getElementAt, getIndexOfElementAt, getLocationOf, getSize, getSizeOf, moveToFront, setDesktopSize, setLocationOf, setSizeOf
 

Field Detail

listeners

protected EventListenerList listeners
List of all listeners of this model.

Constructor Detail

AbstractPlacerModel

public AbstractPlacerModel()
Method Detail

addPlacerModelListener

public void addPlacerModelListener(PlacerModelListener listener)
Adds a listener that's notified each time this data model changes.

Specified by:
addPlacerModelListener in interface PlacerModel

removePlacerModelListener

public void removePlacerModelListener(PlacerModelListener listener)
Removes a listener that's notified each time this data model changes.

Specified by:
removePlacerModelListener in interface PlacerModel

fireItemsChanged

public void fireItemsChanged(int[] indicies)
Notifies all listeners that items were changed.


fireItemsInserted

public void fireItemsInserted(int[] indicies)
Notifies all listeners that items were inserted.


fireItemsRemoved

public void fireItemsRemoved(int[] indicies,
                             Object[] values)
Notifies all listeners that items were removed.


fireDesktopSizeChanged

public void fireDesktopSizeChanged()
Notifies all listeners that the size of the desktop has changed.


VRJConfig UI API
v2.0


Copyright © 1998–2005 Iowa State University. All rights reserved.