Author: kono
Date: 2011-03-04 15:24:12 -0800 (Fri, 04 Mar 2011)
New Revision: 24313
Modified:
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/TwoDVisualLexicon.java
Log:
Some range implementations had been changed to private/protected since they
should not be used outside of this package.
Modified:
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/TwoDVisualLexicon.java
===================================================================
---
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/TwoDVisualLexicon.java
2011-03-04 01:08:20 UTC (rev 24312)
+++
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/TwoDVisualLexicon.java
2011-03-04 23:24:12 UTC (rev 24313)
@@ -60,14 +60,14 @@
private static final Color MIN_COLOR = new Color(0, 0, 0);
private static final Color MAX_COLOR = new Color(0xFF, 0xFF, 0xFF);
- public static final Range<Paint> PAINT_RANGE = new
ContinuousRangeImpl<Paint>(Paint.class, MIN_COLOR, MAX_COLOR);
+ private static final Range<Paint> PAINT_RANGE = new
ContinuousRangeImpl<Paint>(Paint.class, MIN_COLOR, MAX_COLOR);
- public static final Set<String> STRING_SET = new HashSet<String>();
+ private static final Set<String> STRING_SET = new HashSet<String>();
// This will be used to for String VP which accepts any string values.
- public static final Range<String> ARBITRARY_STRING_RANGE = new
DiscreteRangeImpl<String>(String.class, STRING_SET);
+ private static final Range<String> ARBITRARY_STRING_RANGE = new
DiscreteRangeImpl<String>(String.class, STRING_SET);
- public static final Range<Double> ARBITRARY_DOUBLE_RANGE = new
ContinuousRangeImpl<Double>(Double.class, Double.NEGATIVE_INFINITY,
Double.POSITIVE_INFINITY);
- public static final Range<Double> NONE_ZERO_POSITIVE_DOUBLE_RANGE = new
ContinuousRangeImpl<Double>(Double.class, 0d, Double.POSITIVE_INFINITY, false,
true);
+ protected static final Range<Double> ARBITRARY_DOUBLE_RANGE = new
ContinuousRangeImpl<Double>(Double.class, Double.NEGATIVE_INFINITY,
Double.POSITIVE_INFINITY);
+ protected static final Range<Double> NONE_ZERO_POSITIVE_DOUBLE_RANGE =
new ContinuousRangeImpl<Double>(Double.class, 0d, Double.POSITIVE_INFINITY,
false, true);
// Top level nodes has null as parent, and will be pointed by parent
node.
// This is because all VPs are static objects.
--
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.