public class FwkImplicitColumnDataObserver extends FwkColumnDataObserver
| Modifier and Type | Field and Description |
|---|---|
protected int |
length |
protected int |
type |
static int |
TYPE_CONSTANT
The constant type.
|
static int |
TYPE_LINEAR
The constant type.
|
static int |
TYPE_SAW
The constant type.
|
protected double[] |
values |
changeManager, flags, globalFlag, globalFlagValid, suspended| Modifier | Constructor and Description |
|---|---|
protected |
FwkImplicitColumnDataObserver()
The constructor that receives the values.
|
|
FwkImplicitColumnDataObserver(double[] values,
int length,
int type)
The constructor that receives the values.
|
|
FwkImplicitColumnDataObserver(double[] values,
short[] flags,
int length,
int type)
The constructor that receives the values and the flags.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
The the value count.
|
short |
getFlagAt(int index)
Get a data flag.
|
java.lang.Class |
getNativeDatatype()
Get the data type of inner values.
|
java.lang.Object |
getNativeValues()
Get the inner values.
|
java.lang.Object |
getNativeValues(int lower,
int upper)
Get a range of the inner values.
|
double |
getValueAt(int index)
Get a data value.
|
boolean |
isImplicit()
Return a boolean whether the data is implicit defined.
|
void |
setFlagAt(int index,
short flag)
Set a flag
|
void |
setValueAt(int index,
double value)
Set a value
|
addDataItemChangeListener, createScale, getScale, isChangeManagerSuspended, release, removeDataItemChangeListener, setScale, suspendChangeManagerpublic static final int TYPE_CONSTANT
x[n] = apublic static final int TYPE_LINEAR
x[n] = a+b*(n-1)public static final int TYPE_SAW
x[n] = a+b*((n-1) mod c)protected double[] values
protected int length
protected int type
protected FwkImplicitColumnDataObserver()
values - the values.public FwkImplicitColumnDataObserver(double[] values,
int length,
int type)
values - the values that define the implicit observer.length - the length of the resulting dataset.type - the type of column. Use predefined types.public FwkImplicitColumnDataObserver(double[] values,
short[] flags,
int length,
int type)
values - the values that define the implicit observer.flags - the flags.length - the length of the resulting dataset.type - the type of column. Use predefined types.public short getFlagAt(int index)
getFlagAt in interface FwkColumnDataObserverInterfacegetFlagAt in class FwkColumnDataObserverindex - The index of the flag.FwkColumnAccessInterfacepublic void setFlagAt(int index,
short flag)
setFlagAt in interface FwkColumnDataObserverInterfacesetFlagAt in class FwkColumnDataObserverindex - the index of the flag to changed.flag - the new flag.FwkColumnAccessInterfacepublic double getValueAt(int index)
index - The index of the value.public void setValueAt(int index,
double value)
index - the index of the value to changed.value - the new value.public int getCount()
public boolean isImplicit()
isImplicit in interface FwkColumnDataObserverInterfaceisImplicit in class FwkColumnDataObserverpublic java.lang.Class getNativeDatatype()
public java.lang.Object getNativeValues()
public java.lang.Object getNativeValues(int lower,
int upper)
lower - the lower index of the range of interest.upper - the upper index of the range of interest.