|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.systemsbiology.gaggle.experiment.gui.vectormath.ReadOnlyVectorDataAdapter
public class ReadOnlyVectorDataAdapter
This class provides a default implementation of the ReadOnlyVectorDataProvider interface. The purpose of this class is for constructing anonymous inner classes to implement a ReadOnlyVectorDataProvider; the anonymous class should override all the methods. For example: final List theData = myData; ReadOnlyVectorDataProvider p = new ReadOnlyVectorDataAdapter() { public int size() {return theData.size();} public double getQuick(int index) {return ((Double)theData.get(index)).doubleValue();} }; ReadOnlyMathVector vector = MathVectorFactory.makeReadOnlyVector(p);
| Constructor Summary | |
|---|---|
ReadOnlyVectorDataAdapter()
|
|
| Method Summary | |
|---|---|
double |
getQuick(int index)
Unchecked access to the double value at the specified index. |
int |
size()
Returns the number of elements |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReadOnlyVectorDataAdapter()
| Method Detail |
|---|
public int size()
ReadOnlyVectorDataProvider
size in interface ReadOnlyVectorDataProviderpublic double getQuick(int index)
ReadOnlyVectorDataProvider
getQuick in interface ReadOnlyVectorDataProvider
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||