|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.data.NetworkData
public abstract class NetworkData
There is an event fired anytime that a value is modified, you need to be listener to the attribute name though.
Field Summary | |
---|---|
static int |
ATTRIBUTE_ALREADY_ASSIGNED
|
static int |
DOUBLE_TYPE
|
static String |
EDGE_ATTRIBUTE_ADDED
|
static String |
EDGE_ATTRIBUTE_REMOVED
|
static int |
INSANE_ATTRIBUTE_ID
|
static int |
INSANE_ATTRIBUTE_TYPE
|
static int |
NO_SUCH_ATTRIBUTE
|
static String |
NODE_ATTRIBUTE_ADDED
|
static String |
NODE_ATTRIBUTE_REMOVED
|
static int |
OBJECT_TYPE
|
protected static Object |
pcsO
|
static int |
STRING_TYPE
|
static int |
VALUE_NOT_A_DOUBLE
|
static int |
WRONG_ATTRIBUTE_TYPE
|
Constructor Summary | |
---|---|
NetworkData()
|
Method Summary | |
---|---|
static int |
addNodeAttribute(String attribute_name)
Attempts to add a new Attribute name, of Object type for nodes. |
static int |
addNodeAttribute(String attribute_name,
int attribute_type)
Attempts to add a new Attribute name, of given type for nodes. |
static double |
getNodeAttributeDoubleValue(int node_index,
String attribute)
DOCUMENT ME! |
static double |
getNodeAttributeDoubleValue(Node node,
String attribute)
DOCUMENT ME! |
static int |
getNodeAttributeID(String attribute)
DOCUMENT ME! |
static Object |
getNodeAttributeObjectValue(int node_index,
String attribute)
DOCUMENT ME! |
static Object |
getNodeAttributeObjectValue(Node node,
String attribute)
DOCUMENT ME! |
static String[] |
getNodeAttributes(int[] node_indices)
Returns all Attributes that one or more of the given nodes have values for. |
static String |
getNodeAttributeStringValue(int node_index,
String attribute)
DOCUMENT ME! |
static String |
getNodeAttributeStringValue(Node node,
String attribute)
DOCUMENT ME! |
static int |
getNodeAttributeType(String attribute)
DOCUMENT ME! |
static Object |
getNodeAttributeValue(int node_index,
int att_id)
DOCUMENT ME! |
static Object |
getNodeAttributeValue(Node node,
String attribute)
DOCUMENT ME! |
static int |
setNodeAttributeDoubleValue(int node_index,
int att_id,
double value)
DOCUMENT ME! |
static int |
setNodeAttributeDoubleValue(int node_index,
String attribute,
double value)
DOCUMENT ME! |
static int |
setNodeAttributeDoubleValue(Node node,
String attribute,
double value)
DOCUMENT ME! |
static int |
setNodeAttributeObjectValue(int node_index,
int att_id,
Object value)
DOCUMENT ME! |
static int |
setNodeAttributeObjectValue(int node_index,
String attribute,
Object value)
DOCUMENT ME! |
static int |
setNodeAttributeObjectValue(Node node,
String attribute,
Object value)
DOCUMENT ME! |
static int |
setNodeAttributeStringValue(int node_index,
int att_id,
String value)
DOCUMENT ME! |
static int |
setNodeAttributeStringValue(int node_index,
String attribute,
String value)
DOCUMENT ME! |
static int |
setNodeAttributeStringValue(Node node,
String attribute,
String value)
DOCUMENT ME! |
static int |
setNodeAttributeValue(Node node,
String attribute,
Object value)
DOCUMENT ME! |
static int |
setNodeAttributeValue(Node node,
String attribute,
Object value,
int attribute_type)
Attempts to set the value for a node, for a given attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String NODE_ATTRIBUTE_ADDED
public static String NODE_ATTRIBUTE_REMOVED
public static String EDGE_ATTRIBUTE_ADDED
public static String EDGE_ATTRIBUTE_REMOVED
public static int DOUBLE_TYPE
public static int STRING_TYPE
public static int OBJECT_TYPE
public static int NO_SUCH_ATTRIBUTE
public static int VALUE_NOT_A_DOUBLE
public static int INSANE_ATTRIBUTE_TYPE
public static int WRONG_ATTRIBUTE_TYPE
public static int INSANE_ATTRIBUTE_ID
public static int ATTRIBUTE_ALREADY_ASSIGNED
protected static Object pcsO
Constructor Detail |
---|
public NetworkData()
Method Detail |
---|
public static int addNodeAttribute(String attribute_name)
attribute_name
- the name of the new attribute
public static int addNodeAttribute(String attribute_name, int attribute_type)
attribute_name
- the name of the new attribute
public static int getNodeAttributeType(String attribute)
attribute
- DOCUMENT ME!
public static int getNodeAttributeID(String attribute)
attribute
- DOCUMENT ME!
public static int setNodeAttributeValue(Node node, String attribute, Object value)
node
- DOCUMENT ME!attribute
- DOCUMENT ME!value
- DOCUMENT ME!
public static int setNodeAttributeValue(Node node, String attribute, Object value, int attribute_type)
node
- the node who should be part of Cytoscapeattribute
- the name of this attributevalue
- the value, which must match the attribute typeattribute_type
- if this attribute has been previosly initialized, then this musht match that type. Otherwise the attribute will get initialized with this type.
{@link
- VALUE_NOT_A_DOUBLE} if the attribute_type was double and the value could be put into a Double.
{@link
- INSANE_ATTRIBUTE_TYPE} if the given attribute_type is not a supported one
{@link
- WRONG_ATTRIBUTE_TYPE} if the given attribute_type does not match the attribute_type of the attribute
{@link
- INSANE_ATTRIBUTE_ID} if the attribute does not existpublic static int setNodeAttributeObjectValue(int node_index, String attribute, Object value)
node_index
- DOCUMENT ME!attribute
- DOCUMENT ME!value
- DOCUMENT ME!
public static int setNodeAttributeObjectValue(Node node, String attribute, Object value)
node
- DOCUMENT ME!attribute
- DOCUMENT ME!value
- DOCUMENT ME!
public static int setNodeAttributeObjectValue(int node_index, int att_id, Object value)
node_index
- DOCUMENT ME!att_id
- DOCUMENT ME!value
- DOCUMENT ME!
public static int setNodeAttributeDoubleValue(int node_index, String attribute, double value)
node_index
- DOCUMENT ME!attribute
- DOCUMENT ME!value
- DOCUMENT ME!
public static int setNodeAttributeDoubleValue(Node node, String attribute, double value)
node
- DOCUMENT ME!attribute
- DOCUMENT ME!value
- DOCUMENT ME!
public static int setNodeAttributeDoubleValue(int node_index, int att_id, double value)
node_index
- DOCUMENT ME!att_id
- DOCUMENT ME!value
- DOCUMENT ME!
public static int setNodeAttributeStringValue(int node_index, String attribute, String value)
node_index
- DOCUMENT ME!attribute
- DOCUMENT ME!value
- DOCUMENT ME!
public static int setNodeAttributeStringValue(Node node, String attribute, String value)
node
- DOCUMENT ME!attribute
- DOCUMENT ME!value
- DOCUMENT ME!
public static int setNodeAttributeStringValue(int node_index, int att_id, String value)
node_index
- DOCUMENT ME!att_id
- DOCUMENT ME!value
- DOCUMENT ME!
public static Object getNodeAttributeValue(Node node, String attribute)
node
- DOCUMENT ME!attribute
- DOCUMENT ME!
public static Object getNodeAttributeValue(int node_index, int att_id)
node_index
- DOCUMENT ME!att_id
- DOCUMENT ME!
public static Object getNodeAttributeObjectValue(Node node, String attribute)
node
- DOCUMENT ME!attribute
- DOCUMENT ME!
public static String getNodeAttributeStringValue(Node node, String attribute)
node
- DOCUMENT ME!attribute
- DOCUMENT ME!
public static double getNodeAttributeDoubleValue(Node node, String attribute)
node
- DOCUMENT ME!attribute
- DOCUMENT ME!
public static Object getNodeAttributeObjectValue(int node_index, String attribute)
node_index
- DOCUMENT ME!attribute
- DOCUMENT ME!
public static String getNodeAttributeStringValue(int node_index, String attribute)
node_index
- DOCUMENT ME!attribute
- DOCUMENT ME!
public static double getNodeAttributeDoubleValue(int node_index, String attribute)
node_index
- DOCUMENT ME!attribute
- DOCUMENT ME!
public static String[] getNodeAttributes(int[] node_indices)
|
Cytoscape 2.8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |