|
Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.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
|
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)
|
static double |
getNodeAttributeDoubleValue(Node node,
String attribute)
|
static int |
getNodeAttributeID(String attribute)
|
static Object |
getNodeAttributeObjectValue(int node_index,
String attribute)
|
static Object |
getNodeAttributeObjectValue(Node node,
String attribute)
|
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)
|
static String |
getNodeAttributeStringValue(Node node,
String attribute)
|
static int |
getNodeAttributeType(String attribute)
|
static Object |
getNodeAttributeValue(int node_index,
int att_id)
|
static Object |
getNodeAttributeValue(Node node,
String attribute)
|
static int |
setNodeAttributeDoubleValue(int node_index,
int att_id,
double value)
|
static int |
setNodeAttributeDoubleValue(int node_index,
String attribute,
double value)
|
static int |
setNodeAttributeDoubleValue(Node node,
String attribute,
double value)
|
static int |
setNodeAttributeObjectValue(int node_index,
int att_id,
Object value)
|
static int |
setNodeAttributeObjectValue(int node_index,
String attribute,
Object value)
|
static int |
setNodeAttributeObjectValue(Node node,
String attribute,
Object value)
|
static int |
setNodeAttributeStringValue(int node_index,
int att_id,
String value)
|
static int |
setNodeAttributeStringValue(int node_index,
String attribute,
String value)
|
static int |
setNodeAttributeStringValue(Node node,
String attribute,
String value)
|
static int |
setNodeAttributeValue(Node node,
String attribute,
Object value)
|
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 |
---|
equals, 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
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)
public static int getNodeAttributeID(String attribute)
public static int setNodeAttributeValue(Node node, String attribute, Object value)
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)
public static int setNodeAttributeObjectValue(Node node, String attribute, Object value)
public static int setNodeAttributeObjectValue(int node_index, int att_id, Object value)
public static int setNodeAttributeDoubleValue(int node_index, String attribute, double value)
public static int setNodeAttributeDoubleValue(Node node, String attribute, double value)
public static int setNodeAttributeDoubleValue(int node_index, int att_id, double value)
public static int setNodeAttributeStringValue(int node_index, String attribute, String value)
public static int setNodeAttributeStringValue(Node node, String attribute, String value)
public static int setNodeAttributeStringValue(int node_index, int att_id, String value)
public static Object getNodeAttributeValue(Node node, String attribute)
public static Object getNodeAttributeValue(int node_index, int att_id)
public static Object getNodeAttributeObjectValue(Node node, String attribute)
public static String getNodeAttributeStringValue(Node node, String attribute)
public static double getNodeAttributeDoubleValue(Node node, String attribute)
public static Object getNodeAttributeObjectValue(int node_index, String attribute)
public static String getNodeAttributeStringValue(int node_index, String attribute)
public static double getNodeAttributeDoubleValue(int node_index, String attribute)
public static String[] getNodeAttributes(int[] node_indices)
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |