Author: mes
Date: 2010-01-13 17:14:52 -0800 (Wed, 13 Jan 2010)
New Revision: 18900

Modified:
   cytoscape/trunk/src/cytoscape/visual/VisualPropertyDependency.java
Log:
added a title field

Modified: cytoscape/trunk/src/cytoscape/visual/VisualPropertyDependency.java
===================================================================
--- cytoscape/trunk/src/cytoscape/visual/VisualPropertyDependency.java  
2010-01-13 23:42:04 UTC (rev 18899)
+++ cytoscape/trunk/src/cytoscape/visual/VisualPropertyDependency.java  
2010-01-14 01:14:52 UTC (rev 18900)
@@ -43,16 +43,18 @@
         * An enum that lists the possible dependencies.
         */
        public enum Definition {
-               NODE_SIZE_LOCKED("nodeSizeLocked",true),
-               ARROW_COLOR_MATCHES_EDGE("arrowColorMatchesEdge",false),
+               NODE_SIZE_LOCKED("nodeSizeLocked",true, "Lock Node 
Width/Height"),
+               ARROW_COLOR_MATCHES_EDGE("arrowColorMatchesEdge",false,"Make 
Arrow Color Match Edge Color"),
                ;
 
                private String propKey;
                private boolean defaultValue;
+               private String title;
 
-               private Definition(String propKey, boolean defaultValue) {
+               private Definition(String propKey, boolean defaultValue, String 
title) {
                        this.propKey = propKey;
                        this.defaultValue = defaultValue;
+                       this.title = title;
                }
 
                /**
@@ -68,6 +70,13 @@
                public boolean getDefault() {
                        return defaultValue;
                }
+
+               /**
+                * Will return a human readable title suitable for use in a 
user interface.
+                */
+               public String getTitle() {
+                       return title;
+               }
        }
 
        /**

-- 
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.


Reply via email to