|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.utils.ChangeManager infovis.column.AbstractColumn infovis.column.ColumnProxy infovis.column.BasicEdgeColumn
public class BasicEdgeColumn
Column for graph edge table to access vertex attributes.
Field Summary |
---|
Fields inherited from class infovis.column.AbstractColumn |
---|
MODIFIED_ALL, MODIFIED_NONE |
Fields inherited from interface infovis.metadata.Constants |
---|
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
Constructor Summary | |
---|---|
BasicEdgeColumn(Graph graph,
Column vertexColumn,
boolean usingFirstVertex)
Create an edge column that returns the value of its related vertex column, either from its firstVertex or secondVertex. |
Method Summary | |
---|---|
int |
firstValidRow()
Returns the first valid row (not undefined) of this column. |
String |
getValueAt(int index)
Returns the String representation of the element at the specified position in this column or null if
the element is undefined. The representation is
generated by the current format. |
int |
getVertex(int edge)
Returns the considered vertex. |
boolean |
isUsingFirstVertex()
Returns true if the first vertex is considere, false if the second vertex is considered. |
boolean |
isValueUndefined(int row)
Returns true if the ith value is undefined. |
RowIterator |
iterator()
Returns a RowIterator over all the valid rows of this column. |
int |
lastValidRow()
Returns the last valid row (not undefined) of this column. |
void |
setUsingFirstVertex(boolean usingFirstVertex)
Sets the vertex considered. |
void |
setValueAt(int index,
String element)
Replaces the element at the specified position in this column with the element specified in its String representation or sets if undefined if the element is null
It will be read and translated using the Format. A null value
sets the value to undefined. The column is extended if
needed. |
int |
size()
Returns the number of elements in this column. |
Methods inherited from class infovis.column.ColumnProxy |
---|
addValue, addValueOrNull, capacity, clear, compare, dispose, ensureCapacity, getClientProperty, getFormat, getMaxIndex, getMetadata, getMinIndex, getName, getValueClass, hasUndefinedValue, isEmpty, isInternal, setFormat, setName, setSize, setValueOrNullAt, setValueUndefined, stateChanged |
Methods inherited from class infovis.column.AbstractColumn |
---|
addChangeListener, compareValues, computeValueMap, computeValueMap, equalObj, equals, getLastModifiedRow, toString |
Methods inherited from class infovis.utils.ChangeManager |
---|
disableNotify, enableNotify, getModCount, removeChangeListener |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface infovis.Column |
---|
disableNotify, enableNotify, removeChangeListener |
Constructor Detail |
---|
public BasicEdgeColumn(Graph graph, Column vertexColumn, boolean usingFirstVertex)
graph
- the graphvertexColumn
- the associated vertex columnusingFirstVertex
- true if the firstVertex is used,
false if the secondVertex is used.infovis.graph
,
infovis.graph
Method Detail |
---|
public int getVertex(int edge)
edge
- the edge
public int size()
size
in interface Column
size
in class ColumnProxy
public boolean isValueUndefined(int row)
isValueUndefined
in interface Column
isValueUndefined
in interface RowComparator
isValueUndefined
in class ColumnProxy
row
- the index
public String getValueAt(int index)
null
if
the element is undefined. The representation is
generated by the current format.
getValueAt
in interface Column
getValueAt
in class ColumnProxy
index
- index of element representation to return.
null
if the element is undefined.public void setValueAt(int index, String element) throws ParseException
null
It will be read and translated using the Format. A null value
sets the value to undefined. The column is extended if
needed.
setValueAt
in interface Column
setValueAt
in class ColumnProxy
index
- index of element to replace.element
- element to be stored at the specified position.
ParseException
- if the specified string cannot be parsed.public int firstValidRow()
public int lastValidRow()
public RowIterator iterator()
iterator
in interface Column
iterator
in class ColumnProxy
public boolean isUsingFirstVertex()
public void setUsingFirstVertex(boolean usingFirstVertex)
usingFirstVertex
- true is should use first vertex
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |