fr.ifremer.coser.ui.selection.model
Class OccurrenceDensitySpeciesListModel
java.lang.Object
javax.swing.AbstractListModel
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 (mar., 14 déc. 2010) $
By : $Author: chatellier $
- Author:
- chatellier
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
species
protected List<String> species
occurrence
protected org.nuiton.math.matrix.MatrixND occurrence
density
protected org.nuiton.math.matrix.MatrixND density
OccurrenceDensitySpeciesListModel
public OccurrenceDensitySpeciesListModel()
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-2011 Ifremer. All Rights Reserved.