Author: paperwing
Date: 2012-02-12 18:46:24 -0800 (Sun, 12 Feb 2012)
New Revision: 28244
Modified:
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/RenderingEngineFactoryManager.java
Log:
Added methods to API service for obtaining the default renderer ID and checking
if a renderer has been registered with a given ID.
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:33:55 UTC (rev 28243)
+++
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/RenderingEngineFactoryManager.java
2012-02-13 02:46:24 UTC (rev 28244)
@@ -18,6 +18,20 @@
}
/**
+ * Returns the renderer ID of the default renderer. If there is only 1
renderer available, its ID will be returned as the default.
+ *
+ * @return The renderer ID of the default renderer, which is the ID of
the sole renderer if there is only one available.
+ */
+ public String getDefaultRendererID();
+
+ /**
+ * 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.
+ */
+ public boolean checkRendererIDAvailable(String rendererID);
+
+ /**
* Adds the given {@link RenderingEngineFactory} to the manager,
associating it with the given renderer ID and the given renderer type.
*
* @param renderingEngineFactory
--
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.