|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.bubble.DefaultBubbleDataset
public class DefaultBubbleDataset
Default implementation of a BubbleDataset that adapts DataFrames to the BubbleDataset interface.
Nested Class Summary | |
---|---|
private static class |
DefaultBubbleDataset.CategoryEntry
|
private class |
DefaultBubbleDataset.CategoryIter
|
Field Summary | |
---|---|
private java.util.Calendar |
cal
|
private static int |
CALENDAR_FIELD
|
private java.util.List<DefaultBubbleDataset.CategoryEntry> |
categories
|
private int[] |
offsets
|
private int |
tsCount
|
private anl.aida.data.DataFrame |
xFrame
|
private NumericRange |
xRange
|
private anl.aida.data.DataFrame |
yFrame
|
private NumericRange |
yRange
|
private anl.aida.data.DataFrame |
zFrame
|
private NumericRange |
zRange
|
Constructor Summary | |
---|---|
DefaultBubbleDataset(anl.aida.data.DataFrame xFrame,
anl.aida.data.DataFrame yFrame,
anl.aida.data.DataFrame zFrame)
|
|
DefaultBubbleDataset(anl.aida.data.DataFrame xFrame,
anl.aida.data.DataFrame yFrame,
anl.aida.data.DataFrame zFrame,
int categoryCount)
|
Method Summary | |
---|---|
java.lang.Iterable<java.lang.String> |
categories()
Gets an iterable over the categories in this dataset. |
int |
getCategoryCount()
Gets the number of categories in this dataset. |
int |
getCategoryIndex(java.lang.String category)
Gets the index of the specified category. |
java.lang.String |
getFormattedTimeStep(int timestep)
Gets the formatted timestep (e.g. |
int |
getTimeStepCount()
Gets the number of timesteps. |
NumericRange |
getXRange()
Gets the range of x values over all timesteps and categories. |
double |
getXValue(int categoryIndex,
int timestep)
Gets the x value for the particular category at the specified timestep. |
NumericRange |
getYRange()
Gets the range of y values over all timesteps and categories. |
double |
getYValue(int categoryIndex,
int timestep)
Gets the y value for the particular category at the specified timestep. |
NumericRange |
getZRange()
Gets the range of z values over all timesteps and categories. |
double |
getZValue(int categoryIndex,
int timestep)
Gets the z value for the particular category at the specified timestep. |
private void |
initRanges()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private anl.aida.data.DataFrame xFrame
private anl.aida.data.DataFrame yFrame
private anl.aida.data.DataFrame zFrame
private int[] offsets
private int tsCount
private java.util.List<DefaultBubbleDataset.CategoryEntry> categories
private java.util.Calendar cal
private NumericRange xRange
private NumericRange yRange
private NumericRange zRange
private static int CALENDAR_FIELD
Constructor Detail |
---|
public DefaultBubbleDataset(anl.aida.data.DataFrame xFrame, anl.aida.data.DataFrame yFrame, anl.aida.data.DataFrame zFrame)
xFrame
- yFrame
- zFrame
- public DefaultBubbleDataset(anl.aida.data.DataFrame xFrame, anl.aida.data.DataFrame yFrame, anl.aida.data.DataFrame zFrame, int categoryCount)
xFrame
- yFrame
- zFrame
- categoryCount
- the number of categories to display. -1 means show all.Method Detail |
---|
private void initRanges()
public java.lang.Iterable<java.lang.String> categories()
BubbleDataset
categories
in interface BubbleDataset
public int getCategoryIndex(java.lang.String category)
BubbleDataset
getCategoryIndex
in interface BubbleDataset
category
- the category whose index we want
public java.lang.String getFormattedTimeStep(int timestep)
BubbleDataset
getFormattedTimeStep
in interface BubbleDataset
timestep
- the formatted timestep
public int getCategoryCount()
BubbleDataset
getCategoryCount
in interface BubbleDataset
public int getTimeStepCount()
BubbleDataset
getTimeStepCount
in interface BubbleDataset
public double getXValue(int categoryIndex, int timestep)
BubbleDataset
getXValue
in interface BubbleDataset
categoryIndex
- the category indextimestep
- the timestep
public double getYValue(int categoryIndex, int timestep)
BubbleDataset
getYValue
in interface BubbleDataset
categoryIndex
- the category indextimestep
- the timestep
public double getZValue(int categoryIndex, int timestep)
BubbleDataset
getZValue
in interface BubbleDataset
categoryIndex
- the category indextimestep
- the timestep
public NumericRange getXRange()
BubbleDataset
getXRange
in interface BubbleDataset
public NumericRange getYRange()
BubbleDataset
getYRange
in interface BubbleDataset
public NumericRange getZRange()
BubbleDataset
getZRange
in interface BubbleDataset
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |