|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfern.tools.gnuplot.Axes
fern.tools.gnuplot.ArrayMatrixAxes
public class ArrayMatrixAxes
Implementation of Axes
to use with array matrixes
of any number type (the type of the arrays is inferred by
using the reflection api). An array matrix is just a two dimensional
rectangular array (new double[3][20]
). The first index
of the matrix gives the row, the second the column (3 rows and 20 columns).
If your array matrix is transposed (your first index denotes the column, the second
one the row), just use TransposedArrayMatrixAxes
.
Axes
Field Summary |
---|
Fields inherited from class fern.tools.gnuplot.Axes |
---|
Additional, ThreeD, TwoD |
Constructor Summary | |
---|---|
ArrayMatrixAxes(Object matrix)
Create a new Axes object containing the given array matrix
without labels / styles. |
|
ArrayMatrixAxes(Object matrix,
String[] labels,
String[] styles)
Create a new Axes object containing the given array matrix
with the given labels /styles (either can be null ). |
Method Summary | |
---|---|
int |
getNumColumns()
Gets the number of columns. |
int |
getNumRows()
Gets the number of rows. |
Iterator<String> |
iterator()
Yields the tab separated columns row by row. |
Methods inherited from class fern.tools.gnuplot.Axes |
---|
addAxes, applyDefaultStyle, getDimensionType, getLabel, getNumber, getStyle, getX, setLabel, setStyle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayMatrixAxes(Object matrix)
Axes
object containing the given array matrix
without labels / styles. If the passed object is not a valid array matrix,
an IllegalArgumentException
will be thrown.
matrix
- array matrixpublic ArrayMatrixAxes(Object matrix, String[] labels, String[] styles)
Axes
object containing the given array matrix
with the given labels /styles (either can be null
).
If the passed object is not a valid array matrix,
an IllegalArgumentException
will be thrown.
matrix
- the array matrixlabels
- the labelsstyles
- the stylesMethod Detail |
---|
public int getNumColumns()
Axes
Axes
object is also included.
getNumColumns
in class Axes
public int getNumRows()
Axes
getNumRows
in class Axes
public Iterator<String> iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |