Rings
Version 0.3

threeD.ui.panels
Class SurfaceListModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended bythreeD.ui.panels.SurfaceListModel
All Implemented Interfaces:
EventListener, javax.swing.ListModel, java.io.Serializable

public class SurfaceListModel
extends javax.swing.AbstractListModel
implements EventListener

The SurfaceListModel class extends AbstractListModel and provides a list model that dynamically displays the Surface objects of a Scene object.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
SurfaceListModel(Scene scene)
          Constructs a new SurfaceListModel object using the specified Scene object.
 
Method Summary
 void eventFired(Event event)
          Method called when an event has been fired.
 java.lang.Object getElementAt(int index)
          Returns the Surface object at the specified index.
 int getSize()
          Returns the number of Surface objects that are contained in the Scene object used by this SurfaceListModel object.
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurfaceListModel

public SurfaceListModel(Scene scene)
Constructs a new SurfaceListModel object using the specified Scene object.

Method Detail

getSize

public int getSize()
Returns the number of Surface objects that are contained in the Scene object used by this SurfaceListModel object.

Specified by:
getSize in interface javax.swing.ListModel

getElementAt

public java.lang.Object getElementAt(int index)
Returns the Surface object at the specified index.

Specified by:
getElementAt in interface javax.swing.ListModel

eventFired

public void eventFired(Event event)
Method called when an event has been fired.

Specified by:
eventFired in interface EventListener

Rings
Version 0.3

Copyright 2003-05 Mike Murray