fr.ifremer.coser.ui.selection.model
Class OccurrenceDensitySpeciesListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by fr.ifremer.coser.ui.selection.model.OccurrenceDensitySpeciesListModel
All Implemented Interfaces:
CoserListModel, Serializable, EventListener, ListSelectionListener, ListModel

public class OccurrenceDensitySpeciesListModel
extends AbstractListModel
implements ListSelectionListener, CoserListModel

Occurence and density filered specy list model.

Version:
$Revision: 404 $ Last update : $Date: 2010-12-14 14:55:38 +0100 (Tue, 14 Dec 2010) $ By : $Author: chatellier $
Author:
chatellier
See Also:
Serialized Form

Field Summary
protected  org.nuiton.math.matrix.MatrixND density
           
protected  org.nuiton.math.matrix.MatrixND occurrence
           
protected  List<String> species
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
OccurrenceDensitySpeciesListModel()
           
 
Method Summary
 double getDensity(String specy)
           
 Object getElementAt(int index)
           
 double getOccurrence(String specy)
           
 int getSize()
           
 List<String> getSpecies()
           
 int indexOf(Object o)
          Return index of element.
 void setDensity(org.nuiton.math.matrix.MatrixND density)
           
 void setOccurrence(org.nuiton.math.matrix.MatrixND occurrence)
           
 void setSpecies(List<String> species)
           
 void valueChanged(ListSelectionEvent event)
           
 
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
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Field Detail

species

protected List<String> species

occurrence

protected org.nuiton.math.matrix.MatrixND occurrence

density

protected org.nuiton.math.matrix.MatrixND density
Constructor Detail

OccurrenceDensitySpeciesListModel

public OccurrenceDensitySpeciesListModel()
Method Detail

getSpecies

public List<String> getSpecies()

setSpecies

public void setSpecies(List<String> species)

setOccurrence

public void setOccurrence(org.nuiton.math.matrix.MatrixND occurrence)

setDensity

public void setDensity(org.nuiton.math.matrix.MatrixND density)

getOccurrence

public double getOccurrence(String specy)

getDensity

public double getDensity(String specy)

getSize

public int getSize()
Specified by:
getSize in interface ListModel

getElementAt

public Object getElementAt(int index)
Specified by:
getElementAt in interface ListModel

indexOf

public int indexOf(Object o)
Description copied from interface: CoserListModel
Return index of element.

Specified by:
indexOf in interface CoserListModel
Parameters:
o - element to get index
Returns:
index of element

valueChanged

public void valueChanged(ListSelectionEvent event)
Specified by:
valueChanged in interface ListSelectionListener


Copyright © 2010-2012 Ifremer. All Rights Reserved.