br.usp.iterador.plugin.bacia.gui
Class AttractorsListModel

java.lang.Object
  extended by br.usp.iterador.plugin.bacia.gui.AttractorsListModel
All Implemented Interfaces:
javax.swing.ListModel

public class AttractorsListModel
extends java.lang.Object
implements javax.swing.ListModel

List model to display the selected attractors.

Author:
Guilherme Silveira

Constructor Summary
AttractorsListModel(Basin basin)
           
 
Method Summary
 void addListDataListener(javax.swing.event.ListDataListener l)
           
 java.lang.Object getElementAt(int index)
          Returns the name of the attractor at this position
 int getSize()
          Returns the total number of attractors configured until now
 void removeListDataListener(javax.swing.event.ListDataListener l)
           
 void updateAttractors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttractorsListModel

public AttractorsListModel(Basin basin)
Method Detail

addListDataListener

public void addListDataListener(javax.swing.event.ListDataListener l)
Specified by:
addListDataListener in interface javax.swing.ListModel

getElementAt

public java.lang.Object getElementAt(int index)
Returns the name of the attractor at this position

Specified by:
getElementAt in interface javax.swing.ListModel

getSize

public int getSize()
Returns the total number of attractors configured until now

Specified by:
getSize in interface javax.swing.ListModel

removeListDataListener

public void removeListDataListener(javax.swing.event.ListDataListener l)
Specified by:
removeListDataListener in interface javax.swing.ListModel

updateAttractors

public void updateAttractors()


Copyright 2004-2004-2006 IME - USP. All Rights Reserved.