Author: mes
Date: 2011-01-23 16:57:18 -0800 (Sun, 23 Jan 2011)
New Revision: 23566
Modified:
core3/viewmodel-api/trunk/src/main/java/org/cytoscape/view/model/VisualLexicon.java
Log:
added rudimentary visualproperty lookup
Modified:
core3/viewmodel-api/trunk/src/main/java/org/cytoscape/view/model/VisualLexicon.java
===================================================================
---
core3/viewmodel-api/trunk/src/main/java/org/cytoscape/view/model/VisualLexicon.java
2011-01-24 00:56:45 UTC (rev 23565)
+++
core3/viewmodel-api/trunk/src/main/java/org/cytoscape/view/model/VisualLexicon.java
2011-01-24 00:57:18 UTC (rev 23566)
@@ -64,8 +64,21 @@
*
*/
Set<VisualProperty<?>> getAllVisualProperties();
+
+ /**
+ * Returns the appropriate visual property for the descriptive
+ * string. The string is generally expected to be descriptive
identifier
+ * from a file format (e.g. XGMML, GML) that can be mapped to a
VisualProperty
+ * by the implementer of the VisualLexicon. This method will return
null if
+ * no match is found.
+ * @param type The type of the visual property sought, which should
+ * (in general) be CyNode.class, CyEdge.class, or CyNetwork.class.
+ * @param identifier A string identifying a particular visual property.
+ * @return A VisualProperty identified by the input string or null if no
+ * match is found.
+ */
+ VisualProperty<?> lookup(Class<?> type, String identifier);
-
/**
* Get a tree node in for the given VisualProperty.
*
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.