Author: kono
Date: 2011-06-16 18:18:29 -0700 (Thu, 16 Jun 2011)
New Revision: 25787
Modified:
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/BooleanVisualProperty.java
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/MinimalVisualLexicon.java
Log:
Ignore flag can be set in constructor. This is required for selection.
Modified:
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/BooleanVisualProperty.java
===================================================================
---
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/BooleanVisualProperty.java
2011-06-17 00:52:08 UTC (rev 25786)
+++
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/BooleanVisualProperty.java
2011-06-17 01:18:29 UTC (rev 25787)
@@ -54,9 +54,14 @@
}
public BooleanVisualProperty(final Boolean def, final String id, final
String name, final Class<?> targetDataType) {
- super(def, BOOLEAN_RANGE, id,name, targetDataType);
+ this(def, id, name, false, targetDataType);
}
+ public BooleanVisualProperty(final Boolean def, final String id, final
String name, final Boolean ignoreDefault, final Class<?> targetDataType) {
+ super(def, BOOLEAN_RANGE, id, name, targetDataType);
+ this.shouldIgnoreDefault = ignoreDefault;
+ }
+
public String toSerializableString(final Boolean value) {
return value.toString();
}
Modified:
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/MinimalVisualLexicon.java
===================================================================
---
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/MinimalVisualLexicon.java
2011-06-17 00:52:08 UTC (rev 25786)
+++
core3/presentation-api/trunk/src/main/java/org/cytoscape/view/presentation/property/MinimalVisualLexicon.java
2011-06-17 01:18:29 UTC (rev 25787)
@@ -126,7 +126,7 @@
true, "NODE_VISIBLE", "Node Visible", CyNode.class);
public static final VisualProperty<Boolean> NODE_SELECTED = new
BooleanVisualProperty(
- false, "NODE_SELECTED", "Node Selected", CyNode.class);
+ false, "NODE_SELECTED", "Node Selected", true,
CyNode.class);
// ///// Edge VP ///////
public static final VisualProperty<Paint> EDGE_PAINT = new
PaintVisualProperty(
@@ -147,7 +147,7 @@
true, "EDGE_VISIBLE", "Edge Visible", CyEdge.class);
public static final VisualProperty<Boolean> EDGE_SELECTED = new
BooleanVisualProperty(
- false, "EDGE_SELECTED", "Edge Selected", CyEdge.class);
+ false, "EDGE_SELECTED", "Edge Selected", true,
CyEdge.class);
// ////// Network VP ////////
public static final VisualProperty<Double> NETWORK_SCALE_FACTOR = new
DoubleVisualProperty(
--
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.