|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.display.DataAdapter
public class DataAdapter
Data adapter class implements the Data interface for double[][] arrays.
Field Summary | |
---|---|
protected java.lang.String[] |
colNames
|
protected double[][] |
data
|
protected int |
ID
|
protected java.lang.String |
name
|
Constructor Summary | |
---|---|
DataAdapter(double[][] array)
Constructor DataAdapter |
Method Summary | |
---|---|
java.lang.String[] |
getColumnNames()
Gets column names. |
double[][] |
getData2D()
Gets the double[][] array. |
double[][][] |
getData3D()
Not used. |
java.util.List<Data> |
getDataList()
Not used. |
java.util.ArrayList<Dataset> |
getDatasets()
Not used Data because is stored in 2D array. |
java.awt.Color[] |
getFillColors()
Fill colors for columns are not specified. |
int |
getID()
Gets the Data ID. |
java.awt.Color[] |
getLineColors()
Lines colors for columns are not specified. |
java.lang.String |
getName()
Gets the name of the Data. |
void |
setColumnNames(java.lang.String[] names)
Sets the column names. |
void |
setID(int id)
Sets the Data ID. |
void |
setName(java.lang.String name)
Sets the name of the Data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String[] colNames
protected java.lang.String name
protected double[][] data
protected int ID
Constructor Detail |
---|
public DataAdapter(double[][] array)
array
- Method Detail |
---|
public java.lang.String[] getColumnNames()
getColumnNames
in interface Data
public void setColumnNames(java.lang.String[] names)
names
- public java.lang.String getName()
getName
in interface Data
public void setName(java.lang.String name)
public double[][] getData2D()
getData2D
in interface Data
public double[][][] getData3D()
getData3D
in interface Data
public java.util.List<Data> getDataList()
getDataList
in interface Data
public java.util.ArrayList<Dataset> getDatasets()
getDatasets
in interface Data
public java.awt.Color[] getFillColors()
getFillColors
in interface Data
public java.awt.Color[] getLineColors()
getLineColors
in interface Data
public int getID()
getID
in interface Data
public void setID(int id)
setID
in interface Data
id
- the ID number
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |