Rings
Version 0.3

threeD.ui.dialogs
Class PolynomialTermsListModel

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

public class PolynomialTermsListModel
extends javax.swing.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

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
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.
 java.lang.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, 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

PolynomialTermsListModel

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

Method Detail

getElementAt

public java.lang.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 javax.swing.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 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