Author: pwang
Date: 2010-07-14 10:53:57 -0700 (Wed, 14 Jul 2010)
New Revision: 20930
Modified:
cytoscape/trunk/src/cytoscape/data/readers/XGMMLReader.java
Log:
Fixed bug#0002257: Cytoscape does not read node and font sizes from XGMML
Modified: cytoscape/trunk/src/cytoscape/data/readers/XGMMLReader.java
===================================================================
--- cytoscape/trunk/src/cytoscape/data/readers/XGMMLReader.java 2010-07-14
17:04:55 UTC (rev 20929)
+++ cytoscape/trunk/src/cytoscape/data/readers/XGMMLReader.java 2010-07-14
17:53:57 UTC (rev 20930)
@@ -541,7 +541,9 @@
// These are saved in the exported XGMML, but it's not clear
how they get set
if (buildStyle &&
XGMMLParser.getAttributeNS(graphics,"nodeLabelFont", CY_NAMESPACE) != null) {
String nodeLabelFont =
XGMMLParser.getAttributeNS(graphics,"nodeLabelFont", CY_NAMESPACE);
- graphStyle.addProperty(nodeID,
VisualPropertyType.NODE_FONT_FACE, nodeLabelFont);
+
+ String[] items = nodeLabelFont.split("-"); // e.g.
nodeLabelFont = "Arial-0-24"
+ graphStyle.addProperty(nodeID,
VisualPropertyType.NODE_FONT_SIZE, items[2]);
}
if (buildStyle &&
XGMMLParser.getAttributeNS(graphics,"borderLineType", CY_NAMESPACE) != null) {
--
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.