net.sf.j3d.threeD.ui.panels
Class TransformationsListModel

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

public class TransformationsListModel
extends AbstractListModel
implements EventListener

The TransformationsListModel class extends AbstractListModel and provides a list model that dynamically displays the transformations applied to an AbstractSurface object.

See Also:
Serialized Form

Constructor Summary
TransformationsListModel(AbstractSurface surface)
          Constructs a new TransformationsListModel that displays the transformations of the specified AbstractSurface 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 transformation applied to the AbstractSurface object stored by this TransformationsListModel object at the specified index.
 int getSize()
          Returns the total number of transformations applied to the AbstractSurface object stored by this TransformationsListModel 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

TransformationsListModel

public TransformationsListModel(AbstractSurface surface)
Constructs a new TransformationsListModel that displays the transformations of the specified AbstractSurface object.

Method Detail

getElementAt

public Object getElementAt(int index)
Returns a String representation of the transformation applied to the AbstractSurface object stored by this TransformationsListModel object at the specified index.

Specified by:
getElementAt in interface ListModel

getSize

public int getSize()
Returns the total number of transformations applied to the AbstractSurface object stored by this TransformationsListModel 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