|
||||||||||
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.CollectionAxes
public class CollectionAxes
Implementation of Axes
to use with Collection
s or Iterable
s
of any number type or array of numbers (the type of the collection is inferred by
using the reflection api).
Axes
Field Summary |
---|
Fields inherited from class fern.tools.gnuplot.Axes |
---|
Additional, ThreeD, TwoD |
Constructor Summary | |
---|---|
CollectionAxes(Collection collection)
Create a new Axes object containing the given collection without labels /styles. |
|
CollectionAxes(Collection collection,
String[] labels,
String[] styles)
Create a new Axes object containing the given collection
with the given labels /styles (either can be null ). |
|
CollectionAxes(Iterable iterable)
Create a new Axes object containing a collection (which is copied from
the given iterable) without labels /styles. |
|
CollectionAxes(Iterable iterable,
String[] labels,
String[] styles)
Create a new Axes object containing a collection (which is copied from
the given iterable) 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 CollectionAxes(Collection collection)
Axes
object containing the given collection without labels /styles.
collection
- the collectionpublic CollectionAxes(Iterable iterable)
Axes
object containing a collection (which is copied from
the given iterable) without labels /styles.
iterable
- the iterablepublic CollectionAxes(Collection collection, String[] labels, String[] styles)
Axes
object containing the given collection
with the given labels /styles (either can be null
).
collection
- the collectionlabels
- labels for each columnstyles
- styles for each columnpublic CollectionAxes(Iterable iterable, String[] labels, String[] styles)
Axes
object containing a collection (which is copied from
the given iterable) with the given labels /styles (either can be null
).
iterable
- the iterablelabels
- labels for each columnstyles
- styles for each columnMethod Detail |
---|
public Iterator<String> iterator()
public int getNumColumns()
Axes
Axes
object is also included.
getNumColumns
in class Axes
public int getNumRows()
Axes
getNumRows
in class Axes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |