Author: mes
Date: 2011-01-23 16:58:13 -0800 (Sun, 23 Jan 2011)
New Revision: 23568

Modified:
   
core3/ding-presentation-impl/trunk/src/main/java/org/cytoscape/ding/impl/DVisualLexicon.java
Log:
added rudimentary visual property lookup

Modified: 
core3/ding-presentation-impl/trunk/src/main/java/org/cytoscape/ding/impl/DVisualLexicon.java
===================================================================
--- 
core3/ding-presentation-impl/trunk/src/main/java/org/cytoscape/ding/impl/DVisualLexicon.java
        2011-01-24 00:57:49 UTC (rev 23567)
+++ 
core3/ding-presentation-impl/trunk/src/main/java/org/cytoscape/ding/impl/DVisualLexicon.java
        2011-01-24 00:58:13 UTC (rev 23568)
@@ -386,7 +386,17 @@
                addVisualProperty(EDGE_LABEL_POSITION, EDGE);
                addVisualProperty(EDGE_LABEL_FONT_FACE, EDGE);
                addVisualProperty(EDGE_LABEL_FONT_SIZE, EDGE);  
+
+               createLookupMap();
        }
+
+       private void createLookupMap() {
+               
addIdentifierMapping(CyNode.class,"borderLineType",NODE_BORDER_STROKE);
+               
addIdentifierMapping(CyNode.class,"nodeLabelFont",NODE_LABEL_FONT_FACE);
+               
addIdentifierMapping(CyNode.class,"nodeTransparency",NODE_TRANSPARENCY);
+               addIdentifierMapping(CyNode.class,"outline",NODE_BORDER_PAINT);
+               // TODO add more!
+       }
        
        static Set<VisualProperty<?>> getGraphicsPositionVP() {
                return CG_POSITIONS;

-- 
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.

Reply via email to