net.sf.j3d.threeD.ui.dialogs
Class PolynomialTermsListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by net.sf.j3d.threeD.ui.dialogs.PolynomialTermsListModel
All Implemented Interfaces:
Serializable, ListModel, EventListener

public class PolynomialTermsListModel
extends AbstractListModel
implements EventListener

The PolynomialTermsListModel class extends AbstractListModel and provides a list model that dynamically displays the terms of a Polynomial object.

See Also:
Serialized Form

Constructor Summary
PolynomialTermsListModel(Polynomial polynomial)
          Constructs a new PolynomialTermsListModel that displays the terms of the specified Polynomial object.
 
Method Summary
 void eventFired(Event event)
          Method called when an event has been fired.
 Object getElementAt(int index)
          Returns a String representation of the term of the Polynomial object stored by this PolynomialTermsListModel object at the specified index.
 int getSize()
          Returns the total number of terms stored by the Polynomial object stored by this PolynomialTermsListModel object.
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolynomialTermsListModel

public PolynomialTermsListModel(Polynomial polynomial)
Constructs a new PolynomialTermsListModel that displays the terms of the specified Polynomial object.

Method Detail

getElementAt

public Object getElementAt(int index)
Returns a String representation of the term of the Polynomial object stored by this PolynomialTermsListModel object at the specified index.

Specified by:
getElementAt in interface ListModel

getSize

public int getSize()
Returns the total number of terms stored by the Polynomial object stored by this PolynomialTermsListModel object.

Specified by:
getSize in interface ListModel

eventFired

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

Specified by:
eventFired in interface EventListener