Author: kono
Date: 2011-06-09 18:49:21 -0700 (Thu, 09 Jun 2011)
New Revision: 25704
Modified:
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/FontVisualProperty.java
Log:
Fixed wrong range values. Font range accepts all fonts.
Modified:
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/FontVisualProperty.java
===================================================================
---
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/FontVisualProperty.java
2011-06-10 01:36:41 UTC (rev 25703)
+++
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/FontVisualProperty.java
2011-06-10 01:49:21 UTC (rev 25704)
@@ -59,7 +59,12 @@
for(Font f: allFonts)
fontSet.add(f.deriveFont(DEF_FONT_SIZE));
- FONT_RANGE = new DiscreteRange<Font>(Font.class,fontSet);
+ FONT_RANGE = new DiscreteRange<Font>(Font.class, fontSet) {
+ // Takes any String as valid value.
+ @Override public boolean validate(Font value) {
+ return true;
+ }
+ };
}
public FontVisualProperty(final Font def, final String id,
--
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.