|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Column
Column implements one column in tabular data. It constains the data, name, measurement, index and class values of column.
Constructor Summary | |
Column(int attrType,
int rowCnt)
Constructor creates array for data of the column. |
Method Summary | |
void |
addLimitAttribute(int AttrNo)
|
void |
dropLimitAttribute(int AttrNo)
|
boolean |
getBoolean(int rowNumber)
Returns the value of given row. |
int |
getClass(int rowNumber)
Returns the value of given row. |
int |
getColumnType()
Method returns the type of the column. |
double |
getDouble(int rowNumber)
Returns the value of given row. |
Index |
getIndex(int attrNo)
Method returns index on the column. |
boolean[] |
getLimitAttributes()
|
java.lang.String |
getLimitAttributesAsString()
|
long |
getLong(int rowNumber)
Returns the value of given row. |
int |
getMaxClassSelected()
|
double |
getMaxDouble()
Returns the maximum value of attribute. |
double |
getMaxDoubleSelected()
|
long |
getMaxLong()
Returns the maximum value of attribute. |
long |
getMaxLongSelected()
|
java.lang.String |
getMeasurement()
Method returns the measurement of the column. |
int |
getMinClassSelected()
|
double |
getMinDouble()
Returns the minimum value of attribute. |
double |
getMinDoubleSelected()
|
long |
getMinLong()
Returns the minimum value of attribute. |
long |
getMinLongSelected()
|
java.lang.String |
getName()
Method returns the name of the column. |
int |
getNumberofClasses()
Method returns the number of the class values. |
java.util.Vector |
getSelectionVector()
Returns the selected values in a Vector. |
java.lang.String |
getSelectionVectorAsString()
Returns the selected values as a String. |
java.lang.String |
getValueofClass(int classNo)
Method returns the value of a class value. |
boolean |
hasLimitAttribute()
|
void |
initializeClasses(int cCount)
Method creates array for class values. |
void |
initLimitAttributes(int attrCount)
|
boolean |
isSelected()
Tells if something is selected from this column. |
boolean |
isSelectedValue(double value)
Tells if the given value is included in the selected values. |
boolean |
isSelectedValue(int value)
Tells if the given value is included in the selected values. |
boolean |
isSelectedValue(long value)
Tells if the given value is included in the selected values. |
boolean |
removeColSelected(double min,
double max)
Removes selections from the given range. |
boolean |
removeColSelected(int min,
int max)
Removes selections from the given range. |
boolean |
removeColSelected(long min,
long max)
Removes selections from the given range. |
void |
setBoolean(int rowNumber,
boolean value)
Sets the value of attribute on given row. |
void |
setClass(int rowNumber,
int value)
Sets the value of attribute on given row. |
void |
setColSelected(boolean keepSelection)
Sets the Column's selection flag and possibly clears the selected values. |
void |
setColSelected(double min,
double max)
Adds a new selection to this column. |
void |
setColSelected(int min,
int max)
Adds a new selection to this column. |
void |
setColSelected(long min,
long max)
Adds a new selection to this column. |
void |
setDouble(int rowNumber,
double value)
Sets the value of attribute on given row. |
void |
setLong(int rowNumber,
long value)
Sets the value of attribute on given row. |
void |
setMeasurement(java.lang.String value)
Method sets the measurement of the column. |
void |
setName(java.lang.String value)
Method sets the name of the column. |
void |
setValueofClass(int classNo,
java.lang.String value)
Method is used to setting the value of a class value. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Column(int attrType, int rowCnt)
attrType
- - Attribute type 0= long, 1=double, 2=class, 3=booleanrowCnt
- - The number of datarows.Method Detail |
public Index getIndex(int attrNo)
attrNo
- - The number of current attribute (column).public void initializeClasses(int cCount)
cCount
- - The number of class values.public int getNumberofClasses()
public void setValueofClass(int classNo, java.lang.String value)
classNo
- - The number of the class value.value
- - The corresponding text.public java.lang.String getValueofClass(int classNo)
classNo
- - The number of the class value.public void setName(java.lang.String value)
value
- - The name of the column.public java.lang.String getName()
public void setMeasurement(java.lang.String value)
value
- - The name of the measurement of the column.public java.lang.String getMeasurement()
public int getColumnType()
public void setLong(int rowNumber, long value)
rowNumber
- - The number of the row value is added.value
- - The value to be added.public void setBoolean(int rowNumber, boolean value)
rowNumber
- - The number of the row value is added.value
- - The value to be added.public void setDouble(int rowNumber, double value)
rowNumber
- - The number of the row value is added.value
- - The value to be added.public void setClass(int rowNumber, int value)
rowNumber
- - The number of the row value is added.value
- - The value to be added.public long getLong(int rowNumber)
rowNumber
- - The number of the row value is added.public double getDouble(int rowNumber)
rowNumber
- - The number of the row value is added.public int getClass(int rowNumber)
rowNumber
- - The number of the row value is added.public boolean getBoolean(int rowNumber)
rowNumber
- - The number of the row value is added.public long getMinLong()
public long getMaxLong()
public double getMinDouble()
public double getMaxDouble()
public void setColSelected(boolean keepSelection)
keepSelection
- - False removes selections, true just sets the selected-flag.public void setColSelected(long min, long max)
min
- - min value.max
- - max value.public void setColSelected(double min, double max)
min
- - min value.max
- - max value.public void setColSelected(int min, int max)
min
- - min value.max
- - max value.public boolean removeColSelected(long min, long max)
min
- - min value.max
- - max value.public boolean removeColSelected(double min, double max)
min
- - min value.max
- - max value.public boolean removeColSelected(int min, int max)
min
- - min value.max
- - max value.public boolean isSelectedValue(long value)
value
- - Value to be inspected.public boolean isSelectedValue(double value)
value
- - Value to be inspected.public boolean isSelectedValue(int value)
value
- - Value to be inspected.public boolean isSelected()
public java.util.Vector getSelectionVector()
public java.lang.String getSelectionVectorAsString()
public long getMinLongSelected()
public long getMaxLongSelected()
public double getMinDoubleSelected()
public double getMaxDoubleSelected()
public int getMinClassSelected()
public int getMaxClassSelected()
public void initLimitAttributes(int attrCount)
public void addLimitAttribute(int AttrNo)
public boolean[] getLimitAttributes()
public java.lang.String getLimitAttributesAsString()
public void dropLimitAttribute(int AttrNo)
public boolean hasLimitAttribute()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |