Author: paperwing
Date: 2012-02-13 11:59:57 -0800 (Mon, 13 Feb 2012)
New Revision: 28247
Added:
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/ExternalRenderer.java
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/ExternalRendererManager.java
Log:
Added draft Renderer interface for the single class instance per installed
renderer approach
Added:
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/ExternalRenderer.java
===================================================================
---
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/ExternalRenderer.java
(rev 0)
+++
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/ExternalRenderer.java
2012-02-13 19:59:57 UTC (rev 28247)
@@ -0,0 +1,13 @@
+package org.cytoscape.view.presentation;
+
+/**
+ * Draft version of top-level ExternalRenderer class that represents a
Cytoscape renderer, and should
+ * correspondingly have one instance per installed renderer.
+ */
+public interface ExternalRenderer {
+
+ public String getRendererID();
+
+ // TODO: Determine how RenderingEngine instances will be obtained: via
returning RenderingEngineFactory objects or directly
+ // creating RenderingEngine objects
+}
Property changes on:
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/ExternalRenderer.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added:
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/ExternalRendererManager.java
===================================================================
---
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/ExternalRendererManager.java
(rev 0)
+++
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/ExternalRendererManager.java
2012-02-13 19:59:57 UTC (rev 28247)
@@ -0,0 +1,25 @@
+package org.cytoscape.view.presentation;
+
+import java.util.List;
+
+/**
+ * Draft manager class for installed {@link ExternalRenderer} or Cytoscape
renderers.
+ */
+public interface ExternalRendererManager {
+
+ /**
+ * Adds a renderer to this manager.
+ * @param externalRenderer
+ */
+ public void addRenderer(ExternalRenderer renderer);
+
+ public void removeRenderer(ExternalRenderer renderer);
+
+ public List<String> getInstalledRenderers();
+
+ public void getRenderer(String rendererID);
+
+ public void setDefaultRenderer(String rendererID);
+
+ public void getDefaultRenderer();
+}
Property changes on:
csplugins/trunk/toronto/yuedong/multi_renderer/api/presentation-api/src/main/java/org/cytoscape/view/presentation/ExternalRendererManager.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
--
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.