Author: Christian Lopes
Date: 2011-05-12 14:40:45 -0700 (Thu, 12 May 2011)
New Revision: 25035
Modified:
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/RichVisualLexicon.java
Log:
Added proper lookup mappings to RichVisualLexicon
Modified:
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/RichVisualLexicon.java
===================================================================
---
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/RichVisualLexicon.java
2011-05-12 21:35:05 UTC (rev 25034)
+++
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/RichVisualLexicon.java
2011-05-12 21:40:45 UTC (rev 25035)
@@ -137,5 +137,42 @@
addVisualProperty(EDGE_UNSELECTED_PAINT, EDGE_PAINT);
addVisualProperty(EDGE_STROKE_SELECTED_PAINT,
EDGE_SELECTED_PAINT);
addVisualProperty(EDGE_STROKE_UNSELECTED_PAINT,
EDGE_UNSELECTED_PAINT);
+
+ createLookupMap();
}
+
+ private void createLookupMap() {
+ // XGMML:
+ addIdentifierMapping(CyNode.class, "type", NODE_SHAPE);
+ addIdentifierMapping(CyNode.class, "outline",
NODE_BORDER_PAINT);
+ addIdentifierMapping(CyNode.class, "width", NODE_BORDER_WIDTH);
+ addIdentifierMapping(CyNode.class, "borderLineType",
+ NODE_BORDER_LINE_TYPE);
+ addIdentifierMapping(CyNode.class, "nodeLabelFont",
+ NODE_LABEL_FONT_FACE);
+ addIdentifierMapping(CyNode.class, "nodeTransparency",
+ NODE_TRANSPARENCY);
+
+ addIdentifierMapping(CyEdge.class, "fill",
EDGE_STROKE_UNSELECTED_PAINT);
+ addIdentifierMapping(CyEdge.class, "edgeLineType",
EDGE_LINE_TYPE);
+ addIdentifierMapping(CyEdge.class, "edgeLabelFont",
+ EDGE_LABEL_FONT_FACE);
+
+ // 2.x VizMap Properties:
+ addIdentifierMapping(CyNode.class, "nodeOpacity",
NODE_TRANSPARENCY);
+ addIdentifierMapping(CyNode.class, "nodeBorderColor",
NODE_BORDER_PAINT);
+ addIdentifierMapping(CyNode.class, "nodeLineWidth",
NODE_BORDER_WIDTH);
+ addIdentifierMapping(CyNode.class, "nodeLineStyle",
+ NODE_BORDER_LINE_TYPE);
+ addIdentifierMapping(CyNode.class, "nodeShape", NODE_SHAPE);
+ addIdentifierMapping(CyNode.class, "nodeFont",
NODE_LABEL_FONT_FACE);
+ addIdentifierMapping(CyNode.class, "nodeFontSize",
NODE_LABEL_FONT_SIZE);
+ addIdentifierMapping(CyNode.class, "nodeToolTip", NODE_TOOLTIP);
+
+ addIdentifierMapping(CyEdge.class, "edgeToolTip", EDGE_TOOLTIP);
+ addIdentifierMapping(CyEdge.class, "edgeFont",
EDGE_LABEL_FONT_FACE);
+ addIdentifierMapping(CyEdge.class, "edgeFontSize",
EDGE_LABEL_FONT_SIZE);
+
+ // TODO add more!
+ }
}
--
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.