Author: paperwing
Date: 2012-02-12 18:55:06 -0800 (Sun, 12 Feb 2012)
New Revision: 28246

Modified:
   
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/RenderingEngineFactoryManager.java
Log:
Added methods for changing the default renderer

Modified: 
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/RenderingEngineFactoryManager.java
===================================================================
--- 
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/RenderingEngineFactoryManager.java
        2012-02-13 02:49:32 UTC (rev 28245)
+++ 
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/RenderingEngineFactoryManager.java
        2012-02-13 02:55:06 UTC (rev 28246)
@@ -1,5 +1,7 @@
 package org.cytoscape.view.presentation;
 
+import java.util.List;
+
 /**
  * This interface represents a manager service for
  * {@link RenderingEngineFactory} objects. Renderer implementations should add
@@ -22,11 +24,27 @@
         * returns <code>null</code>.
         * 
         * @return The renderer ID of the default renderer, which is the ID of 
the sole renderer if there is only one available. If
-        * none are available, returns <code>null</code>.
+        * no {@link RenderingEngineFactory} objects are registered, returns 
<code>null</code>.
         */
        public String getDefaultRendererID();
        
        /**
+        * Returns modification-safe copy of a list containing the available 
renderer IDs.
+        * 
+        * @return A list, defensively copied, containing the available 
renderer IDs.
+        */
+       public List getAvailableRendererIDs();
+       
+       /**
+        * Attempts to set the current default renderer ID to the given 
renderer ID.
+        * 
+        * @param rendererID The ID of the new default renderer
+        * @return A modification-safe copy of the new default renderer ID, or 
<code>null</code> if no {@link RenderingEngineFactory} was found
+        * with the given renderer ID.
+        */
+       public String setDefaultRenderer(String rendererID);
+       
+       /**
         * Checks if at least one {@link RenderingEngineFactory} has been 
registered with the given renderer ID.
         * 
         * @return <code>true</code> if at least one {@link 
RenderingEngineFactory} has been registered with the given renderer ID, false 
otherwise.

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