public interface Element extends ElementProperties
Modifier and Type | Method and Description |
---|---|
boolean |
addInterval(Interval interval)
Adds an interval.
|
boolean |
addTimestamp(double timestamp)
Adds a timestamp.
|
void |
clearAttributes()
Clears all attribute values.
|
Object |
getAttribute(Column column)
Gets the attribute for the given column.
|
Object |
getAttribute(Column column,
double timestamp)
Gets the attribute for the given column and timestamp.
|
Object |
getAttribute(Column column,
GraphView view)
Gets the attribute for the given column and graph view.
|
Object |
getAttribute(Column column,
Interval interval)
Gets the attribute for the given column and interval.
|
Object |
getAttribute(String key)
Gets the attribute for the given key.
|
Object |
getAttribute(String key,
double timestamp)
Gets the attribute for the given key and timestamp.
|
Object |
getAttribute(String key,
GraphView view)
Gets the attribute for the given key and graph view.
|
Object |
getAttribute(String key,
Interval interval)
Gets the attribute for the given key and interval.
|
ColumnIterable |
getAttributeColumns()
Returns the columns.
|
Set<String> |
getAttributeKeys()
Returns the column identifier keys.
|
Object[] |
getAttributes()
Returns all the attribute values in an array.
|
Iterable<Map.Entry> |
getAttributes(Column column)
Returns an iterable over all the keys and values over time for the given
column.
|
Object |
getId()
Returns the identifier.
|
Interval[] |
getIntervals()
Returns all the intervals this element belong to.
|
String |
getLabel()
Returns the label.
|
int |
getStoreId()
Returns the location of this element in the store.
|
Table |
getTable()
Returns the table the element is associated with.
|
double[] |
getTimestamps()
Returns all the timestamps this element belong to.
|
boolean |
hasInterval(Interval interval)
Returns true if this element has the given interval.
|
boolean |
hasTimestamp(double timestamp)
Returns true if this element has the given timestamp.
|
Object |
removeAttribute(Column column)
Removes the attribute at the given column.
|
Object |
removeAttribute(Column column,
double timestamp)
Removes the attribute at the given column and timestamp.
|
Object |
removeAttribute(Column column,
Interval interval)
Removes the attribute at the given column and interval.
|
Object |
removeAttribute(String key)
Removes the attribute at the given key.
|
Object |
removeAttribute(String key,
double timestamp)
Removes the attribute at the given key and timestamp.
|
Object |
removeAttribute(String key,
Interval interval)
Removes the attribute at the given key and interval.
|
boolean |
removeInterval(Interval interval)
Removes a interval.
|
boolean |
removeTimestamp(double timestamp)
Removes a timestamp.
|
void |
setAttribute(Column column,
Object value)
Sets the attribute with the given column and value.
|
void |
setAttribute(Column column,
Object value,
double timestamp)
Sets the attribute at the given column and timestamp.
|
void |
setAttribute(Column column,
Object value,
Interval interval)
Sets the attribute at the given column and interval.
|
void |
setAttribute(String key,
Object value)
Sets the attribute with the given key and value.
|
void |
setAttribute(String key,
Object value,
double timestamp)
Sets the attribute at the given key and timestamp.
|
void |
setAttribute(String key,
Object value,
Interval interval)
Sets the attribute at the given key and interval.
|
void |
setLabel(String label)
Sets the label.
|
Object getId()
String getLabel()
Object getAttribute(String key)
key
- column's keyObject getAttribute(Column column)
column
- columnObject getAttribute(String key, double timestamp)
key
- column's keytimestamp
- timestampObject getAttribute(Column column, double timestamp)
column
- columntimestamp
- timestampObject getAttribute(String key, Interval interval)
key
- column's keyinterval
- intervalObject getAttribute(Column column, Interval interval)
column
- columninterval
- intervalObject getAttribute(String key, GraphView view)
key
- column's keyview
- graph viewObject getAttribute(Column column, GraphView view)
column
- columnview
- graph viewIterable<Map.Entry> getAttributes(Column column)
column
- columnObject[] getAttributes()
Some attribute values may be null.
Set<String> getAttributeKeys()
ColumnIterable getAttributeColumns()
int getStoreId()
Object removeAttribute(String key)
key
- keyObject removeAttribute(Column column)
column
- columnObject removeAttribute(String key, double timestamp)
key
- keytimestamp
- double timestampObject removeAttribute(Column column, double timestamp)
column
- columntimestamp
- timestampObject removeAttribute(String key, Interval interval)
key
- keyinterval
- intervalObject removeAttribute(Column column, Interval interval)
column
- columninterval
- intervalvoid setLabel(String label)
label
- labelvoid setAttribute(String key, Object value)
key
- column's keyvalue
- value to setvoid setAttribute(Column column, Object value)
column
- columnvalue
- value to setvoid setAttribute(String key, Object value, double timestamp)
key
- column's keyvalue
- value to settimestamp
- timestampvoid setAttribute(Column column, Object value, double timestamp)
column
- columnvalue
- value to settimestamp
- timestampvoid setAttribute(String key, Object value, Interval interval)
key
- column's keyvalue
- value to setinterval
- intervalvoid setAttribute(Column column, Object value, Interval interval)
column
- columnvalue
- value to setinterval
- intervalboolean addTimestamp(double timestamp)
timestamp
- timestamp to addboolean removeTimestamp(double timestamp)
timestamp
- timestamp to removeboolean hasTimestamp(double timestamp)
timestamp
- timestampdouble[] getTimestamps()
boolean addInterval(Interval interval)
interval
- interval to addboolean removeInterval(Interval interval)
interval
- interval to removeboolean hasInterval(Interval interval)
interval
- intervalInterval[] getIntervals()
void clearAttributes()
Table getTable()
Copyright © 2007–2017 Gephi Consortium. All rights reserved.