public class TransposedDataSet extends Object implements DataSet
| Modifier and Type | Class and Description |
|---|---|
static class |
TransposedDataSet.TransposedDataSet3D
TODO: allow permutations to change number of grid dimensions, while enforcing contract, that all grid axes must
come before data axes.
|
| Modifier and Type | Field and Description |
|---|---|
protected DataSet |
dataSet |
protected int[] |
permutation |
| Modifier and Type | Method and Description |
|---|---|
AtomicBoolean |
autoNotification()
Set the automatic notification of invalidation listeners.
|
double |
get(int dimIndex,
int index)
Gets the x value of the data point with the index i
|
AxisDescription |
getAxisDescription(int dimIndex)
Return the axis description of the i-th axis.
|
List<AxisDescription> |
getAxisDescriptions() |
int |
getDataCount(int dimIndex)
Get the number of data points in the data set for a specific dimension.
|
String |
getDataLabel(int index)
Returns label of a data point specified by the index.
|
int |
getDimension() |
int |
getIndex(int dimIndex,
double value)
Gets the index of the data point closest to the given 'value' coordinate.
|
String |
getName()
Gets the name of the data set.
|
int[] |
getPermutation() |
String |
getStyle()
A string representation of the CSS style associated with this specific
DataSet. |
String |
getStyle(int index)
A string representation of the CSS style associated with this specific
DataSet data point. |
double |
getValue(int dimIndex,
double x)
Gets the interpolated y value of the data point for given x coordinate
|
double[] |
getValues(int dimIndex) |
boolean |
isTransposed() |
<D extends DataSet> |
lock() |
static TransposedDataSet |
permute(DataSet dataSet,
int[] permutation) |
DataSet |
recomputeLimits(int dimension) |
void |
setPermutation(int[] permutation) |
DataSet |
setStyle(String style)
A string representation of the CSS style associated with this specific
DataSet. |
void |
setTransposed(boolean transposed) |
static TransposedDataSet |
transpose(DataSet dataSet) |
static TransposedDataSet |
transpose(DataSet dataSet,
boolean transpose) |
List<EventListener> |
updateEventListener() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataCountaddListener, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListenerprotected final DataSet dataSet
protected int[] permutation
public AtomicBoolean autoNotification()
EventSourcetrue for automatic
notificationautoNotification in interface EventSourcepublic double get(int dimIndex,
int index)
DataSetpublic List<AxisDescription> getAxisDescriptions()
getAxisDescriptions in interface DataSetpublic AxisDescription getAxisDescription(int dimIndex)
DataSetgetAxisDescription in interface DataSetdimIndex - 0: X-Axis, 1: Y-Axis, ...public int getDataCount(int dimIndex)
DataSetgetDataCount in interface DataSetdimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')public String getDataLabel(int index)
DataSetgetDataLabel in interface DataSetindex - the data indexnull if none label has been specified for
this data point.public int getDimension()
getDimension in interface DataSetpublic int getIndex(int dimIndex,
double value)
DataSetpublic String getName()
DataSetpublic int[] getPermutation()
public String getStyle()
DataSetDataSet. This is analogous to the
"style" attribute of an HTML element. Note that, like the HTML style attribute, this variable contains style
properties and values and not the selector portion of a style rule.public String getStyle(int index)
DataSetDataSet data point. @see
#getStyle()public double getValue(int dimIndex,
double x)
DataSetpublic double[] getValues(int dimIndex)
public boolean isTransposed()
public <D extends DataSet> DataSetLock<D> lock()
lock in interface DataSetD - generics (fluent design)DataSetLockpublic DataSet recomputeLimits(int dimension)
recomputeLimits in interface DataSetpublic void setPermutation(int[] permutation)
public DataSet setStyle(String style)
DataSetDataSet. This is analogous to the
"style" attribute of an HTML element. Note that, like the HTML style attribute, this variable contains style
properties and values and not the selector portion of a style rule.public void setTransposed(boolean transposed)
public List<EventListener> updateEventListener()
updateEventListener in interface EventSourcepublic static TransposedDataSet permute(DataSet dataSet, int[] permutation)
public static TransposedDataSet transpose(DataSet dataSet)
public static TransposedDataSet transpose(DataSet dataSet, boolean transpose)
Copyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.