|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.math.DataMatrix<T>
T - the type of Objects that are processed by this gridpublic class DataMatrix<T>
provides aggregated multidimensional data based on a DataParser
DataParser,
DataMatrixGraphics,
TimeDataGrid,
CounterMap,
DataMap,
Serialized Form| Constructor Summary | |
|---|---|
DataMatrix(DataParser<? super T> parser)
|
|
DataMatrix(DataParser<? super T> parser,
Filter<? super T> filter)
|
|
DataMatrix(TimeDataGrid<T> grid)
|
|
| Method Summary | ||
|---|---|---|
DataMatrix<T> |
add(DataMatrix<T> other)
adds this instance to the other given one and returns the result; this entry itself remains untouched |
|
void |
addData(DataMatrix<?> other)
adds the data map to this instance (like add(DataMatrix), only that it is applied to this instance) |
|
void |
addData(Enumeration<? extends T> e)
loads the data by parsing the given Enumeration and extracting the relevant values through the parser |
|
void |
addData(Enumeration<? extends T> e,
Monitor mon)
min and max from the given Monitor remain untouched; a disabled Monitor will lead to a break |
|
void |
addData(T... entries)
|
|
void |
addEntry(T entry)
|
|
boolean |
addMatrix(DataMatrix<? super T> matrix)
|
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
allows to be notified when new data is loaded or cleared; the property key on the event is 'data' |
|
DataPoint |
addRawData(List<Object> vector,
Number n)
allows to directly add a value with a pre-defined data vector; additional matrixes are not effected |
|
protected DataPoint |
addRawData(List<Object> vector,
Number n,
boolean validate)
allows to directly add a value with a pre-defined data vector; additional matrixes are not effected |
|
DataPoint |
addRawData(Number n,
Object... vector)
allows to directly add a value with a pre-defined data vector |
|
DataMatrix<T> |
aggregate(int... axises)
allows to reduce the vector to a dimension defined by the given axises |
|
DataMatrix<T> |
aggregate(String... axises)
|
|
HashMap<List<Object>,DataPoint> |
aggregatedDataMap(int... axises)
calculates a new data map based on the given reduced vector |
|
DataMatrix<T> |
aggregateTopAxisValues(int axis,
Object remainderKey,
int maxEntries,
DataPoint.ValueType type)
allows to aggregate the vector towards a given number of entries along a given axis |
|
DataMatrix<T> |
aggregateTopAxisValues(String axis,
Object remainderKey,
int maxEntries,
DataPoint.ValueType type)
|
|
TableModel |
asTableModel(String rowAxisTitle,
int rowAxis,
int columnAxis,
DataPoint.ValueType type)
|
|
void |
clearData()
|
|
DataMatrix<T> |
clone()
|
|
DataMatrix<? super T> |
getAdditionalMatrix(int number)
|
|
Collection<DataMatrix<? super T>> |
getAdditionalMatrixes()
returns an unmodifiable view of the additional matrixes |
|
String[] |
getAxisNames()
|
|
HashMap<Object,BigDecimal> |
getAxisTopValues(int axis,
DataPoint.ValueType type,
int maxEntries,
Object remainderKey)
|
|
HashMap<Object,BigDecimal> |
getAxisTopValues(String axis,
DataPoint.ValueType type,
int maxEntries,
Object remainderKey)
|
|
HashMap<Object,DataPoint> |
getAxisTotals(int axis)
|
|
HashMap<Object,DataPoint> |
getAxisTotals(String axisName)
|
|
Set<?> |
getAxisValues(int axis)
|
|
Set<?> |
getAxisValues(String axisName)
|
|
Map<List<Object>,DataPoint> |
getDataMap()
provides an unmodifiable view of the embedded data |
|
DataPoint |
getDataPoint(List<?> vector)
|
|
DataPoint |
getDataPoint(Object... vector)
|
|
Filter<? super T> |
getFilter()
|
|
int |
getIndexForAxis(String axisName)
|
|
int |
getNumberOfAdditionalMatrixes()
|
|
DataParser<? super T> |
getParser()
|
|
List<Object> |
getPathFor(T entry)
|
|
PropertyChangeListener[] |
getPropertyChangeListeners()
|
|
DataPoint |
getTotal()
|
|
DataPoint |
getTotal(int axis,
Object axisValue)
|
|
static boolean |
isCompatible(DataParser<?> p1,
DataParser<?> p2)
|
|
static
|
loadMatrix(DataMatrix<T> matrix,
DBClassStore<? extends T> store,
Filter<? super T> filter,
Monitor mon)
min, max of the given logger must be set explicitly |
|
protected void |
processElement(T entry)
processes the given entry on this and the additional matrixes. |
|
void |
removeAllAdditionalMatrixes()
|
|
boolean |
removeMatrix(DataMatrix<? super T> matrix)
|
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
|
void |
setFilter(Filter<? super T> filter)
|
|
protected DataPoint |
setRawData(List<Object> vector,
DataPoint dp)
allows to directly set a DataPoint with a pre-defined data vector; additional matrixes are not effected |
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataMatrix(DataParser<? super T> parser)
public DataMatrix(DataParser<? super T> parser,
Filter<? super T> filter)
public DataMatrix(TimeDataGrid<T> grid)
| Method Detail |
|---|
public DataMatrix<T> clone()
clone in class Objectpublic void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public PropertyChangeListener[] getPropertyChangeListeners()
public String[] getAxisNames()
public DataParser<? super T> getParser()
public Filter<? super T> getFilter()
public void setFilter(Filter<? super T> filter)
public DataMatrix<T> add(DataMatrix<T> other)
Addable
add in interface Addable<DataMatrix<T>>public void addData(DataMatrix<?> other)
add(DataMatrix), only that it is applied to this instance)
public DataMatrix<? super T> getAdditionalMatrix(int number)
public Collection<DataMatrix<? super T>> getAdditionalMatrixes()
public boolean addMatrix(DataMatrix<? super T> matrix)
public boolean removeMatrix(DataMatrix<? super T> matrix)
public void removeAllAdditionalMatrixes()
public int getNumberOfAdditionalMatrixes()
public void clearData()
public Map<List<Object>,DataPoint> getDataMap()
public static <T extends DBEntry> void loadMatrix(DataMatrix<T> matrix,
DBClassStore<? extends T> store,
Filter<? super T> filter,
Monitor mon)
throws DatabaseException
DatabaseExceptionpublic void addEntry(T entry)
public void addData(T... entries)
public void addData(Enumeration<? extends T> e)
public void addData(Enumeration<? extends T> e,
Monitor mon)
protected void processElement(T entry)
public List<Object> getPathFor(T entry)
public DataPoint addRawData(Number n,
Object... vector)
public DataPoint addRawData(List<Object> vector,
Number n)
throws IllegalArgumentException
IllegalArgumentException
protected DataPoint addRawData(List<Object> vector,
Number n,
boolean validate)
throws IllegalArgumentException
IllegalArgumentException
protected DataPoint setRawData(List<Object> vector,
DataPoint dp)
throws IllegalArgumentException
IllegalArgumentExceptionpublic DataPoint getDataPoint(Object... vector)
public DataPoint getDataPoint(List<?> vector)
public DataPoint getTotal(int axis,
Object axisValue)
public DataPoint getTotal()
public int getIndexForAxis(String axisName)
public Set<?> getAxisValues(String axisName)
public Set<?> getAxisValues(int axis)
public DataMatrix<T> aggregate(String... axises)
public DataMatrix<T> aggregate(int... axises)
aggregatedDataMap(int...)public HashMap<List<Object>,DataPoint> aggregatedDataMap(int... axises)
aggregate(int...)
public DataMatrix<T> aggregateTopAxisValues(String axis,
Object remainderKey,
int maxEntries,
DataPoint.ValueType type)
public DataMatrix<T> aggregateTopAxisValues(int axis,
Object remainderKey,
int maxEntries,
DataPoint.ValueType type)
public HashMap<Object,DataPoint> getAxisTotals(String axisName)
public HashMap<Object,DataPoint> getAxisTotals(int axis)
public HashMap<Object,BigDecimal> getAxisTopValues(String axis,
DataPoint.ValueType type,
int maxEntries,
Object remainderKey)
public HashMap<Object,BigDecimal> getAxisTopValues(int axis,
DataPoint.ValueType type,
int maxEntries,
Object remainderKey)
public TableModel asTableModel(String rowAxisTitle,
int rowAxis,
int columnAxis,
DataPoint.ValueType type)
public static boolean isCompatible(DataParser<?> p1,
DataParser<?> p2)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||